[CMake] Fwd: Fwd: cmake link against Qt4's OpenGL
Linge Bai
lb353 at cs.drexel.edu
Sat Sep 27 10:59:47 EDT 2008
It is the moc stuff that's causing the problem. After used qmake to generate
moc_*.cpp files, I was able to use cmake to compile the code. But I still
have no idea on how to use cmake to compile the code without using qmake to
generate the moc files first.
The change to my CMakeLists.txt file I made is:
SET(QT_WRAP_CPP TRUE)
thank you,
Linge
On Fri, Sep 26, 2008 at 5:40 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
>
> "Window::staticMetaObject", referenced from:
>>> __ZN6Window16staticMetaObjectE$non_lazy_ptr in window.o
>>> "vtable for GLWidget", referenced from:
>>> __ZTV8GLWidget$non_lazy_ptr in glwidget.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [exe] Error 1
>>> make[1]: *** [CMakeFiles/exe.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
> That looks like it might be qt slots. You might be missing some moc stuff
> in your cmake files. See QT4_WRAP_CPP in FindQt4.cmake.
>
>
> -Bill
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080927/2b844d6e/attachment.htm>
More information about the CMake
mailing list