Answer the question
In order to leave comments, you need to log in
What could be wrong with cross compiling Qt 4.8 under Linux for Windows?
I tried to compile for Windows 32 following these tips,
but I got this error: CROSS_COMPILE=i686-w64-mingw32-: unknown argument
When I try to compile without the above macro, notifications appear for undefined references to various codecs:
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x267f): undefined reference to `QGb18030Codec::QGb18030Codec()'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x26a6): undefined reference to `QGbkCodec::QGbkCodec()'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x26cd): undefined reference to `QGb2312Codec::QGb2312Codec()'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x26f4): undefined reference to `QEucJpCodec::QEucJpCodec()'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x271b): undefined reference to `QJisCodec::QJisCodec()'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x2742): undefined reference to `QSjisCodec::QSjisCodec()'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x276f): undefined reference to `vtable for QEucKrCodec'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x279c): undefined reference to `vtable for QCP949Codec'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x27c9): undefined reference to `vtable for QBig5Codec'
./.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text+0x27f6): undefined reference to `vtable for QBig5hkscsCodec'
/usr/lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld: ./.obj/release-shared/qtextcodec.o: bad reloc address 0x2 in section `.text$_ZN26QTextCodecFactoryInterfaceD1Ev[__ZN26QTextCodecFactoryInterfaceD1Ev]'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
Makefile.Release:500: ошибка выполнения рецепта для цели «../../lib/QtCore4.dll»
make[2]: *** [../../lib/QtCore4.dll] Ошибка 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question