Installing SDL

Before I get started, I'll give the system specs.
Windows XP Professional
MinGW 4.7.1
GNU Make 3.82

So, I downloaded a copy of MinGW from (Version 9.2) that comes with SDL, but I've been having an issue with trying to install SDL-Widgets, so I figured I'd try to rebuild SDL.

./configure dump:

To summarize my configure, I see this issue a good bit:
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'

I have absolutely no clue what it means since I've not been able to find it online or in any kind of manual.

And this:
mv: cannot stat `libtoolT': No such file or directory
cp: cannot stat `libtoolT': No such file or directory
chmod: cannot access `libtool': No such file or directory

make dump:

make install dump:

This is the summary:
C:/MinGW/msys/1.0/bin/sh.exe build-scripts/mkinstalldirs /usr/local/bin
/bin/install -c -m 755 sdl-config /usr/local/bin/sdl-config
process_begin: CreateProcess(NULL, /bin/install -c -m 755 sdl-config /usr/local/
bin/sdl-config, ...) failed.
make (e=3): The system cannot find the path specified.
make: *** [install-bin] Error 3

My question though is why do I keep getting these issues? It's not just with SDL, but every other toolkit I try to install as well.

Can someone help me?

Edit: updated the links.
Last edited on
What editor/compiler are you using? Or are you going from the command line?
I use Code::Blocks with the MinGW compiler, but to build SDL I'm using MSYS shell.
idk if this is what you are trying to do or not, but has awesome SDL and 2D OpenGL tutorials. Its how I learned it.
No, that's what my compiler already has with it (but a slightly more up to date version). I need to build SDL from source so that I can use SDL-widgets with it. I keep getting an error saying it can't find the SDL path, hence, why I need to build from source.
When you say it can't find the SDL path, do you mean that it can't find SDL.h when you include it as #include "SDL.h" but it works when you do #include "SDL/SDL.h" ? I solved that by passing `sdl-config --cflags` to the compiler (g++) when compiling and `sdl-config --libs` when linking.
I actually meant the sdl-config path was incorrect. I believe I have fixed my issues completely though. I just rebuilt SDL for about the tenth time tonight and I got everything working correctly.

After getting fed up, I deleted my entire MinGW directory (located at C:/MinGW/) as a last ditch effort. I unzipped nuwen's MinGW back to the same location (clean start). The first thing I realized was that I didn't have MSYS anymore, this through up a red flag. I then realized that what had happened was that I had downloaded MinGW's GCC suite and eventually just wrote over it with nuwen's version. I can't believe I didn't realize it sooner.

I accidentally built SDL in the wrong directory (was more anxious to test it than anything) so I am in the process of rebuilding it again (very slow process on a netbook). Once that's installed, I'm going to attempt to rebuild the SDL-widgets toolkit and possibly attempt to build a few other toolkits (to find one that I like).

On a side note, I read a post on StackOverflow that there is an issue with MinGW's sed.exe and MSYS's sed.exe and that if you delete one, there is no more conflicts between the two. Instead of deleting one, I just changed MinGW's sed.exe to sed1.exe so I can easily change it back (that's a project for another day to test to see if it works or not).

I appreciate the efforts guys, but my stubbornness proves to be unstoppable again. Yay me =/

Edit: All of the SDL examples compiled perfectly fine for me, there wasn't an issue with the SDL library at all, but there was an issue with trying to build other libraries and that's what made me want to rebuild SDL (I'm probably recreating all of the same files as nuwen had, but I have to try, right?).
Last edited on
Topic archived. No new replies allowed.