Hi Mathieu,

This feels like a hack to me.

I will need to install QT4 on my machine here and do some testing.

Robert.

On 9/25/07, Mathieu MARACHE <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> I recall having the problem discussed on the osg-build list. But since
> we had a no-go, here I go again.
>
> I need to build OpenSceneGraph without human intervention and the
> FindQt3 followed by a FindQt4 leads to a mixed (Qt3/Qt4) settings of
> the flags making the example osgviewerQT to fail it's compilation...
> The CMake solution for Qt is to set the value of DESIRED_QT_VERSION to
> either 3 or 4 and use FindQt . However our last discussion on this
> issue lead to leaving my input commented out in the root
> CMakeList.txt, it was fine for me but not the optimum solution.
>
> I now come back with a slight modification making a call to cmake with
> the appropriate flag to work like I'd like to but wihtout, then it
> would work just the same as before. Please consider this for svn
> checkin :
>
> ===================================================================
> --- CMakeLists.txt      (révision 7470)
> +++ CMakeLists.txt      (copie de travail)
> @@ -179,10 +179,12 @@
>  FIND_PACKAGE(ZLIB)
>  FIND_PACKAGE(GDAL)
>
> -# SET(DESIRED_QT_VERSION 3)
> -# FIND_PACKAGE(Qt)
> -FIND_PACKAGE(Qt3)
> -FIND_PACKAGE(Qt4)
> +IF(DESIRED_QT_VERSION)
> +       FIND_PACKAGE(Qt)
> +ELSE(DESIRED_QT_VERSION)
> +       FIND_PACKAGE(Qt3)
> +       FIND_PACKAGE(Qt4)
> +ENDIF(DESIRED_QT_VERSION)
>
>  SET(wxWidgets_USE_LIBS base core gl net)
>  FIND_PACKAGE(wxWidgets)
> ====================================================================
>
> Then calling 'cmake -DDESIRED_QT_VERSION=4 ... '  triggers the patch
>
>
>
> Regards,
> --
> Mathieu
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to