PDA

View Full Version : Could not determine the target architecture!



sivakumar
23rd January 2014, 17:43
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

./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%

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. 9970


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

Thank you,
sivakumar.

ChrisW67
23rd January 2014, 20:51
http://qt-project.org/doc/qt-5.0/qtdoc/platform-notes-qnx.html

sivakumar
23rd January 2014, 23:06
http://qt-project.org/doc/qt-5.0/qtdoc/platform-notes-qnx.html

Hi,

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

ChrisW67
24th January 2014, 00:50
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.

sivakumar
24th January 2014, 15:08
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:

sudo apt-get install libgles2-mesa-dev
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.

ChrisW67
24th January 2014, 20:16
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.

vladi
26th May 2014, 17:13
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