Re: [Flightgear-devel] Compile prob, can't find the broken lib

2005-10-27 Thread Josh Babcock
Erik Hofman wrote:
> Josh Babcock wrote:
> 
>> /usr/local/include/AL/alut.h:17:21: error: altypes.h: No such file or
>> directory
> 
> 
> Huh, is there any chance you have two versions of the header files
> installed?
> 
>> Do I just need to get the CVS version and compile it?
> 
> 
> It should not be needed, but it does work.
> 
> Erik
> 
> ___
> Flightgear-devel mailing list
> Flightgear-devel@flightgear.org
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 2f585eeea02e2c79d7b1d8c4963bae2d
> 

How embarrassing, I checked for duplicate libs, but not for duplicate
header files. Error messages from /usr/local should have tipped me off.
I nixed the local header files and now it is getting past AL just fine.

Josh

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Compile prob, can't find the broken lib

2005-10-27 Thread Erik Hofman

Josh Babcock wrote:


/usr/local/include/AL/alut.h:17:21: error: altypes.h: No such file or
directory


Huh, is there any chance you have two versions of the header files 
installed?



Do I just need to get the CVS version and compile it?


It should not be needed, but it does work.

Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Compile prob, can't find the broken lib

2005-10-26 Thread Josh Babcock
Erik Hofman wrote:
> Josh Babcock wrote:
> 
>> /usr/local/include/AL/altypes.h:22: error: conflicting declaration
>> 'typedef signed char ALbyte'
>> /usr/local/include/AL/al.h:63: error: 'ALbyte' has a previous
>> declaration as 'typedef char ALbyte'
>> visual_enviro.hxx: In constructor 'SGEnviro::SGEnviro()':
> 
> 
> Remove altypes.h, its deprecated in the latest (CVS) version of OpenAL.
> 
> Erik
> 
> ___
> Flightgear-devel mailing list
> Flightgear-devel@flightgear.org
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 2f585eeea02e2c79d7b1d8c4963bae2d
> 
Um ...

/usr/local/include/AL/alut.h:17:21: error: altypes.h: No such file or
directory

Do I just need to get the CVS version and compile it?

Josh

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Compile prob, can't find the broken lib

2005-10-26 Thread Josh Babcock
Erik Hofman wrote:
> Josh Babcock wrote:
> 
>> /usr/local/include/AL/altypes.h:22: error: conflicting declaration
>> 'typedef signed char ALbyte'
>> /usr/local/include/AL/al.h:63: error: 'ALbyte' has a previous
>> declaration as 'typedef char ALbyte'
>> visual_enviro.hxx: In constructor 'SGEnviro::SGEnviro()':
> 
> 
> Remove altypes.h, its deprecated in the latest (CVS) version of OpenAL.
> 
> Erik
> 
> ___
> Flightgear-devel mailing list
> Flightgear-devel@flightgear.org
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 2f585eeea02e2c79d7b1d8c4963bae2d
> 

Thanks, I knew someone would know what was going on.

Josh

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Compile prob, can't find the broken lib

2005-10-26 Thread Erik Hofman

Josh Babcock wrote:


/usr/local/include/AL/altypes.h:22: error: conflicting declaration
'typedef signed char ALbyte'
/usr/local/include/AL/al.h:63: error: 'ALbyte' has a previous
declaration as 'typedef char ALbyte'
visual_enviro.hxx: In constructor 'SGEnviro::SGEnviro()':


Remove altypes.h, its deprecated in the latest (CVS) version of OpenAL.

Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] Compile prob, can't find the broken lib

2005-10-26 Thread Josh Babcock
OK, I'm using cvs for plib, simgear and flightgear. I erased them and
reinstalled them to make sure I didn't have any old patches interfering.
All the other libs are debian packages. Does anyone know why this is
breaking? I have not been able to track it down.

Josh

export CFLAGS="-Wall -O3 -funroll-loops -march=athlon -g"
export LDFLAGS="-Wl,--as-needed"
export CXXFLAGS="$CFLAGS"
export CC='ccache gcc'
export CPP="$CC -E"
export CXX='ccache g++'


if [ $build_simgear -eq '1' ] ; then
  echo '***   SIMGEAR   ***'
  cd $src/SimGear
  if [ $clean_build -eq '1' ] ; then
make clean
  fi
  ./autogen.sh && \
  ./configure --prefix=/usr/local --with-plib=/usr/local --with-logging && \
  time make && \
  ## echo -ne '\n\a\a\a\a\aPress a key when ready to install:' && \
  ## read -n 1 && \
  sudo make install || exit 1
fi





if ccache g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..
-I/usr/local/include -I/usr/X11R6/include  -Wall -O3 -funroll-loops
-march=athlon -g -D_REENTRANT -MT visual_enviro.o -MD -MP -MF
".deps/visual_enviro.Tpo" -c -o visual_enviro.o visual_enviro.cxx; \
then mv -f ".deps/visual_enviro.Tpo" ".deps/visual_enviro.Po"; else rm
-f ".deps/visual_enviro.Tpo"; exit 1; fi
/usr/local/include/AL/altypes.h:22: error: conflicting declaration
'typedef signed char ALbyte'
/usr/local/include/AL/al.h:63: error: 'ALbyte' has a previous
declaration as 'typedef char ALbyte'
visual_enviro.hxx: In constructor 'SGEnviro::SGEnviro()':
visual_enviro.hxx:77: warning: 'SGEnviro::turbulence_enable_state' will
be initialized after
visual_enviro.hxx:74: warning:   'bool SGEnviro::precipitation_enable_state'
visual_enviro.cxx:87: warning:   when initialized here
visual_enviro.hxx:86: warning: 'SGEnviro::snd_dist' will be initialized
after
visual_enviro.hxx:78: warning:   'double SGEnviro::last_cloud_turbulence'
visual_enviro.cxx:87: warning:   when initialized here
visual_enviro.hxx:89: warning: 'SGEnviro::fov_height' will be
initialized after
visual_enviro.hxx:76: warning:   'float SGEnviro::precipitation_max_alt'
visual_enviro.cxx:87: warning:   when initialized here
visual_enviro.hxx:76: warning: 'SGEnviro::precipitation_max_alt' will be
initialized after
visual_enviro.hxx:75: warning:   'float SGEnviro::precipitation_density'
visual_enviro.cxx:87: warning:   when initialized here
visual_enviro.cxx: In member function 'void SGEnviro::drawRain(double,
double, double, double, double)':
visual_enviro.cxx:422: warning: converting to 'int' from 'double'
visual_enviro.cxx: In constructor 'SGLightning::SGLightning(double,
double, double)':
visual_enviro.cxx:79: warning: 'SGLightning::age' will be initialized after
visual_enviro.cxx:74: warning:   'int SGLightning::nb_tree'
visual_enviro.cxx:462: warning:   when initialized here
visual_enviro.cxx: In member function 'void
SGLightning::lt_build_tree_branch(int, Point3D&, float, int, float)':
visual_enviro.cxx:503: warning: passing 'float' for argument 4 to 'void
SGLightning::lt_build_tree_branch(int, Point3D&, float, int, float)'
make[3]: *** [visual_enviro.o] Error 1
make[3]: Leaving directory `/usr/local/src/SimGear/simgear/environment'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/SimGear/simgear'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/SimGear/simgear'
make: *** [all-recursive] Error 1

real0m56.666s
user0m33.359s
sys 0m3.548s

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d