Hi Juergen
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.
thanks
--amit
On Sat, Feb 9, 2013 at 2:04 PM, amit shah <[email protected]> wrote:
> Hi Juergen,
> I successfully built and deployed the mini2440 graphics
> (QT) fourth quarter release 2012.12.0 .
> The issue i'm facing is I get the following linker error while compiling
> code via QT Creator 2.5 using qmake located sysroot-cross/bin/qmake
>
> QtCretaor complains of the *highlighted libs* not found but all the libs
> do exist in the the sysroot-target/usr/lib .
>
> /opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.7.2/../../../../arm-v4t-linux-gnueabi/bin/ld:
> warning: *libz.so.1*, needed by
> /opt/OSELAS.BSP/platform-mini2440-2012.12.0/sysroot-target/usr/lib/libQtSvg.so,
> not found (try using -rpath or -rpath-link)
> /opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.7.2/../../../../arm-v4t-linux-gnueabi/bin/ld:
> warning: *libts-0.0.so.0*, needed by
> /opt/OSELAS.BSP/platform-mini2440-2012.12.0/sysroot-target/usr/lib/libQtGui.so,
> not found (try using -rpath or -rpath-link)
> /opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.7.2/../../../../arm-v4t-linux-gnueabi/bin/ld:
> warning: *libpng12.so.0*, needed by
> /opt/OSELAS.BSP/platform-mini2440-2012.12.0/sysroot-target/usr/lib/libQtGui.so,
> not found (try using -rpath or -rpath-link)
> /opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.7.2/../../../../arm-v4t-linux-gnueabi/bin/ld:
> warning: *libfreetype.so.6*, needed by
> /opt/OSELAS.BSP/platform-mini2440-2012.12.0/sysroot-target/usr/lib/libQtGui.so,
> not found (try using -rpath or -rpath-link)
>
> Any ideas as how to fix this?
> Does this require a change in qmake so that correct Makefile in generated
> which have the missing libs?
>
> regards
> --amit
>
>