From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from snt0-omc4-s2.snt0.hotmail.com ([65.55.90.205]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RsapS-0002tB-Vf for ptxdist@pengutronix.de; Wed, 01 Feb 2012 15:06:52 +0100 Message-ID: From: barhoumi mohtadi Date: Wed, 1 Feb 2012 15:06:18 +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 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="===============1331701431==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1331701431== Content-Type: multipart/alternative; boundary="_28d6ece1-155b-460a-b02e-f0324f359c9f_" --_28d6ece1-155b-460a-b02e-f0324f359c9f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C=20 I tested this =2C running qmake wich is in /sys-cross/bin/qmake for one of= the plugins ( i disabled the others): ../../../qmake -o Makefile pluginCorsair.pro=20 make but still got the same error : Plugin uses incompatible Qt library=20 expected build key "i386 linux ptx-g++ full-config" =2C got "i386 linux g++= -4 full-config" :\=20 Thanks Regards > 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 = --_28d6ece1-155b-460a-b02e-f0324f359c9f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello=2C

I tested this =2C running qmake wich is in /sys-cross/bin/= qmake =3B for one of the plugins ( i disabled the others):
../../../= qmake -o Makefile pluginCorsair.pro
make

but still got the same = error : Plugin uses incompatible Qt library
expected build key "i386 li= nux ptx-g++ full-config" =2C got "i386 linux g++-4 full-config"

:\ <= br>Thanks
Regards

>= =3B Date: Wed=2C 1 Feb 2012 14:24:48 +0100
>=3B From: m.olbrich@pengut= ronix.de
>=3B To: ptxdist@pengutronix.de
>=3B Subject: Re: [ptxdi= st] Error 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 develo= pment machine) on the target machine ( the embedded one).
>=3B >=3B= The project load normaly dynamic libraries (*.so) to run normally.
>= =3B >=3B
>=3B >=3B But =2C when executing the project on the deve= lopment machine=2C the .so are not loaded.
>=3B >=3B in fact =2C the= debugging output indicates =3B Plugin uses incompatible Qt Library : expec= ted build key "i386 linux ptx-g++ full-config=2C' =2C got "i486 linux g++-4= full-config".
>=3B >=3B
>=3B >=3B
>=3B >=3B I must = precise=2C that i didn't create packages for my project=2C because =2C it i= s 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_app/appname).
>=3B >=3B
>=3B >=3B For loading the plugin= s=2C i use QPluginLoader
>=3B >=3B
>=3B >=3B So =2C i'm wond= ering=2C if there anyway to encounter this problem?? ( differnt buildkeys) = . otherwise=2C is there anyway to compile the sources with the same version= of compiler that is on my target machine ( embedded)... ( can i compile th= em directly 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
&= gt=3B If you're using qmake=2C then just use
>=3B <=3BBSP>=3B/plat= form-<=3Bsome-plat>=3B/sysroot-cross/bin/qmake and make sure the
>= =3B toolchain for the BSP is in PATH. Then you're project should be built w= ith
>=3B the correct toolchain and qt version.
>=3B
>=3B Mi= chael
>=3B
>=3B --
>=3B Pengutronix e.K. = | |
>=3B Industrial Linux Solutio= ns | http://www.pengutronix.de/ |
>=3B Peiner Str. 6-= 8=2C 31137 Hildesheim=2C Germany | Phone: +49-5121-206917-0 |
>=3B = Amtsgericht Hildesheim=2C HRA 2686 | Fax: +49-5121-206917-5555 = |
>=3B
>=3B --
>=3B ptxdist mailing list
>=3B ptxdist= @pengutronix.de
= --_28d6ece1-155b-460a-b02e-f0324f359c9f_-- --===============1331701431== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1331701431==--