Hi Bruce,

Execution of osgversion seems buggy in CMake... I may investigate a bit.

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

----- "Bruce Clay" <[email protected]> a écrit :

> Similar issue - CMAKE in Windows gives "ERROR: Version 2.9.5 or
> higher
> of OpenSceneGraph is required. Version CreateProcessError: The system
> cannot find the file specified.
> 
> If I change FIND_PACKAGE(OSG 2.9.5) to FIND_PACKAGE(2.8.2) and click
> on
> configure I get the same error message except version 2.8.2 is
> reported.
> 
> I know very little about CMake but it looks like I have all of the
> paths
> set right pointing to my 2.8.2 version of OSG
> 
> Any thoughts?
> 
> Bruce
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Sukender
> Sent: Thursday, December 10, 2009 11:30 AM
> To: osg-users
> Subject: [osg-users] [VPB] VPB & FindOSG.cmake
> 
> Hi Robert & all,
> 
> On my (Windows) machine, trying to run CMake on VPB (latest trunk)
> fails
> when trying to locate OSG, because of EXEC_PROGRAM().
> I tried adding "${OSG_BUILD_DIR}" as working directory but it fails
> too.
> I tried then to replace EXEC_PROGRAM() with EXECUTE_PROCESS(): it
> still
> fails but at least I don't have tons of error messages.
> Already encountered something like this (did not manage to find an
> answer in archives)? Is there a way to fix that? Any idea?
> Thanks.
> 
> 
> FYI, in my lightweight engine, I've adopted another kind of solution:
> when I configure the project, it creates a "CMakeMarker.txt" with
> some
> values in it. This file is installed alongside headers. The
> corresponding finder then locates the file at the same time it
> locates
> headers and the parses it to get values reflecting the configuration.
> I
> think it's less error prone than launching an executable, but
> drawbacks
> are:
> - It's tied to CMake (even if it's clear text and can be read
> elsewhere)
> - If you change the data in the file, then you must change finders,
> and
> ensure finders can handle older versions.
> The system is not very complete yet, and may be extended to store
> "name,
> values" pairs for instance.
> Do you think this may be useful for OSG?
> 
> 
> Sukender
> PVLE - Lightweight cross-platform game engine -
> http://pvle.sourceforge.net/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
> g
> 
> 
> 
> This message and any enclosures are intended only for the addressee. 
> Please  
> notify the sender by email if you are not the intended recipient.  If
> you are  
> not the intended recipient, you may not use, copy, disclose, or
> distribute this  
> message or its contents or enclosures to any other person and any such
> actions  
> may be unlawful.  Ball reserves the right to monitor and review all
> messages  
> and enclosures sent to or from this email address.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to