[CMake] cmake link against Qt4's OpenGL
Linge Bai
lb353 at cs.drexel.edu
Fri Sep 26 16:12:24 EDT 2008
After I used cmake 2.6.1, with CMakeList.txt:
PROJECT ( COMBINED )
FIND_PACKAGE (Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE)
INCLUDE( ${QT_USE_FILE} )
ADD_EXECUTABLE(exe main.cpp glwidget.cpp window.cpp)
TARGET_LINK_LIBRARIES(exe ${QT_LIBRARIES})
I am able to link to Qt4's OpenGL, but I have a link error:
make
Scanning dependencies of target exe
Linking CXX executable exe
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
make[2]: *** [exe] Error 1
make[1]: *** [CMakeFiles/exe.dir/all] Error 2
make: *** [all] Error 2
Does anyone know how to solve this?
thanks,
Linge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080926/a5554b4e/attachment.htm>
More information about the CMake
mailing list