Build JOGL 2.0 beta on MS Windows with MS Visual Studio

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build JOGL 2.0 beta on MS Windows with MS Visual Studio

gouessej
Administrator
Hi!

My colleague did these complementary actions to use MS Visual Studio:

To build JOGL under win32 with Visual Studio Express 2008 (visualstudiov9)
- edit file gluegen.properties to set the property win32.c.compiler=vc9
- in a win cmd, intialize correctp path to msvc9: "c:\Program files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
- from the folder jogl\make launch ant 1.8: ..\..\apache-ant-1.8.1\bin\ant

Modifications to ant files:
- gluegen\make\build.xml : comment out the call to striplibs
- jogl\make\build-jogl.xml, build-nativewindow.xml and build-newt.xml : comment out calls to striplibs
- jogl\make\build-jogl.xml : l1157: add gdi32 in the linker libs list linker.cfg.win32.msvc.jogl

Modifications to source code files:
- gluegen\test\junit\generation\test1.c :
        -l163,170: replace void * with char * in methods typeTestAnonSingle and typeTestAnonPointer at the bottom of the file to build with cl.exe
        -l124: replace the call to snprintf by a call to sprintf_s (not the right std c++ ..)
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Build JOGL 2.0 beta on MS Windows with MS Visual Studio

Wade Walker
Administrator
Thanks for posting this! I'll have to try it this way after I get the build working the default way with MinGW.
Reply | Threaded
Open this post in threaded view
|

Re: Build JOGL 2.0 beta on MS Windows with MS Visual Studio

gouessej
Administrator
I dislike Microsoft products, I posted this only to avoid some headaches to MS VS users.
Julien Gouesse | Personal blog | Website