Re: [hatari-devel] mingw-w64

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Sat, Sep 21, 2013 at 11:22 AM, Nicolas Pomarède
<npomarede@xxxxxxxxxxxx> wrote:
> Well, that does not necessarily proove anything. Native libSDL is located in
> /usr with all others system wide libraries, so it seems quite normal that
> cmake finds it here without requiring a "hint".
>

Oh, yes it does. It finds the correct library. Not the native one.

> But what does your "i686-w64-mingw32-gcc -print-sysroot" displays ? It seems
> some symlinks were added when you compiled and/or installed mingw. Maybe
> some bad parameters when running "./configure" before building mingw ?
>

Both of the compilers show:
/opt/cross-mingw-w64/bin/../../cross-mingw-w64
Just as it should be.
The whole point is that my compiler suite is completly re-locateable.
Which yours is not.

$ echo | ./x86_64-w64-mingw32-gcc -v -x c -E -
Using built-in specs.
COLLECT_GCC=./x86_64-w64-mingw32-gcc
Target: x86_64-w64-mingw32
Configured with:
/home/solskogen/mingw-w64-builder/trunk/bin/gcc/configure
--prefix=/home/solskogen/obj/cross-mingw-w64
--libexecdir=/home/solskogen/obj/cross-mingw-w64/lib
--target=x86_64-w64-mingw32 --disable-nls --enable-languages=c,c++
--enable-libgomp --disable-libstdcxx-pch --enable-checking=release
--enable-threads=win32 --disable-multilib
--enable-fully-dynamic-string
--with-sysroot=/home/solskogen/obj/cross-mingw-w64
Thread model: win32
gcc version 4.8.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-E' '-mtune=generic' '-march=x86-64'
 /opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/cc1 -E
-quiet -v -iprefix
/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/
-isysroot /opt/cross-mingw-w64/bin/../../cross-mingw-w64 -U_REENTRANT
- -mtune=generic -march=x86-64
ignoring duplicate directory
"/opt/cross-mingw-w64/bin/../lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.8.1/include"
ignoring nonexistent directory
"/opt/cross-mingw-w64/bin/../../cross-mingw-w64/usr/local/include"
ignoring duplicate directory
"/opt/cross-mingw-w64/bin/../lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.8.1/include-fixed"
ignoring duplicate directory
"/opt/cross-mingw-w64/bin/../lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory
"/opt/cross-mingw-w64/bin/../../cross-mingw-w64/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/include
 /opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/include-fixed
 /opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/include
End of search list.
# 1 "<stdin>"
# 1 "<command-line>"
# 1 "<stdin>"
COMPILER_PATH=/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/:/opt/cross-mingw-w64/bin/../lib/gcc/:/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/:/opt/cross-mingw-w64/bin/../lib/gcc/:/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/:/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/
COLLECT_GCC_OPTIONS='-v' '-E' '-mtune=generic' '-march=x86-64'

So the compiler looks for all the right places for the include files.
Same goes for the linker.

And yet again: I'm able to cross compile everything else with my cross
compiler without any other stuff than:
../configure --host=x86_64-mingw-w64.

> Yes it works, but it seems a better solution would be to remove the symlinks
> in your installation. I think your mingw directories are messep up. This is
> what I have :
>

Have in mind that mingw-w64 is not the same as mingw.


-- 
chs,



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/