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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to