LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 11-07-2013, 08:11 AM   #1
sallu.salmankhalid
LQ Newbie
 
Registered: Jun 2013
Posts: 27

Rep: Reputation: Disabled
Qt Cross Compilation Error


Hi,
I am trying to cross compile Qt embedded for my Pandaboard but got stuck. I am stuck at this error for about a two days cant figure out. I am using Angstrom Distribution of Linux, image obtained using Narcissus online image builder which also come with entire SDK and toolchain. my ./configure is

./configure -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -v -no-gfx-qvfb -no-glib -no-gtkstyle -no-pch -depths all -qt-mouse-linuxinput -qt-mouse-pc -qt-kbd-linuxinput -no-mouse-tslib -no-webkit -no-audio-backend -L/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/lib -L/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/lib -L/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib -I/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/include -I/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include -L/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/lib -L/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/usr/lib -I/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/usr/include

Note the -L and -I all possible paths to libraries and headers I can think of.

The error after make command is

cd src/tools/bootstrap/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/bootstrap'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/bootstrap'
cd src/tools/moc/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/moc'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/moc'
cd src/tools/rcc/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/rcc'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/rcc'
cd src/tools/uic/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/uic'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/tools/uic'
cd src/corelib/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/corelib'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/corelib'
cd src/xml/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/xml'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/xml'
cd src/network/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/network'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/network'
cd src/sql/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/sql'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/sql'
cd src/testlib/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/testlib'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/testlib'
cd src/gui/ && make -f Makefile
make[1]: Entering directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/gui'
arm-angstrom-linux-gnueabi-g++ -c -pipe -I/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/include -I/home/salman/PandaBoard_OpenCV_CrossQT/Toolchain_Angstrom/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include -I/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/usr/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-shared-emb-arm -Iimage -I../3rdparty/freetype/builds/unix -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/usr/include -I/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/usr/lib -o .obj/release-shared-emb-arm/qsoundqss_qws.o embedded/qsoundqss_qws.cpp
embedded/qsoundqss_qws.cpp:72: error: declaration of 'int* __errno_location()' throws different exceptions
/home/salman/PandaBoard_OpenCV_CrossQT/Target_Image/usr/include/bits/errno.h:43: error: from previous declaration 'int* __errno_location() throw ()'
make[1]: *** [.obj/release-shared-emb-arm/qsoundqss_qws.o] Error 1
make[1]: Leaving directory `/home/salman/PandaBoard_OpenCV_CrossQT/qt-everywhere-opensource-src-4.8.5/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2

Please help I am stuck


Regards

Last edited by sallu.salmankhalid; 11-07-2013 at 08:12 AM.
 
Old 11-15-2013, 06:53 AM   #2
elucches
Member
 
Registered: Jan 2011
Posts: 82

Rep: Reputation: 7
If the toolchain is properly installed you don't need to pass all those -L and -I options.
For example, I used -xplatform qws/linux-arm-g++ and so I edited mkspecs/qws/linux-arm-g++/qmake.conf to specify some special flags (mostly the location of tslib) and then configured with
Code:
./configure -prefix /usr/local/Trolltech/Qt-4.8.5-arm -release -opensource -shared -no-fast -no-largefile -exceptions -accessibility -stl -qt-sql-sqlite -no-qt3support -xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -svg -webkit -javascript-jit -script -scripttools -declarative -no-declarative-debug -platform  qws/linux-x86-g++ -qt-zlib -no-libtiff -qt-libpng -no-libmng -qt-libjpeg -no-openssl -no-rpath -verbose -optimized-qmake -no-nis -no-cups -iconv -pch -no-dbus -no-separate-debug-info -embedded arm -xplatform  qws/linux-arm-g++ -little-endian -qt-freetype -no-opengl -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-qvfb -plugin-kbd-linuxinput -qt-mouse-tslib -no-glib
Don't pay attention to the details, I just pasted the command to show that there was no need to add compiler or linker flags.
Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eglibc error in cross compilation adi_30stm Linux From Scratch 0 04-21-2013 08:45 PM
MIPS cross compilation error sheelavantar Linux - Software 0 09-06-2011 02:56 AM
sendmail cross compilation error tamilm Linux - Software 1 10-24-2008 08:29 AM
cross compilation error for ssh-3.2.9.1 tamilm Linux - Networking 1 09-17-2008 02:32 PM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 12:18 AM


All times are GMT -5. The time now is 01:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration