Results 1 to 7 of 7

Thread: Could not determine the target architecture!

  1. #1
    Join Date
    Jan 2014
    Posts
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Post Could not determine the target architecture!

    Hi All,

    I am new to qt. and i am trying to compile qt source code for qnx x86 platform on linux environment.

    I have installed all required dependencies by following this. http://qt-project.org/wiki/Building_Qt_5_from_Git

    and downloaded qt source code from qt-downloads.org. when i am trying to configure with this command
    Qt Code:
    1. ./configure -platform linux-g++ -xplatform qnx-x86-qcc -developer-build -no-icu -opengl es2 -opensource -confirm-license -make tools -make libs -nomake examples -nomake tests -no-cups -no-iconv -prefix %QTDESTDIR%
    To copy to clipboard, switch view to plain text mode 

    iam getting the following error.

    ubuntu1204@ubuntu1204:~/Downloads/qt-everywhere-opensource-src-5.2.0$ ./configure -platform linux-g++ -xplatform qnx-x86-qcc -developer-build -no-icu -opengl es2 -opensource -confirm-license -make tools -make libs -nomake examples -nomake tests -no-cups -no-iconv -prefix %QTDESTDIR%
    + cd qtbase
    + /home/ubuntu1204/Downloads/qt-everywhere-opensource-src-5.2.0/qtbase/configure -top-level -platform linux-g++ -xplatform qnx-x86-qcc -developer-build -no-icu -opengl es2 -opensource -confirm-license -make tools -make libs -nomake examples -nomake tests -no-cups -no-iconv -prefix %QTDESTDIR%

    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.

    You have already accepted the terms of the license.

    cc1plus: error: unrecognized command line option "-fstack-protector-strong"
    cc: /opt/qnx650/host/linux/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/cc1plus error 1
    Creating qmake...
    make: Nothing to be done for `first'.
    Running configuration tests...
    Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
    Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.

    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    The OpenGL ES 2.0 functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
    /home/ubuntu1204/Downloads/qt-everywhere-opensource-src-5.2.0/qtbase/mkspecs/qnx-x86-qcc.
    a detailed verbose option out put attached. configureReport.txt


    Please give me some inputs on how to resolve these issues.

    Thank you,
    sivakumar.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Could not determine the target architecture!


  3. #3
    Join Date
    Jan 2014
    Posts
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Could not determine the target architecture!

    Hi,

    Thanks for your reply.
    The link u posted is explaining about platform notes. it is not related to my problem.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Could not determine the target architecture!

    This is the message that terminated your build:
    The OpenGL ES 2.0 functionality test failed!
    To me that seems strongly related to:
    Screen and OpenGL

    As noted above, building Qt 5 requires the QNX 6.5.0 SP1 and the new UI Core graphics framework headers and libraries. Both are available through QNX. For OpenGL support (GL widgets and QML2), OpenGL ES2 or higher must be available.

  5. #5
    Join Date
    Jan 2014
    Posts
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Could not determine the target architecture!

    Quote Originally Posted by ChrisW67 View Post
    This is the message that terminated your build:

    To me that seems strongly related to:
    Hi,

    Yes i agree with your point. This is my environment iam using to build the source.

    1. QNX650SP1 with screen libraries and headers.
    2. OpenGL installed for linux host as follows:
    Qt Code:
    1. sudo apt-get install libgles2-mesa-dev
    To copy to clipboard, switch view to plain text mode 
    3. this is my current environment.
    QNX_CONFIGURATION=/etc/qnx
    MAKEFLAGS=-I/opt/qnx650/target/qnx6/usr/include
    QNX_JAVAHOME=/opt/qnx650/_jvm
    QTDIR=/home/ubuntu1204/Downloads/qt-everywhere-opensource-src-5.2.0
    PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/qnx650/host/linux/x86/usr/bin:/etc/qnx/bin
    HOME=/home/ubuntu1204
    QNX_TARGET=/opt/qnx650/target/qnx6
    QNX_HOST=/opt/qnx650/host/linux/x86
    QTDESTDIR=/home/ubuntu1204/Downloads/Qt5.2onQNX
    Sorry for not posting all these details earlier. please check if iam missing anything in the environment setup side.

    Thanks.

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Could not determine the target architecture!

    I do not have a QNX setup or the relevant documentation to say if any of that is correct. I can say that the OpenGL ES support is required on the QNX side of the cross-compile.

  7. #7
    Join Date
    Jan 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Could not determine the target architecture!

    I ran into the same problem last week. After a bit digging it turned out that my QNX SDP 6.5 installation was damaged by a wrong installation of the SP1. Did you install the SP1 on top of the base SDP 6.5.0 installation? If the installation of SP1 does not go well, there is a danger that it deletes several important files in /opt/qnx650/target/qnx6/usr/include/, e.g. stdio.h and several other files were missing in my case. Since that file was missing as first in one of the first configuration tests, configure was not able to determine the target architecture and stopped.

    The point is that SP1 needs all QNX env var set correctly when it runs. If you just do this with "sudo <SP1 installer>", then QNX env vars are not imported. You have to use the -E option to retain the environment. You also need to logout and login after the base installation of the SDP 6.5.0 has completed so that the new QNX env vars will be taken. The installer wizard tells this, but it is easy to ignore in a rush :-) I was talking to QNX folks, and they will add this detail to the installation notes. SDP 6.6 is sooooo much beter in all this....

    Despite a few host tools which will be build each time, SDP provides everything you need, incl. OpenGL ES2 libs/headers.

    I just have built 5.3.0 for the ARM target w/o problems. Qt 5.2.1 is still on the way... I did not try Qt 5.2.0.

    BTW, the target names in Qt 5.3 have changed. See more on http://qt-project.org/wiki/QNX

Similar Threads

  1. Replies: 8
    Last Post: 27th December 2013, 03:47
  2. Application architecture
    By m15ch4 in forum Qt Programming
    Replies: 19
    Last Post: 9th February 2011, 11:41
  3. not the architecture being linked
    By skizzik in forum Qt Programming
    Replies: 8
    Last Post: 14th October 2010, 10:46
  4. Plugin Architecture
    By jtaylor108 in forum Newbie
    Replies: 2
    Last Post: 8th April 2008, 07:32
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.