Hi,

On Sun, Feb 10, 2013 at 08:40:36PM +0530, amit shah wrote:
>        I found what the problem is and i'm unsure as where to fix it.
> 
> The problem is the Makefile qmake ( from sysroot-cross/bin)  generates has
> 
> LFLAGS = -Wl,-O1
> 
> but what needs to be  is
> 
> LFLAGS        =
> -L/sda3/pengubsp/platform-NeoLinux-2013.02/sysroot-target/lib
> -L/sda3/pengubsp/platform-NeoLinux-2013.02/sysroot-target/usr/lib
> -Wl,-rpath-link
> -Wl,/sda3/pengubsp/platform-NeoLinux-2013.02/sysroot-target/lib
> -Wl,-rpath-link
> -Wl,/sda3/pengubsp/platform-NeoLinux-2013.02/sysroot-target/usr/lib -Wl,-O1
> 
> I manually changed the LFLAGS  in the Makefile and did a command line make
> and it successfully builds the QT application .
> 
> But each time after I run qmake I have to manually add the LFLAGS  and then
> do a make from command line. It is a pain doing it.
> 
> The qmake needs to change so that the correct LFLAGS are generated.

Using QtCreator with ptxdist 2012.12.0 does not work. It may work with the
current ptxdist git. You will need to set use the tools from
platform-<something>/sysroot-host/lib/wrapper/ to make this work.
These wrapper scripts are now used to add (among other things) these search
paths. In 2012.12.0 this does not work unless the scripts are called from
ptxdist.

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 |

Reply via email to