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:
parent
ab4398e440
commit
6096af0b99
@ -121,8 +121,7 @@ FIND_PACKAGE(FLTK)
|
||||
FIND_PACKAGE(GLUT)
|
||||
FIND_PACKAGE(SDL)
|
||||
FIND_PACKAGE(Inventor)
|
||||
FIND_PACKAGE(Qt3)
|
||||
FIND_PACKAGE(Qt4)
|
||||
FIND_PACKAGE(Qt)
|
||||
FIND_PACKAGE(Jasper)
|
||||
FIND_PACKAGE(COLLADA)
|
||||
FIND_PACKAGE(Xine)
|
||||
|
@ -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} )
|
||||
|
Loading…
Reference in New Issue
Block a user