[Qt-embedded-interest] problems in configuring 'qvfb'
Pankaj Chawla
pankaj013 at gmail.com
Tue Mar 31 12:36:02 CEST 2009
Sorry if I sound rude but the intention is not that. Its really turning out
to be a
Introduction to Unix builds kind of a chain which is not what this forum is
for.
Avishek, I would really recommend that you first get yourself acquainted
with how a normal Unix build happens. Once you get a hang of that, Qt builds
will happen automatically. There is not specific about Qt builds vis-a-vis a
generic C++ build on Unix.
In any case if you guys still want to keep the chain moving, please take it
offline as its adding no value to the qt embedded forum to learn how to
specify link libraries in a unix build.
Thanks for understanding and no offence meant against anybody,
Pankaj
On Tue, Mar 31, 2009 at 3:54 PM, Avishek_Sharma
<Avishek_Sharma at satyam.com>wrote:
> Hi Markus,
> The earlier error about not being able to find 'lXtst' is no longer
> showing.Now another set of errors is showing(copied below)
>
> [root at localhost~]#ln -s /usr/lib/libXtst.so.6.1.0 /usr/lib/libXtst.so
> [root at localhost ~]# cd /root/Desktop/qt-x11/tools/qvfb
> [root at localhost qvfb]# g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.4.3/lib -o
> ../../bin/qvfb qvfb.o qvfbview.o qvfbratedlg.o main.o qanimationwriter.o
> qvfbprotocol.o qvfbshmem.o qvfbmmap.o qlock.o qwssignalhandler.o
> qvfbx11view.o x11keyfaker.o moc_qvfb.o moc_qvfbview.o moc_qvfbratedlg.o
> moc_gammaview.o moc_qvfbprotocol.o moc_qvfbshmem.o moc_qvfbmmap.o
> moc_qvfbx11view.o moc_x11keyfaker.o qrc_qvfb.o qrc_ClamshellPhone.o
> qrc_PDAPhone.o qrc_SmartPhone2.o qrc_SmartPhone.o
> qrc_SmartPhoneWithButtons.o qrc_TouchscreenPhone.o qrc_Trolltech-Keypad.o
> qrc_Trolltech-Touchscreen.o qrc_PortableMedia.o -L/usr/X11R6/lib
> -L/usr/local/Trolltech/Qt-4.4.3/lib -lQtOpenGL
> -L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -lQtGui -L/usr/lib
> -lXtst -lpng -lSM -lICE -lXrender -lXrandr -lfreetype -lfontconfig -lXext
> -lX11 -lQtCore -lz -lm -lrt -ldl -lGLU -lGL -lpthread
> qvfb.o: In function `QVFb::setZoom(double)':
> qvfb.cpp:(.text+0x4a6): undefined reference to
> `DeviceSkin::setTransform(QMatrix const&)'
> qvfb.o: In function `QVFb::enableCursor(bool)':
> qvfb.cpp:(.text+0x74b): undefined reference to `DeviceSkin::hasCursor()
> const'
> qvfb.o: In function `QVFb::skinConfigChosen(int)':
> qvfb.cpp:(.text+0x3fb2): undefined reference to
> `DeviceSkinParameters::read(QString const&, DeviceSkinParameters::ReadMode,
> QString*)'
> qvfb.cpp:(.text+0x4248): undefined reference to `QFileDialog::exec()'
> qvfb.o: In function `QVFb::init(int, int, int, int, int, QString const&)':
> qvfb.cpp:(.text+0x6bbe): undefined reference to
> `DeviceSkinParameters::read(QString const&, DeviceSkinParameters::ReadMode,
> QString*)'
> qvfb.cpp:(.text+0x6bea): undefined reference to
> `DeviceSkin::DeviceSkin(DeviceSkinParameters const&, QWidget*)'
> qvfb.cpp:(.text+0x6cf7): undefined reference to
> `DeviceSkin::setView(QWidget*)'
> qvfb.cpp:(.text+0x70a1): undefined reference to
> `DeviceSkinParameters::hasSecondaryScreen() const'
> qvfb.cpp:(.text+0x71ee): undefined reference to
> `DeviceSkinParameters::secondaryScreenSize() const'
> qvfb.cpp:(.text+0x7267): undefined reference to
> `DeviceSkin::setSecondaryView(QWidget*)'
> qvfb.o:(.rodata._ZTV19AnimationSaveWidget[vtable for
> AnimationSaveWidget]+0xb0): undefined reference to
> `QWidget::qwsEvent(QWSEvent*)'
> qvfb.o:(.rodata._ZTV6Config[vtable for Config]+0xb0): undefined reference
> to `QWidget::qwsEvent(QWSEvent*)'
> qanimationwriter.o: In function `QAnimationWriter::appendFrame(QImage
> const&, QPoint const&)':
> qanimationwriter.cpp:(.text+0x8a3): undefined reference to
> `QPainter::drawImage(QPointF const&, QImage const&)'
> collect2: ld returned 1 exit status
> [root at localhost qvfb]#
>
> What could be the problem?please advice.
> Thank you.
>
> regards,
> Avi
>
>
>
> ---------------------------------------------------------------------------------------------------------------
> From: Markus Franke [Franke.M at sebakmt.com]
>
> Add another link by executing:
>
> ln -s /usr/lib/libXtst.so.6.1.0 /usr/lib/libXtst.so
>
> You need to be root in order to do that.
> Then try again the last command I sent to you.
>
> -------------------------------------------------------------------------------------------------------------------
>
> Avishek_Sharma <Avishek_Sharma at satyam.com> schrieb am 31.03.2009 11:50:08:
>
> > Hi,
> > Tthe output of 'ls -l /usr/lib/libXtst*'---
> > lrwxrwxrwx 1 root root 16 2008-07-23 16:46 /usr/lib/libXtst.so.6 ->
> > libXtst.so.6.1.0
> > -rwxr-xr-x 1 root root 20864 2007-09-25 01:24 /usr/lib/libXtst.so.6.1.0
> >
> > Thank you.
> > regards,Avi
> >>
> > ________________________________________
> > From: Markus Franke [Franke.M at sebakmt.com]
> >
> > What's the output of the command below?
> >
> > ls -l /usr/lib/libXtst*
> >
> >
> > Mit freundlichen Grüßen / Best regards
> >
> -------------------------------------------------------------------------------------------------------------------------------
> > Avishek_Sharma <Avishek_Sharma at satyam.com> schrieb am 31.03.2009
> 11:25:13:
> >
> > > Hi ,
> > > thanks for the code....but,It still shows the same error of not being
> > > able to find -lXtst.
> > >
> > > [root at localhost qvfb]# g++
> -Wl,-rpath,/usr/local/Trolltech/Qt-4.4.3/lib -
> > > o ../../bin/qvfb qvfb.o qvfbview.o qvfbratedlg.o main.o
> qanimationwriter.
> > > o qvfbprotocol.o qvfbshmem.o qvfbmmap.o qlock.o qwssignalhandler.o
> > > qvfbx11view.o x11keyfaker.o moc_qvfb.o moc_qvfbview.o moc_qvfbratedlg.o
> > > moc_gammaview.o moc_qvfbprotocol.o moc_qvfbshmem.o moc_qvfbmmap.o
> > > moc_qvfbx11view.o moc_x11keyfaker.o qrc_qvfb.o qrc_ClamshellPhone.o
> > > qrc_PDAPhone.o qrc_SmartPhone2.o qrc_SmartPhone.o
> > > qrc_SmartPhoneWithButtons.o qrc_TouchscreenPhone.o
> qrc_Trolltech-Keypad.o
> > > qrc_Trolltech-Touchscreen.o qrc_PortableMedia.o -L/usr/X11R6/lib -
> > > L/usr/local/Trolltech/Qt-4.4.3/lib -lQtOpenGL -
> > > L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -lQtGui -L/usr/lib
> -
> > > lXtst -lpng -lSM -lICE -lXrender -lXrandr -lfreetype -lfontconfig
> -lXext
> > > -lX11 -lQtCore -lz -lm -lrt -ldl -lGLU -lGL -lpthread
> > >
> > > /usr/bin/ld: cannot find -lXtst
> > > collect2: ld returned 1 exit status
> > >
> > > Any changes that could help?
> > > Thank you.
> > >
> > > Best regards,
> > > Avi
> > > ________________________________________
> > > From: Markus Franke [Franke.M at sebakmt.com]
> > >
> > > Avishek_Sharma <Avishek_Sharma at satyam.com> schrieb am 31.03.2009
> 10:56:08:
> > >
> > > > Hi Markus,
> > > > sorry,I didn't understand what you meant by 'add -L/usr/lib in
> front
> > > > of -lXtst'.....would you please explain it once more(like where to
> make
> > > > this change)
> > > > You had suggested an option of making 'qmake' aware of the path to
> > > > libXtst....could you give me the correct command for that
> > >
> > > g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.4.3/lib -o ../../bin/qvfb
> qvfb.o
> > > qvfbview.o qvfbratedlg.o main.o qanimationwriter.o qvfbprotocol.o
> > > qvfbshmem.o qvfbmmap.o qlock.o qwssignalhandler.o qvfbx11view.o
> > > x11keyfaker.o moc_qvfb.o moc_qvfbview.o moc_qvfbratedlg.o
> moc_gammaview.o
> > > moc_qvfbprotocol.o moc_qvfbshmem.o moc_qvfbmmap.o moc_qvfbx11view.o
> > > moc_x11keyfaker.o qrc_qvfb.o qrc_ClamshellPhone.o qrc_PDAPhone.o
> > > qrc_SmartPhone2.o qrc_SmartPhone.o qrc_SmartPhoneWithButtons.o
> > > qrc_TouchscreenPhone.o qrc_Trolltech-Keypad.o
> qrc_Trolltech-Touchscreen.o
> > > qrc_PortableMedia.o -L/usr/X11R6/lib -L/usr/local/Trolltech/Qt-4.4.
> > > 3/lib -lQtOpenGL -L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -
> > > lQtGui -L/usr/lib -lXtst -lpng -lSM -lICE -lXrender -lXrandr -lfreetype
> -
> > > lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lGLU -lGL
> -lpthread
> > >
>
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
>
> _______________________________________________
> Qt-embedded-interest mailing list
> Qt-embedded-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-embedded-interest
>
--
Cheers
Pankaj
---------------------------------------------
http://13degree.wordpress.com
Do your dreams!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090331/bb6168a7/attachment.html
More information about the Qt-embedded-interest
mailing list