Regarding Cross Compilation for an embedded board



  • Hi all,

    I have an embedded board (FriendlyArm- Tiny6410). I have set a kit for this board in Qt creator (without debugger).

    1)For Qt project file - The problem i am facing is when i create a project and try to build using the new kit it is giving few general messages and i am not able to get the drop downs in project space( not able to go to .pro file or .h file etc) but the project is building and i am able to dump it on the board and get the output. In case if i want to edit anything in .cpp or .h file, not able to do that.

    The general messages are :
    usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(12): Assignment needs exactly one word on the left hand side.
    /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(15): Assignment needs exactly one word on the left hand side.
    /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(18): Assignment needs exactly one word on the left hand side.
    /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(21): Assignment needs exactly one word on the left hand side.
    Could not read qmake configuration file /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf.
    Error while parsing file /home/user/QtExample/QtExample.pro. Giving up

    1. For Qml project file - When i try to build a Qml project using this kit it is giving the following error.

    /home/user/QmlExample/main.cpp:1: error: QGuiApplication: No such file or directory

    Please guide me if anyone knows the solution. Thanks


  • Lifetime Qt Champion

    Hi,

    Because you are trying to build Qt 5 code with Qt 4. QGuiApplication is a new class in Qt 5.



  • @SGaist Thank you for the reply sir,
    Is it possible to set latest version of Qt in that board ?


  • Lifetime Qt Champion

    If Qt 4 is already working on it, then Qt 5 is also likely to work on it however you should check with the folks at FriendlyARM.



  • @SGaist Ok thank you, will check !



  • @SGaist

    usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(12): Assignment needs exactly one word on the left hand side.
    /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(15): Assignment needs exactly one word on the left hand side.
    /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(18): Assignment needs exactly one word on the left hand side.
    /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf(21): Assignment needs exactly one word on the left hand side.
    Could not read qmake configuration file /usr/local/Qt/mkspecs/qws/linux-arm-g++/qmake.conf.
    Error while parsing file /home/user/QtExample/QtExample.pro. Giving up

    Sir i am getting these general messages and i am not able to get the drop downs in project space( not able to go to .pro file or .h file etc) why i am getting this any idea ?

    Thanks


  • Lifetime Qt Champion

    Are you trying to build a Qt 5 project with Qt 4 ?



  • @SGaist Yes that was a simple example developed in Qt 5.8 which i was trying to cross compile for that board.


  • Moderators

    @Naveen_D You either use Qt5 on your board or you use Qt4. Qt5 and Qt4 are not compatible, so don't try to mix.



  • @jsulm
    Ya sure. Thanks for the information.


Log in to reply
 

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