SDL 2.0 was locked down Friday in preparation for release in May, and I have been working this weekend on converting the SDL 2 headers to Free Pascal. In addition I have been writing a OpenGL which creates stubs for loading the correct OpenGL library and loading the OpenGL core functions and extensions for every platform.<div>
<br></div><div>So far things the basic things are working and I can cross compile an OpenGL application for Linux32 and Win32 from my Linux desktop. However I have a few problems which I am hoping someone on this list can help me with.</div>
<div><br></div><div>Problems:</div><div><br></div><div>1) On Linux can build an i386-linux SDL2 application but I cannot cannot run or debug my test applications from the IDE. When I try to run from within the IDE nothing seems to happen. When I open a terminal I can and run my test application runs just fine.</div>
<div><br></div><div>2) I cannot compile a i386-win32 SDL2 application on Linux using the SDL2 static libraries (define static in CrossSDL2.pas which should be reference i386-win32/libSDL2.a) for Windows. I get a bunch of errors similar to this:</div>
<div><br></div><div> test.lpr(79,1) Error: Undefined symbol: CROSSSDL2_$$_SDL_GL_LOADLIBRARY$PCHAR$$LONGINT</div><div> ...</div><div> test.lpr(79,1) Error: Undefined symbol: CROSSSDL2_$$_SDL_DESTROYWINDOW$PSDL_WINDOW</div>
<div><br></div><div>3) On windows when I run my test sdl app (I must use libSDL2.dll due to problem 2 above) from a cmd prompt I get no SDL window and access violations at termination, but when I run my test applcation using "start my-test-i386-win32.exe" or double clicking in windows explorer it runs jsut fine.</div>
<div><br></div><div>Here is a link to my sources including SDL2 static and dynamic library binaries for Linux32 and Win32. My sources are in a 'draft' state and likely to change drastically in future revisions: </div>
<div><a href="http://www.codebot.org/fpc-sdl2-test.zip">http://www.codebot.org/fpc-sdl2-test.zip</a></div><div><br></div><div>As a side note, if anyone wants to compile SDL2 libaries for Windows or Linux themselves and needs help I can send your the steps I used to builds SDL2 from the latest mercurial version.</div>