RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-20 Thread Vivian Meazza


Jon Berndt wrote:

> Sent: 20 July 2004 06:53
> To: FlightGear developers discussions
> Subject: RE: [Flightgear-devel] Difficulty with building under Cygwin
> 
> My SimGear build was not completing. I think it has something to do with
> the move to
> OpenAL. As I was building simgear I got this:
> 
> ...
> checking for library containing alGenBuffers... -lopenal32
> checking for library containing alutInit... no
> ...
> 
> Later on, I get this:
> 
> g++  -D_REENTRANT  -L/usr/local/lib -o openal_test1.exe  openal_test1.o
> ../../simgear/debug/libsgdebug.a -lopenal32  -lwinmm -ldsound -ldxguid -
> lole32
> openal_test1.o(.text+0x366):openal_test1.cxx: undefined reference to
> `_alutInit'
> openal_test1.o(.text+0x5b1):openal_test1.cxx: undefined reference to
> `_alutLoadWAVFile'
> openal_test1.o(.text+0x6cc):openal_test1.cxx: undefined reference to
> `_alutUnloadWAV'
> 
> 
Have you down loaded and installed Norman Vine's OpenAl stuff? I assume you
have. 

Eric changed some code in this area to ensure that test1 and test2 compiled
under Cygwin. These changes do work, but you can safely remove all reference
to test1 and test2 in ~/sound/makefile.am, and try compiling without them.

Regards,

Vivian



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Jon Berndt
My SimGear build was not completing. I think it has something to do with the move to
OpenAL. As I was building simgear I got this:

...
checking for library containing alGenBuffers... -lopenal32
checking for library containing alutInit... no
...

Later on, I get this:

g++  -D_REENTRANT  -L/usr/local/lib -o openal_test1.exe  openal_test1.o
../../simgear/debug/libsgdebug.a -lopenal32  -lwinmm -ldsound -ldxguid -lole32
openal_test1.o(.text+0x366):openal_test1.cxx: undefined reference to `_alutInit'
openal_test1.o(.text+0x5b1):openal_test1.cxx: undefined reference to `_alutLoadWAVFile'
openal_test1.o(.text+0x6cc):openal_test1.cxx: undefined reference to `_alutUnloadWAV'



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Jon Berndt
> This is a case where you really should go look at the end of the config.log
> file to see *exactly* why the version check is failing.
>
> Curt.

What should one look for in config.log? There appears to be several problems. The
following shows what the worst problem is, however (but I'm not sure how to fix it):

configure:9805: test -z
 || test ! -s conftest.err
configure:9808: $? = 0
configure:9811: test -s conftest.o
configure:9814: $? = 0
configure:9824: result: yes
configure:9828: checking simgear/version.h presence
configure:9838: g++ -E  conftest.cc
configure:9844: $? = 0
configure:9864: result: yes
configure:9899: checking for simgear/version.h
configure:9906: result: yes
configure:9923: checking for simgear 0.3.6 or newer
configure:9969: g++ -o conftest.exe  -D_REENTRANT  -L/usr/local/lib conftest.cc  >&5
configure:9972: $? = 0
configure:9974: ./conftest.exe
configure:9977: $? = 255
configure: program exited with status 255
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "FlightGear"
| #define VERSION "0.9.5-pre1"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define FG_MPLAYER_AS 1
| #define ENABLE_THREADS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define FGFS 1
| #define FG_USE_CLOUDS_3D 1
| #define HAVE_DAYLIGHT 1
| #define ENABLE_AUDIO_SUPPORT 1
| #define HAVE_LIBPTHREAD 1
| #define PU_USE_GLUT 1
| #define FG_GLUT_H 
| #define WIN32 1
| #define NOMINMAX 1
| #define ENABLE_PLIB_JOYSTICK 1
| /* end confdefs.h.  */
|
| #include 
|
| #include 
|
| #define STRINGIFY(X) XSTRINGIFY(X)
| #define XSTRINGIFY(X) #X
|
| #define MIN_MAJOR 0
| #define MIN_MINOR 3
| #define MIN_MICRO 6
|
| int main() {
| int major, minor, micro;
|
| printf("%d.%d.%d or greater... ", MIN_MAJOR, MIN_MINOR, MIN_MICRO);
|
| sscanf( STRINGIFY(SIMGEAR_VERSION), "%d.%d.%d", &major, &minor, ยต );
|
| if ( major < MIN_MAJOR ) {
|return -1;
| } else if ( major == MIN_MAJOR && minor < MIN_MINOR ) {
|return -1;
| } else if ( major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO ){
|return -1;
| }
|
| return 0;
| }
|
|
configure:9987: result: wrong version
configure:9989: error: Install latest simgear first...


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Jon S Berndt
On Mon, 19 Jul 2004 18:07:43 +0100
 "Vivian Meazza" <[EMAIL PROTECTED]> wrote:
I've just downloaded the current cvs version of SimGear and 
FlightGear. They both compile under Cygwin straight out of the box.

I would suppose that you have a problem with your path.
Possibly, but I am using the same approach I've used for years. The 
simgear and plib libraries both built as expected, and were installed 
as expected. I've updated via CVS all of the parts. So, it seems that 
something has changed that I am not aware of.

I will check the config.log as Curt suggested, when I get home this 
evening.

Jon
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Vivian Meazza


Jon Berndt wrote 

> Sent: 19 July 2004 15:32
> To: FlightGear developers discussions
> Subject: RE: [Flightgear-devel] Difficulty with building under Cygwin
> 
> > > The version looks right, I think (but the $Id date is way off):
> > >
> > > // $Id: version.h.in,v 1.1.1.1 2002/09/07 02:58:19 curt Exp $
> >
> > Don't llok at the $Id, it is the Id of version.h.in that is an old
> template but
> > version.h is generated every time you run configure.
> 
> Correct. I was just pointing it out.
> 
> > > #ifndef _SIMGEAR_VERSION_H
> > > #define _SIMGEAR_VERSION_H
> > >
> > > #define SIMGEAR_VERSION 0.3.6-pre1
> > > ...
> > >
> > > It seems as though, then, that my installation of FlightGear is not
> looking for the
> > > correct pre-release version of simgear, but I don't know why. I've
> updated it
> > from CVS.
> >
> > Do you have another simgear version somewhere else ?
> >
> > -Fred
> 
> Nope.
> 
I've just downloaded the current cvs version of SimGear and FlightGear. They
both compile under Cygwin straight out of the box.

I would suppose that you have a problem with your path.

Regards,

Vivian



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Curtis L. Olson
Ampere K. Hardraade wrote:
Try including the command: --with-simgear=PATH, whne you are 
using ./configure.  PATH is the location of SimGear.

Regards,
Ampere
On July 19, 2004 09:49 am, Jon Berndt wrote:
 

It seems as though, then, that my installation of FlightGear is not looking
for the correct pre-release version of simgear, but I don't know why. I've
updated it from CVS.
Jon
   

This is a case where you really should go look at the end of the config.log file to 
see *exactly* why the version check is failing.
Curt.
--
Curtis Olsonhttp://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Ampere K. Hardraade
Try including the command: --with-simgear=PATH, whne you are 
using ./configure.  PATH is the location of SimGear.

Regards,
Ampere

On July 19, 2004 09:49 am, Jon Berndt wrote:
> It seems as though, then, that my installation of FlightGear is not looking
> for the correct pre-release version of simgear, but I don't know why. I've
> updated it from CVS.
>
> Jon

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Vivian Meazza


Jon Berndt wrote:

> Sent: 19 July 2004 15:32
> To: FlightGear developers discussions
> Subject: RE: [Flightgear-devel] Difficulty with building under Cygwin
> 
> > > The version looks right, I think (but the $Id date is way off):
> > >
> > > // $Id: version.h.in,v 1.1.1.1 2002/09/07 02:58:19 curt Exp $
> >
> > Don't llok at the $Id, it is the Id of version.h.in that is an old
> template but
> > version.h is generated every time you run configure.
> 
> Correct. I was just pointing it out.
> 
> > > #ifndef _SIMGEAR_VERSION_H
> > > #define _SIMGEAR_VERSION_H
> > >
> > > #define SIMGEAR_VERSION 0.3.6-pre1
> > > ...
> > >
> > > It seems as though, then, that my installation of FlightGear is not
> looking for the
> > > correct pre-release version of simgear, but I don't know why. I've
> updated it
> > from CVS.
> >
> > Do you have another simgear version somewhere else ?
> >
> > -Fred
> 
> Nope.
> 

It's probably of no help to tell you that it all compiled yesterday.
Simgear-cvs with the version no. 0.3.6-pre1 was OK.

Regards

Vivian





___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Frederic Bouvier
> > > #ifndef _SIMGEAR_VERSION_H
> > > #define _SIMGEAR_VERSION_H
> > > 
> > > #define SIMGEAR_VERSION 0.3.6-pre1
> > > ...
> > > 
> > > It seems as though, then, that my installation of FlightGear is not looking for 
> > > the
> > > correct pre-release version of simgear, but I don't know why. I've updated it 
> > from CVS.
> > 
> > Do you have another simgear version somewhere else ?
> > 
> > -Fred
> 
> Nope.

So, do you check the content of config.log ?

-Fred


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Jon Berndt
> > The version looks right, I think (but the $Id date is way off):
> > 
> > // $Id: version.h.in,v 1.1.1.1 2002/09/07 02:58:19 curt Exp $
> 
> Don't llok at the $Id, it is the Id of version.h.in that is an old template but 
> version.h is generated every time you run configure.

Correct. I was just pointing it out.

> > #ifndef _SIMGEAR_VERSION_H
> > #define _SIMGEAR_VERSION_H
> > 
> > #define SIMGEAR_VERSION 0.3.6-pre1
> > ...
> > 
> > It seems as though, then, that my installation of FlightGear is not looking for the
> > correct pre-release version of simgear, but I don't know why. I've updated it 
> from CVS.
> 
> Do you have another simgear version somewhere else ?
> 
> -Fred

Nope.

Jon


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Frederic Bouvier
Jon Berndt wrote:

> > What is the content of /usr/local/include/simgear/version.h ? ( or wherever you
> > installed SimGear ? )
> >
> > -Fred
> 
> The version looks right, I think (but the $Id date is way off):
> 
> // $Id: version.h.in,v 1.1.1.1 2002/09/07 02:58:19 curt Exp $

Don't llok at the $Id, it is the Id of version.h.in that is an old template but 
version.h is generated every time you run configure.
 
> #ifndef _SIMGEAR_VERSION_H
> #define _SIMGEAR_VERSION_H
> 
> #define SIMGEAR_VERSION 0.3.6-pre1
> ...
> 
> It seems as though, then, that my installation of FlightGear is not looking for the
> correct pre-release version of simgear, but I don't know why. I've updated it from 
> CVS.

Do you have another simgear version somewhere else ?

-Fred


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Jon Berndt
> What is the content of /usr/local/include/simgear/version.h ? ( or wherever you
> installed SimGear ? )
>
> -Fred

The version looks right, I think (but the $Id date is way off):

  // $Id: version.h.in,v 1.1.1.1 2002/09/07 02:58:19 curt Exp $

  #ifndef _SIMGEAR_VERSION_H
  #define _SIMGEAR_VERSION_H

  #define SIMGEAR_VERSION 0.3.6-pre1
  ...

It seems as though, then, that my installation of FlightGear is not looking for the
correct pre-release version of simgear, but I don't know why. I've updated it from CVS.

Jon


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Difficulty with building under Cygwin

2004-07-19 Thread Frederic Bouvier
Jon Berndt wrote:

> I updated plib/simgear/flightgear/base from CVS. Built plib and simgear. Checked the 
> dates
> on the libs - they're all current. The sources were updated from CVS. I tried 
> building
> FlightGear and got this:
> 
> ...
> checking for simgear/version.h... yes
> checking for simgear 0.3.6 or newer... 0.3.6 or greater... wrong version
> 
> So, the FlightGear build failed. How do I get around this?

What is the content of /usr/local/include/simgear/version.h ? ( or wherever you 
installed SimGear ? )

-Fred


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel