OS X Leopard (10.5) on a Macbook, gcc 4.0.1, a patched plib 1.8.4.
Simgear 0.3.11-pre2 needs the following patch in order to build:
Index: SimGear-0.3.11-pre2/simgear/screen/RenderTexture.cpp
===================================================================
--- SimGear-0.3.11-pre2.orig/simgear/screen/RenderTexture.cpp 2007-11-17
00:35:45.000000000 -0700
+++ SimGear-0.3.11-pre2/simgear/screen/RenderTexture.cpp 2007-11-24
10:26:50.000000000 -0700
@@ -514,7 +514,7 @@
}
if (error =
- CGLChoosePixelFormat(&pixFormatAttribs[0], &pixFormat,
&iNumFormats))
+ CGLChoosePixelFormat(&pixFormatAttribs[0], &pixFormat,
(GLint*)&iNumFormats))
{
fprintf(stderr,
"RenderTexture Error: CGLChoosePixelFormat() failed.\n");
@@ -556,7 +556,7 @@
}
long screen;
- if (error = CGLGetVirtualScreen(CGLGetCurrentContext(), &screen))
+ if (error = CGLGetVirtualScreen(CGLGetCurrentContext(),
(GLint*)&screen))
{
_cglCheckError(error);
return false;
Please apply.
--
Hans Fugal
Fugal Computing
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel