Compilation Issue with QWS example
-
wrote on 21 Mar 2011, 19:46 last edited by
Yes, that is why I said to disable it if it is not available in your cross compiling sysroot. Try passing in -no-glib to your Qt configure line. When trying things like this it also often helps to pass in the -verbose argument so that you can see what tests pass/fail.
If you still can't get it working please paste in the relevant section of the configure process.
-
wrote on 22 Mar 2011, 11:55 last edited by
Hey ZapB I Tried as per your comment and finally able to build. Thanks for your quick support. I gave below command -
./configure -embedded x86 -xplatform linux-g++ -no-glib -no-iconv -qvfb
I am also able to run QWS/framebuffer example outside the X which draws 3 rectangle using qvfb.Which perfact works for me.
But still getting compilation error on mousecalibration example-
/opt/qtsdk-2010.04/qt/examples/qws/mousecalibration/calibration.cpp:141: undefined reference to QWSServer::mouseHandler() -
wrote on 22 Mar 2011, 20:42 last edited by
When you are running qmake on the application .pro file, are you sure that you are running the correct version of qmake. ie the one built as part of your Qt-embedded build?
Where is your Qt-embedded installed to? Can you post the output of:
@which qmake@
and
@qmake -r@
and
@make@
Hopefully that will show us which libs the app is trying to link to and whether they are the right ones or not.
I'm offline for periods this week so it may take me a day or more to get back to you.
Good luck!
-
wrote on 23 Mar 2011, 09:20 last edited by
Yes..My embedded Qt is installed on home/embeddedQt/qtsdk-2010.04/qt/
Output of which qmake
/home/embeddedQt/qtsdk-2010.0Reading /home/embeddedQt/qtsdk-2010.04/qt/examplesOutputof qmake -r
/qws/framebuffer/framebuffer.pro
Reading /home/embeddedQt/qtsdk-2010.04/qt/examples/qws/framebuffer/framebuffer.pro
Reading /home/embeddedQt/qtsdk-2010.04/qt/examples/qws/mousecalibration/mousecalibration.pro
Reading /home/embeddedQt/qtsdk-2010.04/qt/examples/qws/simpledecoration/simpledecoration.proOutput of make -
g++ -Wl,-rpath-link,/home/embeddedQt/qtsdk-2010.04/qt/lib -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.6.3-i386/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.6.3-i386/lib -o mousecalibration .obj/release-shared-emb-x86/calibration.o .obj/release-shared-emb-x86/scribblewidget.o .obj/release-shared-emb-x86/main.o -L/home/embeddedQt/qtsdk-2010.04/qt/lib -lQtGui -L/home/embeddedQt/qtsdk-2010.04/qt/lib -lQtNetwork -lQtCore -lpthread
.obj/release-shared-emb-x86/calibration.o: In functionCalibration::accept()': calibration.cpp:(.text+0xb): undefined reference to
QWSServer::mouseHandler()'
.obj/release-shared-emb-x86/calibration.o: In functionCalibration::mouseReleaseEvent(QMouseEvent*)': calibration.cpp:(.text+0x39): undefined reference to
qt_screen'
.obj/release-shared-emb-x86/calibration.o: In functionCalibration::exec()': calibration.cpp:(.text+0xd0): undefined reference to
QWSServer::mouseHandler()'
.obj/release-shared-emb-x86/calibration.o: In functionCalibration::Calibration()': calibration.cpp:(.text+0x283): undefined reference to
qt_screen'
.obj/release-shared-emb-x86/calibration.o: In functionCalibration::Calibration()': calibration.cpp:(.text+0x403): undefined reference to
qt_screen'
.obj/release-shared-emb-x86/calibration.o: In functionCalibration::paintEvent(QPaintEvent*)': calibration.cpp:(.text+0x51f): undefined reference to
qt_screen'
.obj/release-shared-emb-x86/main.o: In functionmain': main.cpp:(.text+0x3d): undefined reference to
QWSServer::mouseHandler()'
collect2: ld returned 1 exit status
make: *** [mousecalibration] Error 1 -
wrote on 23 Mar 2011, 14:21 last edited by
Do you have another Qt installation in path? Try the absolutpath to your embedded qmake!
-
wrote on 24 Mar 2011, 04:36 last edited by
Initially while making setup i downloaded below Qt-4.6.3 version complete SDK and installed it on Desktop
./qt-sdk-linux-x86-opensource-2010.05.1.bin
The Desktop Qt installed path was /opt. Then i took the copy of Desktop Qt qtsdk-2010.04 folder on /home and i configure the Qt as embedded and built it. While build i am giving the path of Qt embedded only.
-
wrote on 24 Mar 2011, 06:56 last edited by
Have you tried /pathtoyourqt-embedded/qmake *.pro && make?
-
wrote on 24 Mar 2011, 09:18 last edited by
Hi ZapB, Scylla,
I got the solution today..the problem was with my qt embedded installation. I was using the sysroot qt sdk which i got after running the qt-sdk-linux-x86-opensource-2010.05.1.bin.It built fine with default configuration but for embedded configuration (./configure -embedded x86 -xplatform linux-g++ -no-glib -no-iconv -qvfb) it gave me build issue with QWS example.
Then i downloaded the qt for embedded linux version 4.6.2 (qt-everywhere-opensource-src-4.6.2.tar.gz) which works fine for qws.
ZapB thanks alot for your support for finally fixing the issue. .. -
wrote on 7 Jul 2011, 08:46 last edited by
Hi ZapB. I m a beginner in Qt. Is there anyway I can implement and use the QWS on my Desktop Linux system? or Is there any way I can emulate the embedded Linux on the present Linux system.
Also, is there a X Window(client/server) equivalent in Qt?Awaiting your reply.
Thank you. -
wrote on 7 Jul 2011, 09:05 last edited by
Yes you can use qws on your Desttop linux.Download qt-everywhere-opensource-src-4.6.2.tar.gz and gothrough READ.
Configure -
./configure -embedded x86 -xplatform linux-g++
make;make install and run the program using -qws as command line argument from console.
Note- you have to go out from xserver to use qwsGoodLuck-
Rahul Pandey -
wrote on 7 Jul 2011, 09:10 last edited by
Thank you Rahul Pandey. I ll give it a try n get back to u.
Regards,
Vijaeendra Simha