Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-27 Thread Bill Hoffman
Linge Bai wrote: 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 CM

Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-27 Thread Linge Bai
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 mad

Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-26 Thread Bill Hoffman
"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]: *** [

Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
use "make VERBOSE=1" and examine the link line. If you still have the qmake project around compare the link lines between the 2 projects. I have no idea. I have not used the QtOpenGL library before so this is all new to me. Mike On Sep 26, 2008, at 5:24 PM, Linge Bai wrote: Yes, this pro

[CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-26 Thread Linge Bai
Yes, this program runs well when compile with qmake. Linge On Fri, Sep 26, 2008 at 5:18 PM, Michael Jackson < [EMAIL PROTECTED]> wrote: > Look in the GLWidget source file and see if there is actually a > zRotationChanged(int) method available. > > Mike > > > On Sep 26, 2008, at 5:15 PM, Linge B