Всем доброго времени суток!
У меня возникла проблема при компиляции проектов с помощью mingw под Ubuntu с использованием QT.
Конфигурация системы:
Ubuntu 12.04 LTS
mingw-w64
QT-4.8.3 перенесённые из Windows.
В проделанной работе руководствовался следующей статьёй
http://qtlinux.narod.ru/make_for_win.htmВ приложении qmake.conf который я использую и лог ошибок (ошибки однотипные поэтому сократил чтобы уместиться в ограничение 200кб).
Создаю makefile командой
qmake -spec /path_to_my_conf/win32-x-g++ my_project.pro
Компилирую
make
P.S.
В OpenSuse 12.2 я устанавливаю кроме mingw32, дополнительный пакет mingw32-libqt4 и др. требуемые библиотеки и с этим qmake.conf всё компилируется и запускается.
Пользователь решил продолжить мысль 16 Декабря 2012, 16:20:33:
Вот последние ошибки из лога, они однотипные
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0xec): undefined reference to `QDialog::accept()'
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0xf0): undefined reference to `QDialog::reject()'
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0x104): undefined reference to `non-virtual thunk to QWidget::devType() const'
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0x108): undefined reference to `non-virtual thunk to QWidget::paintEngine() const'
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0x10c): undefined reference to `non-virtual thunk to QWidget::getDC() const'
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0x110): undefined reference to `non-virtual thunk to QWidget::releaseDC(HDC__*) const'
./.obj/moc_xlseditor.o:moc_xlseditor.cpp:(.rdata$_ZTV10GXlsEditor[vtable for GXlsEditor]+0x114): undefined reference to `non-virtual thunk to QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
./.obj/qrc_images.o:qrc_images.cpp:(.text+0x24): undefined reference to `__imp___Z21qRegisterResourceDataiPKhS0_S0_'
./.obj/qrc_images.o:qrc_images.cpp:(.text+0x64): undefined reference to `__imp___Z23qUnregisterResourceDataiPKhS0_S0_'
collect2: ld returned 1 exit status
Подскажите как можно решить проблему?