[osg-submissions] Qt 3 vs 4 under linux

Mathieu MARACHE mathieu.marache at gmail.com
Tue Oct 2 07:32:10 PDT 2007


Cool, thats running for me too.

Thanks a lot

2007/10/2, Robert Osfield <robert.osfield at gmail.com>:
> Hi Mathieu,
>
> I have done some experiments and come up with :
>
> # To select a specific version of QT define DESIRED_QT_VERSION
> # via cmake -DDESIRED_QT_VERSION=4
> IF  (DESIRED_QT_VERSION)
>
>     IF  (DESIRED_QT_VERSION MATCHES 4)
>       FIND_PACKAGE(Qt4)
>     ELSE(DESIRED_QT_VERSION MATCHES 4)
>       FIND_PACKAGE(Qt3)
>     ENDIF(DESIRED_QT_VERSION MATCHES 4)
>
> ELSE(DESIRED_QT_VERSION)
>
>     FIND_PACKAGE(Qt4)
>
>     IF  (NOT QT4_FOUND)
>         FIND_PACKAGE(Qt3)
>     ENDIF(NOT QT4_FOUND)
>
> ENDIF(DESIRED_QT_VERSION)
>
> I've tried installing both QT3 and QT4 and got it working fine.  The
> only thing I found to make things tricky was that one had to remove
> CMakeCache.txt each time to
> prevent cached variables from causing problems.
>
> The modified CMake file is attached.  Does this work OK for you?
>
> Robert.
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>


-- 
Mathieu


More information about the osg-submissions mailing list