Open supertuxkart-sourceforge-migration opened 10 years ago
Author: auria I applied the safe parts in SVN. The long GLuint part remains, not sure what to do about this one without breaking anything (I guess a proper fix would imply checking what GLuint resolves to on this setup)
Author: hikerstk Can we just apply a patch like this?
--- COpenGLExtensionHandler.h (revision 14418) +++ COpenGLExtensionHandler.h (working copy) @@ -2387,7 +2387,11 @@
glProgramParameteriARB(program, pname, value);
+# ifdef clang
glProgramParameteriNV(program, pname, value);
Author: auria Joerg's patch committed in svn. What's left is to verify it actually works, and perhaps look at the warnings in the build log. But since we use GCC to produce release builds, that's no release blocker
Author: hikerstk
The following changes are necessary to compile STK with clang on osx (thanks to supermat)
Changed files:
In lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h, I changed line 2390 (long GLuint) just to (long). Then in lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.h, I changed the lines with: BEGIN CODE class NSWindow; class NSOpenGLContext; class NSBitmapImageRep; END CODE to BEGIN CODE
ifndef OBJC
class NSWindow; class NSOpenGLContext; class NSBitmapImageRep;
endif
END CODE And finally in src/utils/random_generator.hpp, I added #include after #include .
I also attach the build-log, which contains some potentially interesting warnings we should take care of.
Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/1077