@TriKrista

В чем может быть ошибка при кросс-компиляции Qt 4.8 под Linux для Windows?

Я вот попробовал скомпилировать для Windows 32, следуя данным советам
Но меня выскочила вот такая ошибка:
CROSS_COMPILE=i686-w64-mingw32-: unknown argument

При попытке собрать без вышеуказанного макроса появляются уведомления на неопределенные ссылки на различные кодеки:
./.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


С чем это может быть связано? И как эту проблему можно решить?
  • Вопрос задан
  • 3210 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы