Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread Vivian Meazza
syd

 
 Hi
 Ive been trying to build flightgear with ccmake , no luck yet.
 The first error was SIMGEAR_VERSION_OK not found , but with some help on
 irc,
 I managed to get past this by adding set(SIMGEAR_VERSION_OK 1) to the
 CMakeLists.txt.
 Now i get these error messages :
 
 WARNING: Target fgfs requests linking to directory /home/syd/FG/lib.
  Targets may link only to libraries.  CMake is dropping the item.
 
  WARNING: Target metar requests linking to directory /home/syd/FG/lib.
  Targets may link only to libraries.  CMake is dropping the item.
 
  WARNING: Target fgviewer requests linking to directory
 /home/syd/FG/lib.
  Targets may link only to libraries.  CMake is dropping the item.
 
 As you can see , i keep FG in my home folder.Simgear built and
 installed without errors.
 Any suggestions 

You need ALL of the following:

CMAKE_PREFIX_PATH - path/to/simgear e.g. D:/Cygwin/simgear
SIMGEAR_INCLUDE_DIR - path/to/simgear/include e.g. D:/Cygwin/simgear/include
SIMGEAR_LIBRARIES - SIMGEAR_LIBRARIES-NOTFOUND
SIMGEAR_VERSION_OK - true

Works here to solve exactly the problems you describe. I would have told you
on IRC, but you seem to have left before I could do so.

HTH

Vivian
 






--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread James Turner

On 9 Nov 2011, at 08:33, Vivian Meazza wrote:

 You need ALL of the following:
 
 CMAKE_PREFIX_PATH - path/to/simgear e.g. D:/Cygwin/simgear
 SIMGEAR_INCLUDE_DIR - path/to/simgear/include e.g. D:/Cygwin/simgear/include
 SIMGEAR_LIBRARIES - SIMGEAR_LIBRARIES-NOTFOUND
 SIMGEAR_VERSION_OK - true

Just for the benefit of anyone reading the archives in the future, there's 
definitely a bug in the SimGear detection script right now, affecting Windows, 
and the above works around the issue, but it's likely to cause other problems 
down the line. Unfortunately the problem only seems to affect certain 
installations / configurations, so right now more research is needed, on an 
affected machine, as to why the automatic detection fails.

The above variables short circuit the problematic detection, but is setting 
some variables that are not intended to be set manually, and setting them 
manually will lead to confusing behaviour when the bug is fixed - you will need 
to ensure you remove the Cmake cache files or these options will 'stick'.

Obviously the idea solution, would be for someone on Windows to dig into the 
FindSimGear module, and pin down why the detection is screwing up!

James

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread syd adams
Im on linux , not windows . Im about to try again , and since i know
nothing about Cmake files i may be hand editing it wrong ... or
possibly putting the variables in the wrong place ... I'll post if Im
successful.
Cheers

On Wed, Nov 9, 2011 at 7:47 AM, James Turner zakal...@mac.com wrote:

 On 9 Nov 2011, at 08:33, Vivian Meazza wrote:

 You need ALL of the following:

 CMAKE_PREFIX_PATH - path/to/simgear e.g. D:/Cygwin/simgear
 SIMGEAR_INCLUDE_DIR - path/to/simgear/include e.g. D:/Cygwin/simgear/include
 SIMGEAR_LIBRARIES - SIMGEAR_LIBRARIES-NOTFOUND
 SIMGEAR_VERSION_OK - true

 Just for the benefit of anyone reading the archives in the future, there's 
 definitely a bug in the SimGear detection script right now, affecting 
 Windows, and the above works around the issue, but it's likely to cause other 
 problems down the line. Unfortunately the problem only seems to affect 
 certain installations / configurations, so right now more research is needed, 
 on an affected machine, as to why the automatic detection fails.

 The above variables short circuit the problematic detection, but is setting 
 some variables that are not intended to be set manually, and setting them 
 manually will lead to confusing behaviour when the bug is fixed - you will 
 need to ensure you remove the Cmake cache files or these options will 'stick'.

 Obviously the idea solution, would be for someone on Windows to dig into the 
 FindSimGear module, and pin down why the detection is screwing up!

 James

 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread syd adams
OK , success
I obviously messed it up myself here 

I started fresh , used cmake-gui. The first error that appeared was
the SIMGEAR_VERSION_OK , so i added that BOOL variable in the Add
Entry box , reconfigured , and everything built successfully. I guess
i messed it up by hand editing.Thanks for the tips guys.
Cheers


On Wed, Nov 9, 2011 at 2:44 PM, syd adams adams@gmail.com wrote:
 Im on linux , not windows . Im about to try again , and since i know
 nothing about Cmake files i may be hand editing it wrong ... or
 possibly putting the variables in the wrong place ... I'll post if Im
 successful.
 Cheers

 On Wed, Nov 9, 2011 at 7:47 AM, James Turner zakal...@mac.com wrote:

 On 9 Nov 2011, at 08:33, Vivian Meazza wrote:

 You need ALL of the following:

 CMAKE_PREFIX_PATH - path/to/simgear e.g. D:/Cygwin/simgear
 SIMGEAR_INCLUDE_DIR - path/to/simgear/include e.g. D:/Cygwin/simgear/include
 SIMGEAR_LIBRARIES - SIMGEAR_LIBRARIES-NOTFOUND
 SIMGEAR_VERSION_OK - true

 Just for the benefit of anyone reading the archives in the future, there's 
 definitely a bug in the SimGear detection script right now, affecting 
 Windows, and the above works around the issue, but it's likely to cause 
 other problems down the line. Unfortunately the problem only seems to affect 
 certain installations / configurations, so right now more research is 
 needed, on an affected machine, as to why the automatic detection fails.

 The above variables short circuit the problematic detection, but is setting 
 some variables that are not intended to be set manually, and setting them 
 manually will lead to confusing behaviour when the bug is fixed - you will 
 need to ensure you remove the Cmake cache files or these options will 
 'stick'.

 Obviously the idea solution, would be for someone on Windows to dig into the 
 FindSimGear module, and pin down why the detection is screwing up!

 James

 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel



--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread syd adams
Oops , spoke too soon :)

/home/syd/FG/flightgear/src/Scenery/tilemgr.cxx: In member function
‘virtual osg::Node* FGTileMgr::loadTileModel(const std::string,
bool)’:
/home/syd/FG/flightgear/src/Scenery/tilemgr.cxx:279:17: error:
‘loadDeferedModel’ is not a member of ‘simgear::SGModelLib’
make[2]: *** [src/Scenery/CMakeFiles/fgScenery.dir/tilemgr.cxx.o] Error 1
make[1]: *** [src/Scenery/CMakeFiles/fgScenery.dir/all] Error 2

Though it seems a different problem , more commits to go still i think
 i think I'll work on Citation X for awhile ;)
Cheers

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread Frederic Bouvier
SimGear not in sync with flightgear

-Fred

- Mail original -
 Oops , spoke too soon :)
 
 /home/syd/FG/flightgear/src/Scenery/tilemgr.cxx: In member function
 ‘virtual osg::Node* FGTileMgr::loadTileModel(const std::string,
 bool)’:
 /home/syd/FG/flightgear/src/Scenery/tilemgr.cxx:279:17: error:
 ‘loadDeferedModel’ is not a member of ‘simgear::SGModelLib’
 make[2]: *** [src/Scenery/CMakeFiles/fgScenery.dir/tilemgr.cxx.o]
 Error 1
 make[1]: *** [src/Scenery/CMakeFiles/fgScenery.dir/all] Error 2
 
 Though it seems a different problem , more commits to go still i
 think
  i think I'll work on Citation X for awhile ;)
 Cheers
 
 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel
 

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] more cmake problems

2011-11-09 Thread Vivian Meazza
Syd 

 -Original Message-
 From: syd adams [mailto:adams@gmail.com]
 Sent: 09 November 2011 22:51
 To: FlightGear developers discussions
 Subject: Re: [Flightgear-devel] more cmake problems
 
 Oops , spoke too soon :)
 
 /home/syd/FG/flightgear/src/Scenery/tilemgr.cxx: In member function
 'virtual osg::Node* FGTileMgr::loadTileModel(const std::string,
 bool)':
 /home/syd/FG/flightgear/src/Scenery/tilemgr.cxx:279:17: error:
 'loadDeferedModel' is not a member of 'simgear::SGModelLib'
 make[2]: *** [src/Scenery/CMakeFiles/fgScenery.dir/tilemgr.cxx.o] Error 1
 make[1]: *** [src/Scenery/CMakeFiles/fgScenery.dir/all] Error 2
 
 Though it seems a different problem , more commits to go still i think
  i think I'll work on Citation X for awhile ;)
 Cheers
 

Yeah - I got that first run - I'd forgotten to re-install SG. Check all the
obvious things - up-to-date SG and FG, rerun cmake, rebuild and install SG
then FG. You might need to update some of the dependencies too.

V.



--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] more cmake problems

2011-11-08 Thread syd adams
Hi
Ive been trying to build flightgear with ccmake , no luck yet.
The first error was SIMGEAR_VERSION_OK not found , but with some help on irc,
I managed to get past this by adding set(SIMGEAR_VERSION_OK 1) to the
CMakeLists.txt.
Now i get these error messages :

WARNING: Target fgfs requests linking to directory /home/syd/FG/lib.
 Targets may link only to libraries.  CMake is dropping the item.

 WARNING: Target metar requests linking to directory /home/syd/FG/lib.
 Targets may link only to libraries.  CMake is dropping the item.

 WARNING: Target fgviewer requests linking to directory /home/syd/FG/lib.
 Targets may link only to libraries.  CMake is dropping the item.

As you can see , i keep FG in my home folder.Simgear built and
installed without errors.
Any suggestions ?
Thanks

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel