mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] 64-bit


From: William
Subject: Re: [Mingw-cross-env-list] 64-bit
Date: Tue, 19 Jun 2012 09:01:29 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 06/18/2012 07:28 PM, Lothar May wrote:
Hi,

2012/6/15 William<address@hidden>:
yes,
actually there is already something, it is just that it is not pushed to the
main branch, I really don't know why.
I advise you to follow instructions from:
http://mxe.cc/

Instead of dowloading this branch :
git clone https://github.com/mxe/mxe.git

you can use this branch, which is an upgrade of mxe for really having multi
targets available :
https://github.com/tonytheodore/mxe.git
You will have to change the target, in the file settings.mk (this file
appears if you run quickly make and then Ctrl c straight))
I don't have my pc here, but in this file put the following line :
TARGET = x86_64-w64-mingw32
(instead of i686-pc-mingw32 which is for 32bits). For the rest, follow
instructions from http://mxe.cc

If something goes wrong, which is very likely, submit your problems to this
mailing list or to the bug report in github. It is also very likely that it
could be solved easily.

I tried to do exactly that, but encountered some strange behaviour.
Even though I set the target in the settings.mk file, it seems to
build all three targets i686-static, i686-dynamic and x86_64. I tried
to build qt, but it fails for target i686-dynamic.

[...]
/opt/mingw-w64/usr/i686-dynamic-mingw32/lib/libmng.a(libmng_jpeg.o):libmng_jpeg.c:(.text+0x1fa2):
undefined reference to `jpeg_destroy_decompress'
collect2: error: ld returned 1 exit status

make[6]: *** [../../../../plugins/imageformats/qmng4.dll] Error 1
make[6]: Leaving directory
`/opt/mingw-w64/tmp-qt-i686-dynamic-mingw32/qt-everywhere-opensource-src-4.8.1/src/plugins/imageformats/mng'
make[5]: *** [release] Error 2
[...]

It seems that some libjpeg dependency is missing there.

However, is there any way to *only* build for x86_64 target?

Best regards,
Lothar


Lothar,
if you look into 'Makefile', which is THE file that invokes everything, you will see that it is not "TARGET" that you need to define, as I told you before, but "TARGETS". So the line to write into settings.mk (that overloads variables from the Makefile) is :
"TARGETS := x86_64-static-mingw32"

This error appeared while building in dynamic mode (x86_64-dynamic-mingw32), which is much experimental than the static mode.If this is no problem for you, you should first try "x86_64-static-mingw32", which is much more likely to succeed.

By the way I am unfortunately personnaly not able to solve this specific error... To solve this precise error, either wait for an answer on this mailing list, or suscribe to github and file a bug report.

Regards,
William



reply via email to

[Prev in Thread] Current Thread [Next in Thread]