* [ptxdist] Error during compiling qt projects
@ 2012-02-01 11:50 barhoumi mohtadi
2012-02-01 13:24 ` Michael Olbrich
0 siblings, 1 reply; 5+ messages in thread
From: barhoumi mohtadi @ 2012-02-01 11:50 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 1218 bytes --]
Hello,
I am trying to compile execute a qt proejct (that i have built in my development machine) on the target machine ( the embedded one).
The project load normaly dynamic libraries (*.so) to run normally.
But , when executing the project on the development machine, the .so are not loaded.
in fact , the debugging output indicates ; Plugin uses incompatible Qt Library : expected build key "i386 linux ptx-g++ full-config,' , got "i486 linux g++-4 full-config".
I must precise, that i didn't create packages for my project, because , 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_app/appname).
For loading the plugins, i use QPluginLoader
So , i'm wondering, if there anyway to encounter this problem?? ( differnt buildkeys) . otherwise, is there anyway to compile the sources with 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 compiler and debugger in the host development machine, so i can compile them there ???))
Your help is much appreciated.
Mohtadi BARHOUMI
[-- Attachment #1.2: Type: text/html, Size: 1477 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Error during compiling qt projects
2012-02-01 11:50 [ptxdist] Error during compiling qt projects barhoumi mohtadi
@ 2012-02-01 13:24 ` Michael Olbrich
2012-02-01 14:06 ` barhoumi mohtadi
2012-02-01 14:13 ` [ptxdist] Error during compiling qt projects - Erratum barhoumi mohtadi
0 siblings, 2 replies; 5+ messages in thread
From: Michael Olbrich @ 2012-02-01 13:24 UTC (permalink / raw)
To: ptxdist
On Wed, Feb 01, 2012 at 12:50:08PM +0100, barhoumi mohtadi wrote:
> I am trying to compile execute a qt proejct (that i have built in my development machine) on the target machine ( the embedded one).
> The project load normaly dynamic libraries (*.so) to run normally.
>
> But , when executing the project on the development machine, the .so are not loaded.
> in fact , the debugging output indicates ; Plugin uses incompatible Qt Library : expected build key "i386 linux ptx-g++ full-config,' , got "i486 linux g++-4 full-config".
>
>
> I must precise, that i didn't create packages for my project, because , 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_app/appname).
>
> For loading the plugins, i use QPluginLoader
>
> So , i'm wondering, if there anyway to encounter this problem?? ( differnt buildkeys) . otherwise, is there anyway to compile the sources with 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 compiler and debugger in the host development machine, so i can compile them there ???))
>
> Your help is much appreciated.
If you're using qmake, then just use
<BSP>/platform-<some-plat>/sysroot-cross/bin/qmake and make sure the
toolchain for the BSP is in PATH. Then you're project should be built with
the correct toolchain and qt version.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Error during compiling qt projects
2012-02-01 13:24 ` Michael Olbrich
@ 2012-02-01 14:06 ` barhoumi mohtadi
2012-02-01 14:13 ` [ptxdist] Error during compiling qt projects - Erratum barhoumi mohtadi
1 sibling, 0 replies; 5+ messages in thread
From: barhoumi mohtadi @ 2012-02-01 14:06 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 2479 bytes --]
Hello,
I tested this , running qmake wich is in /sys-cross/bin/qmake 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 linux ptx-g++ full-config" , got "i386 linux g++-4 full-config"
:\
Thanks
Regards
> Date: Wed, 1 Feb 2012 14:24:48 +0100
> From: m.olbrich@pengutronix.de
> To: ptxdist@pengutronix.de
> Subject: Re: [ptxdist] Error during compiling qt projects
>
> On Wed, Feb 01, 2012 at 12:50:08PM +0100, barhoumi mohtadi wrote:
> > I am trying to compile execute a qt proejct (that i have built in my development machine) on the target machine ( the embedded one).
> > The project load normaly dynamic libraries (*.so) to run normally.
> >
> > But , when executing the project on the development machine, the .so are not loaded.
> > in fact , the debugging output indicates ; Plugin uses incompatible Qt Library : expected build key "i386 linux ptx-g++ full-config,' , got "i486 linux g++-4 full-config".
> >
> >
> > I must precise, that i didn't create packages for my project, because , 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_app/appname).
> >
> > For loading the plugins, i use QPluginLoader
> >
> > So , i'm wondering, if there anyway to encounter this problem?? ( differnt buildkeys) . otherwise, is there anyway to compile the sources with 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 compiler and debugger in the host development machine, so i can compile them there ???))
> >
> > Your help is much appreciated.
>
> If you're using qmake, then just use
> <BSP>/platform-<some-plat>/sysroot-cross/bin/qmake and make sure the
> toolchain for the BSP is in PATH. Then you're project should be built with
> the correct toolchain and qt version.
>
> Michael
>
> --
> Pengutronix e.K. | |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
[-- Attachment #1.2: Type: text/html, Size: 3012 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Error during compiling qt projects - Erratum
2012-02-01 13:24 ` Michael Olbrich
2012-02-01 14:06 ` barhoumi mohtadi
@ 2012-02-01 14:13 ` barhoumi mohtadi
2012-02-01 15:13 ` Michael Olbrich
1 sibling, 1 reply; 5+ messages in thread
From: barhoumi mohtadi @ 2012-02-01 14:13 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 3613 bytes --]
i made a make clean before re-executing, and now, the .so is not generated, and i get this error
c2a@c2a-desktop:~/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-cross/bin/c2a/plugins/pluginCorsair$ make
i586-unknown-linux-gnu-g++ -c -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/mkspecs/linux-ptx-g++ -I. -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include/QtCore -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include/QtNetwork -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../../interface/*.h -I../obj -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/include -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include -pipe -isystem /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/include -isystem /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.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
> Date: Wed, 1 Feb 2012 14:24:48 +0100
> From: m.olbrich@pengutronix.de
> To: ptxdist@pengutronix.de
> Subject: Re: [ptxdist] Error during compiling qt projects
>
> On Wed, Feb 01, 2012 at 12:50:08PM +0100, barhoumi mohtadi wrote:
> > I am trying to compile execute a qt proejct (that i have built in my development machine) on the target machine ( the embedded one).
> > The project load normaly dynamic libraries (*.so) to run normally.
> >
> > But , when executing the project on the development machine, the .so are not loaded.
> > in fact , the debugging output indicates ; Plugin uses incompatible Qt Library : expected build key "i386 linux ptx-g++ full-config,' , got "i486 linux g++-4 full-config".
> >
> >
> > I must precise, that i didn't create packages for my project, because , 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_app/appname).
> >
> > For loading the plugins, i use QPluginLoader
> >
> > So , i'm wondering, if there anyway to encounter this problem?? ( differnt buildkeys) . otherwise, is there anyway to compile the sources with 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 compiler and debugger in the host development machine, so i can compile them there ???))
> >
> > Your help is much appreciated.
>
> If you're using qmake, then just use
> <BSP>/platform-<some-plat>/sysroot-cross/bin/qmake and make sure the
> toolchain for the BSP is in PATH. Then you're project should be built with
> the correct toolchain and qt version.
>
> Michael
>
> --
> Pengutronix e.K. | |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
[-- Attachment #1.2: Type: text/html, Size: 4135 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Error during compiling qt projects - Erratum
2012-02-01 14:13 ` [ptxdist] Error during compiling qt projects - Erratum barhoumi mohtadi
@ 2012-02-01 15:13 ` Michael Olbrich
0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2012-02-01 15:13 UTC (permalink / raw)
To: ptxdist
On Wed, Feb 01, 2012 at 03:13:59PM +0100, barhoumi mohtadi wrote:
>
> i made a make clean before re-executing, and now, the .so is not generated, and i get this error
>
>
> c2a@c2a-desktop:~/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-cross/bin/c2a/plugins/pluginCorsair$ make
> i586-unknown-linux-gnu-g++ -c -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/mkspecs/linux-ptx-g++ -I. -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include/QtCore -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include/QtNetwork -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../../interface/*.h -I../obj -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/include -I/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include -pipe -isystem /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/include -isystem /home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/sysroot-target/usr/include -O2 -Wall -W -D_REE
> NTRANT -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
As I said: add the toolchain to PATH
PATH=/home/c2a/OSELAS.BSP-Pengutronix-Generic-2011.11.0/platform-Poseidon/selected_toolchain:$PATH make
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-02-01 15:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 11:50 [ptxdist] Error during compiling qt projects barhoumi mohtadi
2012-02-01 13:24 ` Michael Olbrich
2012-02-01 14:06 ` barhoumi mohtadi
2012-02-01 14:13 ` [ptxdist] Error during compiling qt projects - Erratum barhoumi mohtadi
2012-02-01 15:13 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox