So, it looks like the configure script is grabbing paths from both the
mingw and cygwin/posix/gnu compilers (config.log mentions the
/usr/local/include/mingw path, Makefile is just referencing gcc and not
mingw-i686-gcc). Try uninstalling all of your mingw and cygwin
gcc/g++/gcc-core/etc., complete that uninstallation, then start the package
installer again and just grab gcc-4.7.x and g+±4.7.x (it’ll grab the
dependencies automagically for you). That will rebuild the gcc/g++ links
to the proper compiler. mingw and cygwin are quite incompatible, being
that mingw does not use posix, and if you try and mix them (like what’s
happening in this case, from the best I can assume), the compiler won’t be
able to sort out the library dependencies properly. If you want to keep
mingw-i686 compile tools, then you’re going to have to specify the compiler
in your ./configure call like this:
$ export TOOLCHAIN_DIR=/usr/x86_64-pc-cygwin/bin
$ …/configure CC=gcc.exe CXX=g++.exe LD=$TOOLCHAIN_DIR/ld.exe
AR=$TOOLCHAIN_DIR/ar.exe AS=$TOOLCHAIN_DIR/as.exe NM=$TOOLCHAIN_DIR/nm.exe
STRIP=$TOOLCHAIN_DIR/strip.exe RANLIB=$TOOLCHAIN_DIR/ranlib.exe
DLLTOOL=$TOOLCHAIN_DIR/dlltool.exe OBJDUMP=$TOOLCHAIN_DIR/objdump.exe
You may need to specify RESCOMP and find the path to windres.exe for cygwin
(if this exists, I can’t recall, and I’m in linux right now).
Your TOOLCHAIN_DIR may be different than the one I am specifying, so keep
that in mind. Check the /usr/ directory to see if you have a different
folder.
Let me know how this goes,
-AlexOn Tue, Jan 7, 2014 at 3:01 PM, phil12d3 wrote:
The output of
cygcheck -c
is:https://dl.dropboxusercontent.com/u/86433876/cygwin/cygcheck.txt
MrOzBarry wrote:
What is the output of
cygcheck -c
from the terminal emulator? That
will list all installed packages.Going back to my post that you linked to at the beginning, there was one
strange issue I was having with my old cygwin install; I had both the mingw
and regular gcc built utils installed, which was a problem because some
tools had the same name and were linking to both the cygwin and mingw
runtimes, meaning the compiling had some horribly bizarre errors.If you are using the mingw toolchain, I might suggest just sticking to
mingw/msys. Not as robust (seriously, I love the cygwin terminal
emulator!), but it will work.Now, if you’re determined to use the cygwin runtime, you should probably
clear out all the mingw build tools, and make sure your autotools and gcc
versions are all up to date. If you had installed the mingw build tools,
try uninstalling all of your compiler tools (cygwin/gnu and mingw), then
run the setup utility a second time for the cygwin/gnu so it creates all
the appropriate links automatically (otherwise it may be a pain).Alberto made a good point that a clean install made it super easy to
build, so that may be a good option. You mentioned trying this already
with the same issue, and that seems strange, as Alberto and myself both
tried building from a clean install, and were successful, which means
either you are installing some sort of conflicting packages (like I
mentioned, possibly compiler conflicts?), or for some reason your installs
are being corrupted.If you want to avoid a clean install, at the very least, try just wiping
out the SDL directory and re-extract/clone it and start building fresh -
when I used ./autogen in my previous/failed attempts, that seemed to cause
more trouble than it’s worth.On Mon, Jan 6, 2014 at 7:22 PM, phil12d3 <> wrote:
Quote:
Sorry for the late reply. The files are shared from the below links:
https://dl.dropboxusercontent.com/u/86433876/cygwin/configure.in
https://dl.dropboxusercontent.com/u/86433876/cygwin/Makefile.in
https://dl.dropboxusercontent.com/u/86433876/cygwin/setup.iniThe below zip files contains my makefile and content just after building
and encountering the error:https://dl.dropboxusercontent.com/u/86433876/cygwin/build.zip
Please let me know if you need any others.
Another side note, I’ve tried to install SDL2 on Cygwin64 on my machine at
work and I was previously getting the same error as I was at home. This
morning I got the latest code and built as MrOzBarry suggested and it
actually worked this time. So, i’m also quite certain that reinstalling
windows is not the way to go.Many thanks for all your help.
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org