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
Qt Creator libts warning
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.
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.
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
"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!
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
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.
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.
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
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, 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
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
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
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 ??
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.
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.
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