This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Qt creator and unknown toolchain

Other Parts Discussed in Thread: OMAP3530, OMAP-L138

Hello!

I have OMAP EVM board from Mistral. A few times ago I tried to use Qt to build some embedded applications for this platform. I downloaded, built Qt with SGX and Tslib - all worked fully correct. All demos from Qt, examples, simple ¨hello world" programs, which i could build with Qt in console, were OK. But, now I want to use Qt creator to build some sophisticated applications - and I have a problem. Qt creator successfully found out qmake for embedded Qt libs in system Linux PATH, but in the bottom of ¨Options/Qt4¨ window appeared ¨This Qt Version has a unknown toochain¨. So, I can´t open or create new project with embedded Qt version. Interesting that, when I pointed cursor to name of embedded Qt version, I saw long list of variables, like this

As you can see, list looks correct, but... In an opposite, when I use desktop version (lower string in a picture) - Creator understand desktop tollchain correctly.  Please, give me any advice to resolve this problem!

  • Anton,

    This is because Qt Creator cannot find the correct mkspec for the Qt embedded installation. As you see, it points to "/qws/linux-omap3-g++" which is an incorrect location.

    I am assuming the Qt embedded has been built and installed at /home/toshik/OMAP/Qt

    Go to the mkspecs directory. This contains a symbolic link "default" which points to "/qws/linux-omap3-g++". Recreate this symbolic link so that it points to "/home/toshik/OMAP/Qt/mkspecs/qws/linux-omap3-g++"

    If you start Qt Creator again, you should see that the toolchain gets detected. I would suggest starting Qt Creator from the shell to catch the stderr messages.

    Regards,

    Anand Balagopalakrishnan

  • Great!!! All works! Problem has been solved so easy... Thanks a lot!

  • So, found another  trouble... When I use DVSDK4.01 for OMAP3530, I try to do the same as above - use qmake (located in linux-devkit/bin) with Qt creator. And have same error. But all QT_INSTALL_LIBS, QMAKE_MKSPECS, etc. has incorrect (and not absolute!) paths. When I tried to do something like this  "./qmake -set QMAKE_MKSPECS /correct/way/here" - OK, "./qmake -query" shows me two same properties QMAKE_MKSPECS with different meanings, but Creator see only one (and wrong) QMAKE_MKSPECS. Does it means, that I should rebuild qmake with correct paths? And how I could rebuild ONLY qmake, without qt libs etc...

    picture with incorrect paths (look like relative, but, for example, there is no dir "linux-devkit/mkspecs" at all!) below...

  • Hello Anton etc..

    I have the same problem....

    (look like relative, but, for example, there is no dir "linux-devkit/mkspecs" at all!)

    i.e. no dir "linux-devkit/mkspecs" at all!

    But I have  a further problem, in that Auto-detected showes Qt in PATH  <not found>

    But I am able to build a Desktop example as well as a Simulator example in Qt-Creator..

    I would be interested if you get a answer on this..

    Thanks


     

  • So, problem resolved...

    The core of wrong behaviour of qmake is revolved around wrong system variables, which were used, when qt has been built. So, we need just rebuild qmake only! First of all, download qt sources for embedded systems, version 4.6.2 Then, go into sources directory. Call ./configure with such arguments (in my case):

    ./configure -prefix /where/your/dvsdk/linux-devkit -xplatform /where/your/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/share/qtopia/mkspecs/default -bindir /where/your/dvsdk/linux-devkit/bin -libdir /where/your/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/lib -headerdir /where/your/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia -examplesdir /where/your/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/bin/qtopia/examples -demosdir /where/your/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/bin/qtopia/demos -qtlibinfix E -debug -embedded arm -little-endian -fast -confirm-license -opensource

    After not so long smoking, when all configure will finish, go into dir "qmake" and call "make clean" and then "make". Then, go to dir "bin" (located into "qmake") and copy qmake file to directory "/where/your/dvsdk/linux-devkit/bin" and use it in QtCreator as you want!

    BUT! does anybody know, HOW can I build my own DMAI application in QtCreator? Can I modify (or managed of modified process) of Makefile building with qmake? I vainly looked for any example of simple DMAI application located out of DMAI directories, out of dvsdk... I need a roadmap about this problem, like variant of Hello World with DMAI in QtCreator.

  • Yes, Anton Thank you for the response: Glad to hear you had success...
    I figured rebuild was necessary..

    You said...
    "The core of wrong behaviour of qmake is revolved around wrong system variables,
    which were used, when qt has been built. So, we need just rebuild qmake only! "

    Yes... trying to do that, however I'm having other problems building it see my other posts etc..

    http://e2e.ti.com/support/embedded/f/354/t/112853.aspx


    http://e2e.ti.com/support/embedded/f/354/p/112864/399896.aspx#399896

    Thanks again
    P.S.
    Yes I understand you on "After not so long smoking"...
    for me 1.2 hours), i.e. I have tried to build without Tslib and it did build etc...
    However I believe I must have Tslib for touch screen On OMAP-L138 eval board..

    Brian

  • so your solution is right.

        but if  you add tslib with qt ?,now i add it but there is some error,like this

    tslib auto-detection... ()
    /usr/local/arm/arm-2008q1/bin/arm-none-linux-gnueabi-g++ -c -pipe   -Wall -W  -I/home/ema/dvsdk_4_00_00_17/linux-devkit/arm-none-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I. -I/usr/local/tslib/include -o tslib.o tslib.cpp
    /usr/local/arm/arm-2008q1/bin/arm-none-linux-gnueabi-g++  -o tslib tslib.o    -L/usr/local/tslib/lib -lglib-2.0 -lts
    /usr/local/arm/arm-2008q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
    collect2: ld returned 1 exit status
    make: *** [tslib] Error 1
    tslib disabled.
    The tslib functionality test failed!
     You might need to modify the include and library search paths by editing
     QMAKE_INCDIR and QMAKE_LIBDIR in
     /home/dvsdk_4_00_00_17/linux-devkit/arm-none-linux-gnueabi/usr/share/qtopia/mkspecs/default

    i don't know how to solve this  problem.all some TI's friends can help me!

     

    and also i want to know the "

    BUT! does anybody know, HOW can I build my own DMAI application in QtCreator? Can I modify (or managed of modified process) of Makefile building with qmake? I vainly looked for any example of simple DMAI application located out of DMAI directories, out of dvsdk... I need a roadmap about this problem, like variant of Hello World with DMAI in QtCreator."

    do you have some example?

  • You should add tslib in the configuration if you require touchscreen support in Qt:

    Please refer to the following link for sample Qt mkspec with tslib addition:

    http://processors.wiki.ti.com/index.php/Building_Qt

    Regards,
    Anand