* Enrique Vaamonde -- Thursday 24 November 2005 09:20:
> I have tried to compile FlightGear using the TestRenderTexture.cpp in
> the cvs but am unable to compile it, [...]:

I had to make this change first:


diff -u -p -U0 -r1.2 TestRenderTexture.cpp
--- TestRenderTexture.cpp       29 Jan 2005 11:44:01 -0000      1.2
+++ TestRenderTexture.cpp       24 Nov 2005 08:32:18 -0000
@@ -308 +308 @@ void _Display()
-int main()
+int main(int argc, char *argv[])
@@ -309,0 +310,2 @@ int main()
+    int argn = argc;
+    glutInit(&argn, argv);


And then compiled with this Makefile ($ make -f Makefile.rt):


all: TestRenderTexture

TestRenderTexture: TestRenderTexture.o
        g++ -g -o TestRenderTexture TestRenderTexture.o -lstdc++ -lGL -lglut 
-lsgscreen -lsgdebug

TestRenderTexture.o: TestRenderTexture.cpp
        g++ -g -c TestRenderTexture.cpp


When I run the program, I get lots of "OpenGL ERROR: invalid value:
RT Update", but apart from that it works.

m.

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

Reply via email to