[Development] Cross-compile on ubuntu for Windows fails

Aaron Faanes dafrito at gmail.com
Wed May 29 16:55:21 CEST 2013


I've ran into this issue as well, building from MinGW directly. Did
you (or the list) figure out a solution/workaround?

Thanks,
-- Aaron Faanes

On Tue, Apr 9, 2013 at 6:56 AM, Stephen Kelly <stephen.kelly at kdab.com> wrote:
>
> Hi,
>
> Attempting to cross compile the stable branch with mingw on ubuntu fails for
> me currently:
>
> i686-w64-mingw32-g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-
> exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_LIBUDEV -DQT_NO_EVDEV -
> DQT_NO_XCB -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -
> DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -
> I/home/stephen/dev/src/qtbase-mingw/src/plugins/platforms/offscreen -
> I'../../../../include' -I'../../../../include/QtPlatformSupport' -
> I'../../../../include/QtPlatformSupport/5.1.0' -
> I'../../../../include/QtPlatformSupport/5.1.0/QtPlatformSupport' -
> I'../../../../include/QtGui' -I'../../../../include/QtGui/5.1.0' -
> I'../../../../include/QtGui/5.1.0/QtGui' -I'../../../../include/QtCore' -
> I'../../../../include/QtCore/5.1.0' -
> I'../../../../include/QtCore/5.1.0/QtCore' -I'.moc/release-shared' -I'.' -
> I'/home/stephen/dev/src/qtbase-mingw/mkspecs/win32-g++' -o .obj/release-
> shared/qoffscreenintegration.o /home/stephen/dev/src/qtbase-
> mingw/src/plugins/platforms/offscreen/qoffscreenintegration.cpp
> make[2]: Entering directory `/home/stephen/dev/build/qtbase/qtbase-
> mingw/src/plugins/platforms/windows'
> make[2]: Nothing to be done for `first'.
> make[2]: Leaving directory `/home/stephen/dev/build/qtbase/qtbase-
> mingw/src/plugins/platforms/windows'
> make[1]: Leaving directory `/home/stephen/dev/build/qtbase/qtbase-
> mingw/src/plugins/platforms/windows'
> i686-w64-mingw32-g++ -Wl,-s -shared -Wl,--out-
> implib,/home/stephen/dev/build/qtbase/qtbase-
> mingw/plugins/platforms/libqoffscreen.a -o
> ../../../../plugins/platforms/qoffscreen.dll .obj/release-shared/main.o
> .obj/release-shared/qoffscreenintegration.o .obj/release-
> shared/qoffscreenwindow.o .obj/release-shared/qoffscreencommon.o .obj/release-
> shared/qoffscreenintegration_dummy.o  -L/home/stephen/dev/build/qtbase/qtbase-
> mingw/lib -lQt5PlatformSupport -lglu32 -lopengl32 -lgdi32 -luser32 -lQt5Gui -
> lQt5Core
> .obj/release-shared/qoffscreenintegration.o:qoffscreenintegration.cpp:
> (.text+0x19f): undefined reference to `vtable for QBasicFontDatabase'
> collect2: ld returned 1 exit status
> make[2]: *** [../../../../plugins/platforms/qoffscreen.dll] Error 1
> make[2]: Leaving directory `/home/stephen/dev/build/qtbase/qtbase-
> mingw/src/plugins/platforms/offscreen'
>
>
> The QBasicFontDatabase does not seem to be compiled. In
> src/platformsupport/fontdatabases/fontdatabases.pri, the conditional branch is
> not entered to include basic.pri. Despite this, Q_OS_WIN is defined when
> compiling.
>
> Is this situation fixable?
>
> Thanks,
>
> --
> Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
> KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
> www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
> KDAB - Qt Experts - Platform-Independent Software Solutions
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>



-- 
Aaron Faanes <dafrito at gmail.com>



More information about the Development mailing list