Hi,

It is because you are cross compiling but not passing any target triplet.

There's an 'approach' I have always used which is just create copies of 
the 27 executables prefixed x86_64-w64-mingw32 in bin.
(so you have both x86_64-w64-mingw32-g++.exe and g++.exe).

Then ensure the only mingw related thing on your path is ..\mingw64\bin 
for the cross compiler. All should work OK I think.

Regards

Mark


On 02/06/2012 17:39, Frank Ueberschar wrote:
> Hi, I am trying to cross-build Qt 4.7.4 using sezeros 2011 toolchain.
>
> Even if I try to compile a simple hello_world.cpp the toolchain does not
> work. So I think there must be some issue with the toolset.
>
> Since I successful built Qt with the native
> "mingw-w64-bin_x86_64-mingw_20110510_sezero" toolset on a win7/64bit I
> wondered why the mingw-w64-bin_i686-mingw_20110510_sezero cross
> toolchain does not find its includefiles and processes like
> "cc1plus.exe" itself. I have unpacked the mentioned archive to some
> folder using its predefined structure. So g++ -print-search-dirs will
> show the relevant paths. (However, when I add the paths manually via
> environment-PATH the g++ will find it.)
>
> It neither works on windows cmd.exe nor on the msys-shell. In both cases
> there were only the compiler path on the PATH (in case of msys, the msys
> path was too).
>
> This PATH will cause "g++.exe: CreateProcess: No such file or directory":
> $ echo $PATH
> /d/mingw32_x64/x86_64-w64-mingw32/bin:/d/msys/1.0/bin
>
> This PATH will find the cc1plus.exe:
> $ echo $PATH
> /d/mingw32_x64/libexec/gcc/x86_64-w64-mingw32/4.4.7/:/d/mingw32_x64/x86_64-w64-mingw32/bin:/d/mingw32_x64/bin:/d/msys/1.0/bin/
>
> Adding the compiler include paths (where string.h, windows.h, ... are
> located) with -I will bring the compiler errors away, too. But this
> should not be the normal behavior, right? Maybe someone can give me a
> hint how to use this cross-toolchain?
>
>
> Thanks a lot,
> .. frank
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to