[SDL] Porting to Win32 -- Which Method?
adt6247 at njit.edu
Fri Feb 1 06:02:00 PST 2002
I'm the only one writing my project, so I can use any compiler I want.
It has to compile on Win32, however. I don't know how to get the OpenGL
stuff compiling without linking with X. Is there any way to make the
autoconf scripts include libraries different in Linux and Win32?
I've never written really portable code before, and never made GNU
automake and autoconf scripts before. I had KDevelop generate them for
St0fF 64 wrote:
> If this is your senior project, and you're the only one being creative on a
> creative system, the other guys and gals do a project, too, on a
> virus-computer (windows==virus). Do they also use C++?
> If so, which IDE do they use? If it's MSVC, and if you don't use X-related
> stuff, it shouldn't be a problem ... I mean, my last Demo was created
> partly under MacOSX and partly under win32. We had to change a '#define
> __WINDOOF__' and schwupp, it compiled under win32.
> Just check what stuff related to LinuX/X you use, replace it by portable
> code (ansi-C/iso-C++) and give it a try under win32.
> St0fF 64
> At 08:30 28.01.2002 -0500, you wrote:
> >Hello, today I'm relatively new to a lot of things, namely SDL, OpenGL,
> >KDevelop, and multi-platform coding.
> >I have a Win98 box and a Linux box. I'm using my Linux box for
> >development for a number of reasons. I wrote a simple SDL + OpenGL app
> >in C++, with a full automake/configure script that was generated by
> >KDevelop. I also set up a local CVS tree. The app is right now very
> >simple, but will become my very complex senior project.
> >It is imperative that I port it to Win32 as well, as my advisor will not
> >be able to run Linux binaries. Plus, I'd really like to show off to my
> >What method would anyone recommend for thus setup? MinGW? Cross
> >Compiling? Something else? What is the easiest method for generating
> >Win32 binaries? I may also need SDL-image, but I'm not sure yet. My
> >compile flags currently look like this:
> >c++ -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new
> >-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DHAVE_OPENGL -o
> >phalanx spearmodel.o main.o -L/usr/X11R6/lib -lGL -lGLU -L/usr/lib
> >/usr/lib/libSDL.so -lm -lX11 -lXext -ldl -lpthread -lXxf86dga -lXxf86vm
> >Keep in mind, I'm willing to ditch KDevelop in favor of emacs if adding
> >new targets to the makefile or something is necessary and may bork
> >KDevelop. It's really powerfull as far as handling nifty OOP stuff, but
> >seems to have little or no ability to add make targets and advanced
> >build stuff.
> >SDL mailing list
> >SDL at libsdl.org
> SDL mailing list
> SDL at libsdl.org
More information about the SDL