Quote:
Originally Posted by John VV
you can not mix mingw and cygwin headers
just the same as you can not mix the MS Visual studio and mingw or cygwin headers
when i was using Visualstudio i would rename the msys install location
c://GnuWin32/mingw/?
to
c://123GnuWin32/mingw/?
to remove it from the windows system $PATH
all the SDL-???? packages are in mingw
just use the gui installer for msys
or the gnuwin32 project files
make the mingw *.la files then use dlltool to convert them into windows dll's
|
Thanks for the response!
When it comes to Windows, I guess I will have to reverse what I've heard for years and say "I am a total n00b!". I'm used to Linux where this wouldn't be a problem. I am trying to install the SDL_gfx libraries to no avail. Everything else with SDL has worked smoothly via cygwin, mingw, and even codeblocks (tried them all!)
I really don't understand DLL's, I have read up about them, but my experience is telling me that a DLL is required in addition to lib's and include's for C++ linked library based compiles - such are the other SDL libraries I installed: SDL_image, SDL_ttf, etc. But I hit the brick wall when I got to SDL_gfx! If only the maintainer provided Win binaries I wouldn't have wasted a weekend already(!) (with huge respect to the developer of course, I know it's work)
So now my system is bit "bjorked", you are right, I have a cygwin/mingw combo going on, but the systems are still separate and I "do know" where my paths are. I could clean that up, but a fresh install of SDL on cygwin also didn't go so smooth.
I know for a fact that SDL_gfx was a part of the problem because all other sources included "SDL/SDL.h" for example where the source for SDL_gfx goes direct to "SDL.h", I had to rewrite that to compile, and then of course the dog chasing its own tail - began. It did compile, but I'm not sure if I created extra problems.
I don't know VisualStudio. I am comfy with cygwin because I am a cli + vim kinda coder, but still having problems, and somewhere in my ConEmu+MinGW reading I came to find them reporting "We don't plan to support POSIX" and therefor... I gave up and tried cygwin.
This might sound harsh, but really everything worked, up to trying to install SDL_gfx for SDL1.2, then I said "OK let me try SDL2!" and that didn't work either.
I will look, but I doubt that SDL_gfx is in MinGW as I am reading all over about problems compiling it for Win, whether it be SDL1.2 or SDL2. My problem is not with installing SDL at all, it is simply this library for SDL_gfx. That's what leads me to wanting to understand how to compile a library and install it correctly in cygwin or mingw. But I might just give up at this point.
So does simply using dlltool to convert *.la work to make DLL's? I don't understand DLL's but would be willing to try. Right now I am systematically copying SDL_gfx functions out of the source and putting them into my code
hahaha. Madman! But it is working! (and developer will get credit as requested via license).
Sorry if I'm ranting, I've been doing this for 2 days straight...