[Flightgear-devel] Mac joysticks + Mac OS X build errors

2005-02-12 Thread ima . sudonim
Erik
Thank you VERY much!
The simgear change gets me further along  but still breaks as None and 
True are not defined.
g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../.. 
-DGLX_GLXEXT_PROTOTYPES  
-I/Users/ima/Desktop/FlightGear/fgdev9.8/include  -g -O2 -D_REENTRANT 
-c -o extensions.o `test -f 'extensions.cxx' || echo 
'./'`extensions.cxx
source='RenderTexture.cpp' object='RenderTexture.o' libtool=no \
depfile='.deps/RenderTexture.Po' tmpdepfile='.deps/RenderTexture.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../.. 
-DGLX_GLXEXT_PROTOTYPES  
-I/Users/ima/Desktop/FlightGear/fgdev9.8/include  -g -O2 -D_REENTRANT 
-c -o RenderTexture.o `test -f 'RenderTexture.cpp' || echo 
'./'`RenderTexture.cpp
RenderTexture.cpp: In constructor `RenderTexture::RenderTexture(const 
char*)':
RenderTexture.cpp:163: error: `None' undeclared (first use this 
function)
RenderTexture.cpp:163: error: (Each undeclared identifier is reported 
only once
   for each function it appears in.)
RenderTexture.cpp: In member function `bool 
RenderTexture::_Invalidate()':
RenderTexture.cpp:582: warning: invalid conversion from `unsigned 
int*' to `
   const GLuint*'
RenderTexture.cpp:588: warning: invalid conversion from `unsigned 
int*' to `
   const GLuint*'
RenderTexture.cpp: In member function `bool RenderTexture::Resize(int, 
int)':
RenderTexture.cpp:729: warning: invalid conversion from `unsigned 
int*' to `
   const GLuint*'
RenderTexture.cpp:731: warning: invalid conversion from `unsigned 
int*' to `
   const GLuint*'
RenderTexture.cpp: In member function `void
   RenderTexture::_ParseModeString(const char*, std::vectorint,
   std::allocatorint , std::vectorint, std::allocatorint )':
RenderTexture.cpp:1274: error: `True' undeclared (first use this 
function)
RenderTexture.cpp: In member function `bool
   RenderTexture::_InitializeTextures()':
RenderTexture.cpp:1825: warning: invalid conversion from `unsigned 
int*' to `
   GLuint*'
RenderTexture.cpp:1936: warning: invalid conversion from `unsigned 
int*' to `
   GLuint*'
make[2]: *** [RenderTexture.o] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
makesg done
I added the following to the top of RenderTexture.cpp:
#ifdef __APPLE__
#  ifndef None
# define None false
#  endif
#  ifndef True
# define True true
#  endif
#endif
Maybe the above should go elsewhere such as compiler.h?  It gets me 
past the build errors.
My above changes throw off the line numbers, but then I get the 
following warnings:

g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../.. 
-DGLX_GLXEXT_PROTOTYPES  
-I/Users/ima/Desktop/FlightGear/fgdev9.8/include  -g -O2 -D_REENTRANT 
-c -o RenderTexture.o `test -f 'RenderTexture.cpp' || echo 
'./'`RenderTexture.cpp
RenderTexture.cpp: In member function `bool 
RenderTexture::_Invalidate()':
RenderTexture.cpp:591: warning: invalid conversion from `unsigned int*' 
to `
   const GLuint*'

Removed by:
glDeleteTextures(1,  (const GLuint*) _iTextureID);
RenderTexture.cpp:597: warning: invalid conversion from `unsigned int*' 
to `
   const GLuint*'

Removed by:
glDeleteTextures(1, (const GLuint*) _iDepthTextureID);
RenderTexture.cpp: In member function `bool RenderTexture::Resize(int, 
int)':
RenderTexture.cpp:738: warning: invalid conversion from `unsigned int*' 
to `
   const GLuint*'

Removed by:
glDeleteTextures(1, (const GLuint*) _iTextureID);
RenderTexture.cpp:740: warning: invalid conversion from `unsigned int*' 
to `
   const GLuint*'

Removed by:
glDeleteTextures(1, (const GLuint*) _iDepthTextureID);
RenderTexture.cpp: In member function `bool
   RenderTexture::_InitializeTextures()':
RenderTexture.cpp:1834: warning: invalid conversion from `unsigned 
int*' to `
   GLuint*'

Removed by:
glGenTextures(1, (GLuint*) _iTextureID);
RenderTexture.cpp:1945: warning: invalid conversion from `unsigned 
int*' to `
   GLuint*'

Removed by:
glGenTextures(1, (GLuint*) _iDepthTextureID);
The above changes allow me to build RenderTexture.cpp with no errors or 
warnings.

I should have considered that normalmap.cxx required that one piece of 
simgear that I couldn't build. 8-( Sorry for complaining about a 
non-problem...

Thanks for the js correction and information also!
I'll now work on building fg...
Thanks again!
Ima
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Mac joysticks + Mac OS X build errors

2005-02-12 Thread Erik Hofman
[EMAIL PROTECTED] wrote:
Erik
Thank you VERY much!
The simgear change gets me further along  but still breaks as None and 
True are not defined.
snip fixes
The above changes allow me to build RenderTexture.cpp with no errors or 
warnings.
These changes have been committed now.
Erik
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] Mac joysticks + Mac OS X build errors

2005-02-12 Thread ima . sudonim

Erik,
Thanks! FG builds on mac os X.3 with no problems now...
Ima
Ima  wrote:
 Erik

 Thank you VERY much!

 The simgear change gets me further along  but still breaks as None 
and
 True are not defined.

snip fixes
 The above changes allow me to build RenderTexture.cpp with no errors 
or
 warnings.

These changes have been committed now.
Erik

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