From Mathieu Marache, "I tried the latest developper release 1.9.4 and found that I hadn't
the osgsimpleviewerQt4 example in my Visual studio solutions... After looking into it it seems that you cannot have both Qt3 and Qt4 enabled. After modifying the root CMakeLists.txt to use : FIND_PACKAGE(Qt) which should ask you to choose betwwen Qt3 and Qt4 if you have both instead of : FIND_PACKAGE(Qt3) FIND_PACKAGE(Qt4) I had the project generated. But then due to the way CMake handles Qt4 I had to modify osgsimpleviewerQt4's CMakeLists.txt to have the binary link with QtOpengl4. "
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#configure what we need from Qt4
|
||||
SET(QT_USE_QTOPENGL yes)
|
||||
INCLUDE(UseQt4)
|
||||
|
||||
SET(TARGET_SRC osgsimpleviewerQT4.cpp )
|
||||
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ${QT_LIBRARIES} )
|
||||
|
||||
Reference in New Issue
Block a user