From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from snt0-omc4-s35.snt0.hotmail.com ([65.55.90.238]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Rsawp-0003EI-HQ for ptxdist@pengutronix.de; Wed, 01 Feb 2012 15:14:10 +0100 Message-ID: From: barhoumi mohtadi Date: Wed, 1 Feb 2012 15:13:59 +0100 In-Reply-To: <20120201132448.GI32382@pengutronix.de> References: , <20120201132448.GI32382@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] Error during compiling qt projects - Erratum Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0790763161==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0790763161== Content-Type: multipart/alternative; boundary="_8c799211-cc29-4fe1-8af7-46220a327dee_" --_8c799211-cc29-4fe1-8af7-46220a327dee_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i made a make clean before re-executing=2C and now=2C the .so is not genera= ted=2C and i get this error=20 c2a@c2a-desktop:~/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseido= n/sysroot-cross/bin/c2a/plugins/pluginCorsair$ make i586-unknown-linux-gnu-g++ -c -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-20= 11.11.0/platform-Poseidon/sysroot-target/usr/mkspecs/linux-ptx-g++ -I. -I/h= ome/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-= target/usr/include/QtCore -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.1= 1.0/platform-Poseidon/sysroot-target/usr/include/QtNetwork -I/home/c2a/OSEL= AS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/i= nclude/QtGui -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-= Poseidon/sysroot-target/usr/include -I./*.h -I../../interface/*.h -I../obj = -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysr= oot-target/include -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/pla= tform-Poseidon/sysroot-target/usr/include -pipe -isystem /home/c2a/OSELAS.B= SP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/include -= isystem /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseido= n/sysroot-target/usr/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG = -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -o ../o= bj/plugin_corsair.o plugin_corsair.cpp /bin/sh: i586-unknown-linux-gnu-g++: not found make: *** [../obj/plugin_corsair.o] Erreur 127 > Date: Wed=2C 1 Feb 2012 14:24:48 +0100 > From: m.olbrich@pengutronix.de > To: ptxdist@pengutronix.de > Subject: Re: [ptxdist] Error during compiling qt projects >=20 > On Wed=2C Feb 01=2C 2012 at 12:50:08PM +0100=2C barhoumi mohtadi wrote: > > I am trying to compile execute a qt proejct (that i have built in my de= velopment machine) on the target machine ( the embedded one).=20 > > The project load normaly dynamic libraries (*.so) to run normally. > >=20 > > But =2C when executing the project on the development machine=2C the .s= o are not loaded. > > in fact =2C the debugging output indicates =3B Plugin uses incompatible= Qt Library : expected build key "i386 linux ptx-g++ full-config=2C' =2C go= t "i486 linux g++-4 full-config". > >=20 > >=20 > > I must precise=2C that i didn't create packages for my project=2C becau= se =2C it is kind of impossible due to architecture i've adopted for the ap= plication. So i'm executing the application "normally" from the terminal ( = xinit path_to_app/appname). > >=20 > > For loading the plugins=2C i use QPluginLoader > >=20 > > So =2C i'm wondering=2C if there anyway to encounter this problem?? ( d= iffernt buildkeys) . otherwise=2C is there anyway to compile the sources wi= th the same version of compiler that is on my target machine ( embedded)...= ( can i compile them directly there? or can i add the target machine compi= ler and debugger in the host development machine=2C so i can compile them t= here ???)) > >=20 > > Your help is much appreciated. >=20 > If you're using qmake=2C then just use > /platform-/sysroot-cross/bin/qmake and make sure the > toolchain for the BSP is in PATH. Then you're project should be built wit= h > the correct toolchain and qt version. >=20 > Michael >=20 > --=20 > Pengutronix e.K. | = | > Industrial Linux Solutions | http://www.pengutronix.de/ = | > Peiner Str. 6-8=2C 31137 Hildesheim=2C Germany | Phone: +49-5121-206917-0= | > Amtsgericht Hildesheim=2C HRA 2686 | Fax: +49-5121-206917-555= 5 | >=20 > --=20 > ptxdist mailing list > ptxdist@pengutronix.de = --_8c799211-cc29-4fe1-8af7-46220a327dee_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i made a make clean before re-executing=2C and now=2C the .so is not genera= ted=2C and i get this error


c2a@c2a-desktop:~/OSELAS.BSP-Pengut= ronix-Generic-2011.11.0/platform-Poseidon/sysroot-cross/bin/c2a/plugins/plu= ginCorsair$ make
i586-unknown-linux-gnu-g++ -c -I/home/c2a/OSELAS.BSP-Pe= ngutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/mkspecs/li= nux-ptx-g++ -I. -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platfo= rm-Poseidon/sysroot-target/usr/include/QtCore -I/home/c2a/OSELAS.BSP-Pengut= ronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include/QtNetw= ork -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/= sysroot-target/usr/include/QtGui -I/home/c2a/OSELAS.BSP-Pengutronix-Generic= -2011.11.0/platform-Poseidon/sysroot-target/usr/include -I./*.h -I../../int= erface/*.h -I../obj -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/pl= atform-Poseidon/sysroot-target/include -I/home/c2a/OSELAS.BSP-Pengutronix-G= eneric-2011.11.0/platform-Poseidon/sysroot-target/usr/include -pipe -isyste= m /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysr= oot-target/include -isystem /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.1= 1.0/platform-Poseidon/sysroot-target/usr/include -O2 -Wall -W -D_REENTRANT = -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB= -DQT_SHARED -o ../obj/plugin_corsair.o plugin_corsair.cpp

/bin/sh: = i586-unknown-linux-gnu-g++: not found
make: *** [../obj/plugin_corsair.o= ] Erreur 127


>=3B D= ate: Wed=2C 1 Feb 2012 14:24:48 +0100
>=3B From: m.olbrich@pengutronix= .de
>=3B To: ptxdist@pengutronix.de
>=3B Subject: Re: [ptxdist] E= rror during compiling qt projects
>=3B
>=3B On Wed=2C Feb 01=2C= 2012 at 12:50:08PM +0100=2C barhoumi mohtadi wrote:
>=3B >=3B I am = trying to compile execute a qt proejct (that i have built in my development= machine) on the target machine ( the embedded one).
>=3B >=3B The = project load normaly dynamic libraries (*.so) to run normally.
>=3B &g= t=3B
>=3B >=3B But =2C when executing the project on the developmen= t machine=2C the .so are not loaded.
>=3B >=3B in fact =2C the debug= ging output indicates =3B Plugin uses incompatible Qt Library : expected bu= ild key "i386 linux ptx-g++ full-config=2C' =2C got "i486 linux g++-4 full-= config".
>=3B >=3B
>=3B >=3B
>=3B >=3B I must precis= e=2C that i didn't create packages for my project=2C because =2C it is kind= of impossible due to architecture i've adopted for the application. So i'm= executing the application "normally" from the terminal ( xinit path_to_ap= p/appname).
>=3B >=3B
>=3B >=3B For loading the plugins=2C i= use QPluginLoader
>=3B >=3B
>=3B >=3B So =2C i'm wondering= =2C if there anyway to encounter this problem?? ( differnt buildkeys) . oth= erwise=2C is there anyway to compile the sources with the same version of c= ompiler that is on my target machine ( embedded)... ( can i compile them di= rectly there? or can i add the target machine compiler and debugger in the = host development machine=2C so i can compile them there ???))
>=3B >= =3B
>=3B >=3B Your help is much appreciated.
>=3B
>=3B I= f you're using qmake=2C then just use
>=3B <=3BBSP>=3B/platform-&l= t=3Bsome-plat>=3B/sysroot-cross/bin/qmake and make sure the
>=3B too= lchain for the BSP is in PATH. Then you're project should be built with
= >=3B the correct toolchain and qt version.
>=3B
>=3B Michael>=3B
>=3B --
>=3B Pengutronix e.K. = | |
>=3B Industrial Linux Solutions = | http://www.pengutronix.de/ |
>=3B Peiner Str. 6-8=2C 31= 137 Hildesheim=2C Germany | Phone: +49-5121-206917-0 |
>=3B Amtsger= icht Hildesheim=2C HRA 2686 | Fax: +49-5121-206917-5555 |
&g= t=3B
>=3B --
>=3B ptxdist mailing list
>=3B ptxdist@pengut= ronix.de
= --_8c799211-cc29-4fe1-8af7-46220a327dee_-- --===============0790763161== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0790763161==--