Building QT on windows question



  • Hello friends,

    I installed a working cross compiler toolchain on Windows for BeagleBone Black and I managed to integrate all stuff in NetBeans. Now console apps are building and running just fine.

    I downloaded QT Creator and QT 4.8.5 and I'm some kind stuck to setup QT IDE, mode precisely at manual toolchain :). Can someone explain me very briefly how can I make it work?

    Thanks in advance,


  • Moderators

    Hi,

    Just to confirm, you've managed to set up your cross-compiler toolchain successfully? If so, add them to Qt Creator (I'm assuming you're using the latest version, Qt Creator 3.0):

    See "Adding Compilers":http://qt-project.org/doc/qtcreator-3.0/creator-tool-chains.html to tell Qt Creator where to find your toolchain

    See "Adding Qt Versions":http://qt-project.org/doc/qtcreator-3.0/creator-project-qmake.html to tell Qt Creator where to find the Qt binaries that were cross-compiled for your BBB

    Finally, see "Adding Kits":http://qt-project.org/doc/qtcreator-3.0/creator-targets.html to tell Qt Creator how to combine your toolchain with the Qt binaries.

    P.S. It's "Qt" (lowercase 'T'). "QT" stands for Apple QuickTime.



  • Hi, indeed, that's my goal :)

    I use windows XP and I'm blocked on step #2 since my compilation never start properly. In QT Creator I cannot add a kit yet.

    Now, I use GNU Make 3.82.90 from some MinGW install (I have tried many and this seems to work) and I managed to CONFIGURE using bat files (for proper path set) and indications from net. Now the make step fails at some point

    @mingw32-make -f Makefile.Release
    mingw32-make[2]: Entering directory 'C:/Qt-build/build/src/tools/uic'
    mingw32-make[2]: Nothing to be done for 'first'.
    mingw32-make[2]: Leaving directory 'C:/Qt-build/build/src/tools/uic'
    mingw32-make[1]: Leaving directory 'C:/Qt-build/build/src/tools/uic'
    cd src/corelib/ && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory 'C:/Qt-build/build/src/corelib'
    C:/Qt-build/build/bin/qmake C:/Qt-build/qt-everywhere-opensource-src-4.8.5/src/c
    orelib/corelib.pro -o Makefile -spec qws/linux-am335x-g++
    Could not find mkspecs for your QMAKESPEC(qws/linux-am335x-g++) after trying:
    C:/Qt\mkspecs
    Error processing project file: C:/Qt-build/qt-everywhere-opensource-src-4.8.5/sr
    c/corelib/corelib.pro
    Makefile:2: recipe for target 'all' failed
    mingw32-make[1]: *** [all] Error 3
    mingw32-make[1]: Leaving directory 'C:/Qt-build/build/src/corelib'
    Makefile:201: recipe for target 'sub-corelib-make_default-ordered' failed
    mingw32-make: *** [sub-corelib-make_default-ordered] Error 2

    C:\Qt-build\build>pause
    Press any key to continue . . .@

    I created (copy-paste and modify) a new spec in qws/linux-am335x-g++ but for some reason, it's not found at make step.

    Some people said on net that build must be done at the same directory level than Qt src. I will try, at mine, it's one up

    c:\Qt-build
    \build
    \qt-everywhere-opensource-src-4.8.5


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.