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 <[EMAIL PROTECTED]>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 > [email protected] > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
