On Friday 13 July 2007 07:26, Anders Sandholm wrote:
> Hi
...
> Now when I build in vs2005 it says:
>
> ---------------------------------------------------------------------------
>---------------------
>
> 1>------ Build started: Project: qtproject, Configuration: Release Win32
> ------ 1>Linking...
> 1>window.obj : error LNK2019: unresolved external symbol "public:
> static struct QMetaObject const Window::staticMetaObject"
> ([EMAIL PROTECTED]@@2UQMetaObject@@B) referenced in function
> "public: static class QString __cdecl Window::tr(char const *,char
> const *)" ([EMAIL PROTECTED]@@SA?AVQString@@[EMAIL PROTECTED])
I think these are moc problems.
> # tell cmake to create .moc files for all files in the variable
> qtproject_SRCS that require such a file.
> # note: this assumes that you use #include "header.moc" in your files
> qt4_automoc(${qtproject_SRCS})
So, do your source files include the moc files ?
If not, you have to use qt4_wrap_cpp() to generate the moc sources (which I
would recommend anyway).
Alex
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake