Re: [Vala] OpenGL & SDL Windows



I was able to resolve it, I don't know what minw32-make was doing... I
ended up statically linking opengl with Microsoft Visual C++ compiled
opengl library. I'm sure there are flags I probably don't need.

valac -g --save-temps --pkg gee-1.0 --pkg gsl --pkg gl --pkg glu --pkg
sdl --pkg sdl-image -X -LC:\Windows\System32 -X -LC:\vala-0.12.0\lib
-X "C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\OpenGL32.lib" -X
-IC:\cygwin\usr\include\w32api -X -IC:\vala-0.12.0\include\SDL -X
-IC:\SDL-1.2.14\include -X -lgsl -X -mwindows -X -lmingw32 -X -luser32
-X -lgdi32 -X -lSDLmain -X -lSDL_image -X -lSDL --vapidir=vapi
src/ball.vala src/darkcore/collision.vala src/darkcore/engine.vala
src/darkcore/event.vala src/darkcore/keystate.vala
src/darkcore/sprite/text.vala src/darkcore/sprite.vala
src/darkcore/texture.vala src/darkcore.vala src/darkcore/vector.vala
src/main.vala src/paddle.vala

On Fri, Jun 3, 2011 at 10:22 AM, Joseph Montanez
<jmontanez gorilla3d com> wrote:
Current Makefile https://gist.github.com/1005976

I know this is a bit out of the realm for Vala as its a GCC linking
issue, but I can't seem to get OpenGL working with SDL on windows.
Basically I get undefined reference to glEnable 4, etc.

I am able to get SDL to compile just fine, but as soon as I use in
OpenGL, all these dependencies arise and I've done everything I could
to get them to resolve. Installing MS C++ compiler was a horrible
idea, if I don't use window.h from cygwin, gcc then uses windows.h
from the MS distribution and the entire gobject library seems to blow
up.

The entire source code I've been trying to compile is located at
https://github.com/gorilla3d/Vala-Pong

--
Joseph Montanez
Web Developer
Gorilla3D
Design, Develop, Deploy




-- 
Joseph Montanez
Web Developer
Gorilla3D
Design, Develop, Deploy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]