[SDL] Problems compiling SDL on mingw32
jsilicon at earthlink.net
Mon Dec 8 14:47:00 PST 2003
Ok, toom alot of trial-and error, but finally got it to compile. Strangely
enough, downloading patched binutil's did not work, as was suggested to be
the problem on this list. However, one slight mention (the single one I can
find on this list) said that "--disable-nasm" would fix the problem -- which
turned out to be only half the solution.
An odd thing happens when trying to use "--disable-nsam": the ./configure
script seems to ignore actual settings, and pull the wrong stuff out of it's
cache. It is, for some reason, nessecery to delete the cache, and
./configure with BOTH "--disable-nasm" and "--with-gnu-ld" (the latter is
nessecery, because configure wants to use some MSVC++ tools that don't exist
on my drive). Also, it's nessecery to do a "mingw32-make clean," or
everything seems to break (silently during library compile -- a problem
occurs when linking the library in to an application).
If anyone with access could kindly add this stuff to
http://www.libsdl.org/extras/win32/mingw32/README.txt, this ordeal might be
avoided in the future.
On a side note: How come README.mingw32 isn't in the source distribution?
----- Original Message -----
From: "John Drinkwater" <john at nextraweb.com>
To: <sdl at libsdl.org>
Sent: Wednesday, December 03, 2003 1:18 PM
Subject: Re: [SDL] Problems compiling SDL on mingw32
> John Silicon wrote:
> > .libs/libSDL.lax/libhermes.al/mmxp2_32.lo: bad reloc address 0x87 in
> > section `.text'
> > If anyone has any clues, please help.
> > - Silicon
> This error is caused by a bug in binutils.
> (binutils is the package that contains ld and objdump, and both are
> first refuses to link the .o file, and the second thinks it's truncated)
> I use cygwin, so I had to grab the latest source and build it myself,
> might be able to find an updated package for mingw32 somewhere.
> Check the mailing list archive for references to this problem, "bad reloc"
> should find them.
> SDL mailing list
> SDL at libsdl.org
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
More information about the SDL