From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RsaB6-0000u5-Ms for ptxdist@pengutronix.de; Wed, 01 Feb 2012 14:24:48 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RsaB6-00035z-Lr for ptxdist@pengutronix.de; Wed, 01 Feb 2012 14:24:48 +0100 Date: Wed, 1 Feb 2012 14:24:48 +0100 From: Michael Olbrich Message-ID: <20120201132448.GI32382@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 /platform-/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