Hello, I tried to compile Flightgear on a G4 running Mac OS X 10.4.2. There were several compilation errors which I could overcome by changing several source files in the packages: FlightGear-0.9.8 SimGear-0.3.8 plib-1.8.4 In detail, the list of files with a short change description: FlightGear-0.9.8/src/Cockpit/hud.hxx line 701: int view[4]; must be defined as GLint view[4]; FlightGear-0.9.8/utils/Modeller/normalmap.cxx #include <simgear/compiler.h> must be added in front of: #include <GL/gl.h> must be #include SG_GLU_H SimGear-0.3.8/simgear/scene/sky/cloud.cxx line 60: static int nb_texture_unit = 0; must be defined as static GLint nb_texture_unit = 0; SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyCloud.cpp line 412: int iOldVP[4]; must be GLint iOLDVP[4]; SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyCloud.cpp line 484: int VP[4] = { ... must be GLint VP[4] = { ... SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyDynamicTextureManager.cpp line 252: unsigned int iID; must be GLuint iID; SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyRenderableInstanceCloud.cpp line 479: int iOldVP[4]; must be GLint iOldVP[4]; SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyTexture.hpp line 80: unsigned int _iID; must be GLuint _iID; also all method specifications refering to _iID has to be declared GLuint SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyTextureManager.cpp line 307: int iMaxsize; must be GLint iMaxsize; SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyTextureManager.cpp line 677: unsigned int iTextureID; must be GLuint iTextureID; SimGear-0.3.8/simgear/scene/sky/clouds3d/SkyTextureState.cpp line 53: int iNumTextureUnits = 0; must be GLint iNumTextureUnits = 0; SimGear-0.3.8/simgear/sound/soundmgr_openal.cxx line 41: the definitions of isinf and isnan causes an endless loop! the definition of isinf can be deleted the definition of isnan has to be changed: inline int (isnan)(double r) { return !(r <= 0 || r >= 0); } plib-1.8.4/src/js/jsMacOSX.cxx line 278: static has to be deleted Regards |
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d