It looks like there is a stray 2.0.0 version.h somewhere or your 
cpp-flags are pointing to the wrong place. In your fg/source directory 
there is a config.log file. Search for the string 'checking for SimGear 
2.2.0 or newer' and you'll see some more details. Specifically the 
compile command used to test the simgear version. Are the -I options 
pointing to the proper location? And are the locations really free from 
the old version.h? Remember to also check the default header file 
locations like /usr/include.

As a final step I'd do a search like

find / -name version.h | grep simgear

to locate all simgear version.h files.

Is FG_ROOT pointing to /usr/local?

Cheers,

Jari

On 2011-01-06 06.29, dave perry wrote:
> With today's simgear and flightgear source from git, after compiling and
> installing simgear, fgfs
> ./configure CFLAGS="-march=native" CXXFLAGS="-march=native"
> --prefix=$FG_ROOT
> fails with
>
> checking simgear/version.h usability... yes
> checking simgear/version.h presence... yes
> checking for simgear/version.h... yes
> checking for SimGear 2.2.0 or newer... [found 2.0.0] ... wrong version
> configure: error: Install latest SimGear first...
> make: *** [config.status] Error 1
>
> I assume that it is checking the file /usr/local/include/simgear/version.h
>
> that was written by the simgear
> sudo make install.
>
> That file contains
> #ifndef _SIMGEAR_VERSION_H
> #define _SIMGEAR_VERSION_H
>
>
> #define SIMGEAR_VERSION 2.2.0
>
>
> #endif // _SIMGEAR_VERSION_H
>
> which should have passed the test.
>
> I do have a source folder for SimGear 2.0.0 that contains
> simgear/version.h that would not pass.  But I did a make uninstall in
> that folder before compiling and installing the git simgear.
>
> Suggestions?
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Flightgear-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to