Re: [Flightgear-devel] CMake question simgear include option

2013-02-15 Thread James Turner

On 14 Feb 2013, at 18:58, HB-GRAL flightg...@sablonier.ch wrote:

 With simple -DCMAKE_INSTALL_PREFIX it finds the custom location of the 
 headers and libs without any other option, but when I add 
 -DSIMGEAR_INCLUDE_DIR=/path/to/include it takes the headers from this 
 location, but not the libs anymore, it falls back to another simgear 
 install on my system (which is in path). So I need to remove default 
 simgear from my path, and then cmake works perfect.
 
 Sometimes I wonder with what things I can struggle with flightgear 
 compilation and why only ME have such problems. ;-)

Avoid setting the include path directly, would be my advice.

If you want to use different simgear builds, then keep the completely separate.

Eg, I have:

~/FGFS/
simgear
flightgear

fgBuild # configured with 
CMAKE_INSTALL_PREFIX=~/FGFS/dist
sgBuild # configured with 
CMAKE_INSTALL_PREFIX=~/FGFS/dist
dist

fgBuild2# configured with 
CMAKE_INSTALL_PREFIX=~/FGFS/dist2
sgBuilld2   # configured with 
CMAKE_INSTALL_PREFIX=~/FGFS/dist2
dist2

And this works fine for me, the different diet trees can have totally different 
version / config options since there is no overlap at all.

James
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] CMake question simgear include option

2013-02-15 Thread ys
Hi James

Thanks, yes, am aware of this kind of separation. But I thought: Why does 
cmake configuration make it possible to link against an osg include and lib dir 
for every part, while simgear has only a an option for headers and not the libs 
?. And then when you set the simgear include dir, why does simgear link 
against system path libs and not against cmake install prefix? What speaks 
against linking the libs? Or what speaks against keeping this simgear include 
option away? I don't get the logic behind this, and of course me I do not run 
into real problems because of this, I am just a bit curious about what's behind 
this option setting.

-Yves




Am 15.02.2013 um 09:48 schrieb James Turner zakal...@mac.com:

 
 On 14 Feb 2013, at 18:58, HB-GRAL flightg...@sablonier.ch wrote:
 
 With simple -DCMAKE_INSTALL_PREFIX it finds the custom location of the 
 headers and libs without any other option, but when I add 
 -DSIMGEAR_INCLUDE_DIR=/path/to/include it takes the headers from this 
 location, but not the libs anymore, it falls back to another simgear 
 install on my system (which is in path). So I need to remove default 
 simgear from my path, and then cmake works perfect.
 
 Sometimes I wonder with what things I can struggle with flightgear 
 compilation and why only ME have such problems. ;-)
 
 Avoid setting the include path directly, would be my advice.
 
 If you want to use different simgear builds, then keep the completely 
 separate.
 
 Eg, I have:
 
~/FGFS/
simgear
flightgear
 
fgBuild# configured with CMAKE_INSTALL_PREFIX=~/FGFS/dist
sgBuild# configured with CMAKE_INSTALL_PREFIX=~/FGFS/dist
dist
 
fgBuild2# configured with CMAKE_INSTALL_PREFIX=~/FGFS/dist2
sgBuilld2# configured with CMAKE_INSTALL_PREFIX=~/FGFS/dist2
dist2
 
 And this works fine for me, the different diet trees can have totally 
 different version / config options since there is no overlap at all.
 
 James
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] CMake question simgear include option

2013-02-15 Thread Arnt Karlsen
On Fri, 15 Feb 2013 08:48:59 +, James wrote in message 
954f9f95-7614-4c0e-a82f-3b589fa4e...@mac.com:

 
 On 14 Feb 2013, at 18:58, HB-GRAL flightg...@sablonier.ch wrote:
 
  With simple -DCMAKE_INSTALL_PREFIX it finds the custom location
  of the headers and libs without any other option, but when I add 
  -DSIMGEAR_INCLUDE_DIR=/path/to/include it takes the headers from
  this location, but not the libs anymore, it falls back to another
  simgear install on my system (which is in path). So I need to
  remove default simgear from my path, and then cmake works perfect.
  
  Sometimes I wonder with what things I can struggle with flightgear 
  compilation and why only ME have such problems. ;-)
 
 Avoid setting the include path directly, would be my advice.
 
 If you want to use different simgear builds, then keep the completely
 separate.
 
 Eg, I have:
 
   ~/FGFS/
   simgear
   flightgear

..these above (SGFG) are your one git source tree?

 
   fgBuild # configured with
 CMAKE_INSTALL_PREFIX=~/FGFS/dist sgBuild  # configured
 with CMAKE_INSTALL_PREFIX=~/FGFS/dist dist
 
   fgBuild2# configured with
 CMAKE_INSTALL_PREFIX=~/FGFS/dist2 sgBuilld2   # configured with
 CMAKE_INSTALL_PREFIX=~/FGFS/dist2 dist2

..and dist  dist2 are 2 separate build and install trees that 
you feed from your one git tree?

 And this works fine for me, the different diet trees can have totally
 different version / config options since there is no overlap at all.
 
 James

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] CMake question simgear include option

2013-02-14 Thread HB-GRAL
Hi

Ehrm, cmake, I tried to link against another simgear but I can only link 
against headers, not the libs? When I have another simgear in (i.e. 
default path) installed it takes the headers from include definition, 
but the libs from first path? Or do I miss a CMake option?

With simple -DCMAKE_INSTALL_PREFIX it finds the custom location of the 
headers and libs without any other option, but when I add 
-DSIMGEAR_INCLUDE_DIR=/path/to/include it takes the headers from this 
location, but not the libs anymore, it falls back to another simgear 
install on my system (which is in path). So I need to remove default 
simgear from my path, and then cmake works perfect.

Sometimes I wonder with what things I can struggle with flightgear 
compilation and why only ME have such problems. ;-)

-Yves






--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel