Re: [hatari-devel] mingw-w64 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Subject: Re: [hatari-devel] mingw-w64
- From: Christer Solskogen <christer.solskogen@xxxxxxxxx>
- Date: Sat, 21 Sep 2013 12:57:53 +0200
- Cc: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=6k440HsI+cAZdXBmWSPzKi4rRinP7D+k1A/KKBv2yLM=; b=zXRVlI5vpQXKSlN6X1qAp2Sn1sWCuujKytdSKENDHFLCo8FSFSQZGgiC3AWOrtGAVQ UvqB44/VG5iWdjKYAbAwiiNAtJ12szB0NCA9r8A9NkYm0rlVPQHXWJPyBCfmcTpsqvFW apNWIvPcJNgD2JCXUgXJlVQPXvnIWg1/1Qq+U2lsh5aKsrQI9DLDVD8PeOhIiaZQDqFx rkPAN8bzDNSkjymztf1S7z1wKBjqj4vsN9bpcNhOTNys0LoVmkjRYD4t4yGvbE1TzU3e iKZrnj/K9vIYr12A76Ld/s8ftIKZslqR4Ma0GraNcPKIcXDxHJx/G9kSUXQqYanjHxxF 3DoQ==
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,