I’ve got the linux-based gcc cross-compiler compiling regular SDL code
for Windows. It all works really well and I can compile Windows
binaries under Linux.
I’ve recently written some code that uses OpenGL. Is it possible to
cross-compile this stuff for Windows too? And what would I need to
download? (that’s hardware-accelerated OpenGL, not software).–
I will not spank others
I had to do this for a Java port of SDL called SDL4Java (the homepage on
Sourceforge is not complete yet). Go to get the library and the header
files for Windows here:
The DLLs are only OpenGL v1.1. Your graphics card should have supplied
better ones.
Heres from the SDL4Java MinGW32 docs:----------------------------------------------
If you dont have the Microsoft library files you should still have the
DLLs. Two different tools can create
a def file from a dll: pexports and impdef.
I’ve got the linux-based gcc cross-compiler compiling regular SDL code
for Windows. It all works really well and I can compile Windows
binaries under Linux.
I’ve recently written some code that uses OpenGL. Is it possible to
cross-compile this stuff for Windows too? And what would I need to
download? (that’s hardware-accelerated OpenGL, not software).
I left this important note out by accident:--------------------------------------------
I had linking issues where the exported symbols argument sizes ( the ‘@’
and some number ) were incorrect. To fix this, I
had to hand edit the def files. You will probably have to do this also.
If you want I can save you some time and just send you the link
libraries or the edited def files.
James wrote:
I’ve got the linux-based gcc cross-compiler compiling regular SDL code
for Windows. It all works really well and I can compile Windows
binaries under Linux.
I’ve recently written some code that uses OpenGL. Is it possible to
cross-compile this stuff for Windows too? And what would I need to
download? (that’s hardware-accelerated OpenGL, not software).