Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Developping for Qt 4.8.1 Embedded on Windows



  • Has anyone tried out to build a Windows Developing Environment for Qt 4.8.1 Embedded in order to build embedded Linux for ARM9?

    I have followed this
    "Manual":http://c2143.blogspot.com/2011/08/developping-for-qt-48-embedded-on.html#!/2011/08/developping-for-qt-48-embedded-on.html

    I don't really know what to do at step 5. Any suggestions?



  • welcome to devnet

    where did you get lost in step 5?

    BTW: Did you consider also to use a linux installation for cross-compilation?



  • At step 5 i get this error:

    @C:\Users\damir.duric.MEC\Documents\qt-4.8\qt-4.8-src\tools\configure>qmake && mingw32-make
    WARNING: Failure to find: /src/corelib/tools/qbytearray.cpp
    .
    .
    --> a lot of warnings
    .
    .
    .
    WARNING: Failure to find: /tools/shared/windows/registry.cpp
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory C:/Users/damir.duric.MEC/Documents/qt-4.8/q t-4.8-src/tools/configure' g++ -x c++-header -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_NODLL -DQT_NO_CODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT _NO_STL -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -D_CRT_SECURE_NO_DEPRECA TE -DQT_BOOTSTRAPPED -DCOMMERCIAL_VERSION -I"\src\corelib\arch\generic" -I"\src\ corelib\global" -I"\include" -I"\include\QtCore" -I"\tools\shared" -I"\src\corel ib\arch\generic" -I"\include\QtCore" -I"\tools\shared" -I"c:\Qt\4.8.1\mkspecs\wi n32-g++" -o debug\configure_pch.h.gch\c++ configure_pch.h configure_pch.h:57:21: schwerwiegender Fehler: qglobal.h: No such file or direct ory Kompilierung beendet. mingw32-make[1]: *** [debug/configure_pch.h.gch/c++] Error 1 mingw32-make[1]: Leaving directoryC:/Users/damir.duric.MEC/Documents/qt-4.8/qt
    -4.8-src/tools/configure'
    mingw32-make: *** [debug] Error 2
    @

    I know Linux would be a lot easier but this is actually my problem -> I have to find a solution for windows 7.

    Any suggestions?



  • Concerning linux you could use virtual box with a linux installation and do the cross compilation there.
    This is what I am actually doing. Development on Win7 with msvc and major use on windows respectively wince. However, I have been using an OMAP board. the cross compilation with CodeSourcery compiler I have done on an Ubuntu installation in virtual box. This was relatively easy to do.

    It looks like the compiler is looking for the absolute path "/src/corelib/tools/qbytearray.cpp". This is not the typical notation for windows. The drive letter is missing.

    Did you check for the qbytearray.cpp where it is located?



  • you are right with the path, qmake did not find it because of the variable QT_SOURCE_TREE

    now i tried the version 4.8.1

    it produced a total different error:

    @mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory C:/Qt/4.8.1/tools/configure' g++ -c -include tmp\obj\debug_shared\configure_pch.h -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_NODLL -DQT_NO_CODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -D_CRT_SECURE_NO_DEPRECATE -DQT_BOOTSTRAPPED -DCOMMERCIAL_VERSION -I"..\..\src\corelib\arch\generic" -I"..\..\src\corelib\global" -I"..\..\include" -I". .\..\include\QtCore" -I"..\shared" -I"..\..\src\corelib\arch\generic" -I"..\..\include\QtCore" -I"..\shared" -I"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qlocale_win.o ..\..\src\corelib\tools\q locale_win.cpp ..\..\src\corelib\tools\qlocale_win.cpp: In Elementfunktion »QSystemLocalePrivate::SubstitutionType QSystemLocalePrivate::substitution()«: ..\..\src\corelib\tools\qlocale_win.cpp:183:34: Fehler: »LOCALE_IDIGITSUBSTITUTION« wurde in diesem Gültigkeitsbereich nicht definiert ..\..\src\corelib\tools\qlocale_win.cpp: In Elementfunktion »QVariant QSystemLocalePrivate::currencySymbol(QLocale::CurrencySymbolFormat)«: ..\..\src\corelib\tools\qlocale_win.cpp:433:34: Fehler: »LOCALE_SNATIVECURRNAME« wurde in diesem Gültigkeitsbereich nicht definiert ..\..\src\corelib\tools\qlocale_win.cpp: In Elementfunktion »QVariant QSystemLocalePrivate::uiLanguages()«: ..\..\src\corelib\tools\qlocale_win.cpp:567:90: Fehler: »GetUserDefaultUILanguage« wurde in diesem Gültigkeitsbereich nicht definiert ..\..\src\corelib\tools\qlocale_win.cpp:568:1: Warnung: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Wreturn-type] mingw32-make[1]: *** [tmp/obj/debug_shared/qlocale_win.o] Error 1 mingw32-make[1]: Leaving directoryC:/Qt/4.8.1/tools/configure'
    mingw32-make: *** [debug-all] Error 2@

    ?????????????????



  • You are still on step 5?

    I have no glue, but I guess that some of the defines might have changed to version 4.8.1. Personally I would try to get it to work with the 4.8.0 first. Otherwise you might have to fight on two fronts.


Log in to reply