Qt Creator libts warning

Ruben
Hi

I'm trying to setup Qt Creator for a mini2440. I use Pengutronix BSP etc...

I added the qmake
(/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot
-cross/bin/qmake-cross/qmake)
to Qt Creator and the toolcain
(/opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-bi
nutils-2.22-kernel-3.6-sanitized/bin/arm-v4t-linux-gnueabi-g++).

When I build the project, I receive the following errors:

1. :-1: warning: libts-0.0.so.0, needed by
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-
target/usr/lib/libQtGui.so,
not found (try using -rpath or -rpath-link)
2. :-1: warning: libpng12.so.0, needed by
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-
target/usr/lib/libQtGui.so,
not found (try using -rpath or -rpath-link)
3. :-1: warning: libz.so.1, needed by
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-
target/usr/lib/libQtGui.so,
not found (try using -rpath or -rpath-link)
4.:-1: warning: libfreetype.so.6, needed by
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-
target/usr/lib/libQtGui.so,
not found (try using -rpath or -rpath-link)

I'm not sure whats causing this issue, not sure if I'm doing something
wrong.

I appreciate any help or advice.

thank you

Ruben

davef
Haven't got my HowTo in front of me, so from memory . . . have you ticked
the relevant libraries in the Qt section in Graphics and media?

The first error is a common one when tslib is not cross-compiled BEFORE
doing any Qt work.

Tried searching the forum for a HowTo I think I posted but there is too
much stuff to wade through.

davef
Ruben,

I see this guy has been pretty busy since I had a go at his tutorial about
a year ago.

Maybe it will give you a few clues.

http://mini2440vietnam.blogspot.co.nz/2011/04/upgrade-qt462-in-mini2440....

Also, holger posted some Qt stuff recently, search for his name.

Ruben
Hi Dave

Thanks for the advice. before I worked with the Pengutronix BSP, I compiled
Qt using the site you mentioned, it worked fine, but the debugging in Qt
Creator I couldnt get going. 

in Ptxdist menuconfig, I just ticked qt and qwt and didnt add any other
options, what options did you use to get qt going? I think its something to
do with the compiler, that I may not have included, but I'm not sure what
it needs. 

Do you have a how to? if you do, I'd pay good money for it if you could
send it to me. :)

I googled untill my fingers bleed, but couldnt really get an answer. also,
I didnt change any qmake.conf content, cos I assumed ptx configures it
automatically, or am I mistaken?

I really appreciate your help. 

Thanks

Ruben

Dave Festing
Attachment: PTXdist_Qt and Browser.zip (28 KB)
"good money" ... now you are talking!  Maybe, a cold beer if it helps you.

rename the attachment to .doc

Some issues:

- I found that on a failed build that I had to delete some files mentioned
towards the bottom of my notes or you could not re-build the project
- a clean build in Qt takes quite awhile, so I often would put more options
in then maybe required.
- it always was a challenge to get the mouse, the keyboard and the stylus
to work together.

I would suggest searching both PTXdist gmane sites for Qt problems, I think
there will only a few postings, ie for the first issue.

The third issues may have been sorted in the default profile.environment

I haven't played with Qt for quite awhile as using a web browser on a 3.5"
screen is not ideal!

I never changed any qmake.conf content.

Good luck!

Dave Festing
Attachment: better clean for Qt.zip (983 Byte)
Found the gmane posting on a the first issue:

rename as .doc

Ruben
Thanks alot Dave, will have a look at your notes, hopefully it works for
me. 

Did you get Qt Creator to cross compile your app for the mini2440?

-> The third issues may have been sorted in the default profile.environment

I'm not sure what you mean by this. 

wow, beer sounds much better, so if you're ever in South Africa, let me
know ;)

thanks again!

Ruben

Dave Festing
Never used Qt Creator. I only ever built Arora and /demo/browser in Qt.

The script for setting up the input devices for Qt are defined in
/etc/profile.environment  I think these have changed since I was doing this
1 1/2 years ago. So, the text describing the event and mice/mouse
descriptions may have changed.

Juergen Beisert
Something is misconfigured in your Qt app or your Qt library. When you
enable Qt in the menu and select Qt should support the libts, PTXdist will
ensure libts is already built, when the Qt lib gets built. Same for
libpng12, libz and libfreetype.

Or your configuration and the currently used Qt lib are not on sync (just a
guess). Can you check if the requested libs are in the
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-

target/usr/lib/ directory? If yes, adding a simple "-L <path>" should help.

Ruben
Hi Juergen

Yes all the libs are in
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-
target/usr/lib/

-> adding a simple "-L <path>" should help.

Could you please show me how to do this?

Am I using the right toolchain paths and Qt Version paths, as this is one
of my concerns.

Qt Version path =
(/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot

-cross/bin/qmake-cross/qmake)

Toolchain path =
(/opt/OSELAS.Toolchain-2012.12.0/arm-v4t-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-bi

nutils-2.22-kernel-3.6-sanitized/bin/arm-v4t-linux-gnueabi-g++)

@Dave

I see what you mean, forgot its specified in the Quickstart doc. From what
I could gather is that the settings looks ok, and makes sense. When I run
the demo app, it works perfectly, I think there might be something with
libs or compilers I'm missing. Thanks for reminding me :)

Thanks to you both Juergen and Dave, you give me new hope.

Ruben

Juergen Beisert
Try to add a lib search path with the "-L
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-

target/usr/lib" parameter.

Ruben
I really have no clue how to do this. In which file should I add the lib
search?

Ruben
Sorted

davef
Ruben,

My turn now ... where did you add the lib search path?  To
/sysroot-cross/bin/qmake (the script file)?

Also, this is no sysroot-cross/bin/qmake-cross/qmake file is my 12.12.0

Did you mean sysroot-cross/bin/qmake which calls qmake-cross?

Thanks,
Dave

sean_h
Hi Ruben

I use Qt Creator and the Mini6410. I am based in SA. Feel like a beer?

Regards
Sean

davef
When you two finish your beer how about just a hint where to put that
search path :)

sean_h
Hi Dave

I use open embedded to look after the environment. Sorry I cannot give a
direct answer. May I suggest having a look at bec-sytems.com under Qt.

Rgds
Sean

davef
Sean,

I can get to this page:
http://bec-systems.com/site/501/best-practices-for-building-qt-applicati...
but can't find the "article" he refers to.  

I read through the comments at the bottom of this page, which seem related
to the "article".  

Is the article only that one paragraph?

The issue I have is specific to the Pengutronix BSP Qt setup.  If Ruben
doesn't show up in a few days I'll talk to the Pengutronix guru.

Thanks,
Dave

mayur
I have use a cross compiler 4.4.3 & arm_qte-463_20100802 but this compile
sucessfully the following two file is not generated ..
  

config.option & qt-sdk-linux-x86-opensource-2009.05.bin


why this file is not created ??

Ruben
Hi Sean

yeah sweet, pop me a mail if you feel like it. lfxciii@gmail.com

Ruben
hmm, sorry bout the Dave, I don't have my Linux stuff in front of me, will
look at home tonight and post it if you are still interested, sorry have
been busy with other stuff till now.

davef
Ruben,

Ya, would still be interested.

Tnx,
Dave

Ruben
Hi Dave

I went through my diary, and this is what i found:

File to edit:

/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/sysroot-
target/usr/mkspecs/qws/linux-ptx-g++/qmake.conf

Entry:

QMAKE_LFLAGS =
-Wl,-rpath-link=/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-m
ini2440/sysroot-target/usr/lib

let me know if it doesnt work for you and i'll hae a look and see if i have
anything else i can send you.

davef
Thanks Ruben.  I will get back in 3-4 days if it doesn't work for me.
(another weekend of house painting ahead of me!)
Cheers,
Dave