Results 1 to 9 of 9

Thread: "Error opening framebuffer device"

  1. #1
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question "Error opening framebuffer device"

    Hi everyone,
    I am installing Qt-embedded 4.5(technical preview) on Linux fedora 8(which already has Qt/X11 installed in it).
    I followed the installation steps given in the docs(after unzipping the archive)----
    1. cd to/ where/ I had saved the extracted Qt emb. folder
    2. ./configure -qvfb
    3.gmake (as prompted in the terminal)
    4.gmake install( prompted in terminal)
    5.I couldn't find .profile anywhere in "/root" so,as per suggestions received,I copied the PATH=/usr/local/....... in .bash_profile removing the preexisting PATH in .bash_profile(meant for Qt/X11)
    6.Now,I am trying to run the 'textedit' example in the demos folder.It's not showing any error when I do "make" but when I try "./textedit -qws",
    I get a continuous flow of the following message---
    Qt Code:
    1. QScreenLinuxFb::connect:No such file or directory
    2. Error opening framebuffer device /dev/fb0
    To copy to clipboard, switch view to plain text mode 
    The 'analogclock' widget example is working fine.

    I checked http://doc.trolltech.com/4.5/qvfb.html and there it's written that I should do the following--
    compile and run the qvfb tool as a normal Qt for X11 application (i.e., do not compile it as a Qt for Embedded Linux application):
    cd path/to/Qt/tools/qvfb
    make
    ./qvfb


    Problem is, I don't have the Qt/X11 folder downloaded from the internet(which contains the 'tools' folder).Qt/X11 was installed by some other guy(don't know who) long time back and now,I can't find the 'tools' folder which came along with Qt/X11 anywhere in my system.
    What do I do?Is there any alternative(I am not really looking forward to reinstalling everything)?I assumed that since I didn't do the above steps(compiling qvfb) so,I am getting the errors.
    Please advice.
    Thank you..
    Last edited by rishiraj; 25th March 2009 at 06:05.
    If everything seems to be going well, you have obviously overlooked something.

  2. #2
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default (update) "Error opening framebuffer device"

    (working on Fedora core 8)
    well, I downloaded another Qt/X11 4.4.3 package from the internet and tried configuring 'qvfb' from there.(I didn't uninstall the already existing Qt package...please refer to first post in case you are wondering which 'existing Qt' package I am referring to).
    Now,it shows this error---
    Qt Code:
    1. [root@localhost qvfb]# qmake qvfb.pro
    2. [root@localhost qvfb]# make
    3. 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 -lXtst -lQtOpenGL -L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -lQtGui -lpng -lSM -lICE -lXrender -lXrandr -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lGLU -lGL -lpthread
    4. /usr/bin/ld: cannot find -lXtst
    5. collect2: ld returned 1 exit status
    6. make: *** [../../bin/qvfb] Error 1
    7. [root@localhost qvfb]#
    To copy to clipboard, switch view to plain text mode 
    seems like a package 'libXtst' is missing( and I think it's not a Qt issue) so,I tried downloading and installing libXtst and it shows this error--
    Qt Code:
    1. [root@localhost Desktop]# rpm -ivh libXtst-1.0.3-1.fc8.src.rpm
    2. warning: libXtst-1.0.3-1.fc8.src.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    3. error: cannot create %sourcedir /usr/src/redhat/SOURCES
    To copy to clipboard, switch view to plain text mode 

    So,if anyone has any idea of how to solve this problem then do reply.It might not be a Qt issue but if anyone knows how to get around it,well,then I am eagerly waiting for your reply.Thanks for your time.
    Last edited by rishiraj; 30th March 2009 at 13:11.
    If everything seems to be going well, you have obviously overlooked something.

  3. #3
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: "Error opening framebuffer device"

    which processor is used for QT. also check for fb0 in /dev folder in rootfs.

  4. #4
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: "Error opening framebuffer device"

    Hi,
    finally a reply,thank you.
    Processor info--
    [root@localhost /]# cat /proc/cpuinfo | more
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) Pentium(R) 4 CPU 1.80GHz
    stepping : 7
    cpu MHz : 1794.271
    cache size : 512 KB
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss h
    t tm pbe up pebs bts sync_rdtsc cid xtpr
    bogomips : 3590.88
    clflush size : 64

    And, I can't see any 'fb0' in /dev though there's a couple of 'fd' and 'fd0..'hope this info will be of some use.
    If everything seems to be going well, you have obviously overlooked something.

  5. #5
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: "Error opening framebuffer device"

    i think if there is no fb0 in /dev folder this may be the problem in your case.as it was the similar problem i have faced, but not the same problem then i switch to another machine where fb0 was previously there.

  6. The following user says thank you to aj2903 for this useful post:

    rishiraj (30th March 2009)

  7. #6
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: "Error opening framebuffer device"

    Hi,
    Thanks for the advice.Got a bit of confusion though....does the 'fb0' folder/file pre exist in /dev.I thought it was created after we configured 'qvfb' or something like that.
    If everything seems to be going well, you have obviously overlooked something.

  8. #7
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question error while configuring 'qvfb'

    Hi,
    I got rid of the error I mentioned in my previous posts(about not being able to find 'lXtst')...now it's showing me the errors copied below.
    Qt Code:
    1. [root@localhost ~]# cd /root/Desktop/qt-x11/tools/qvfb
    2. [root@localhost qvfb]# qmake qvfb.pro
    3. [root@localhost qvfb]# make
    4. g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.5.0-tp1/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/local/Trolltech/QtEmbedded-4.5.0-tp1/lib -lXtst -lQtGui -L/usr/local/Trolltech/QtEmbedded-4.5.0-tp1/lib -lpng -lfreetype -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread
    5. qvfb.o: In function `QVFb::setZoom(double)':
    6. qvfb.cpp:(.text+0x4a6): undefined reference to `DeviceSkin::setTransform(QMatrix const&)'
    7. qvfb.o: In function `QVFb::enableCursor(bool)':
    8. qvfb.cpp:(.text+0x74b): undefined reference to `DeviceSkin::hasCursor() const'
    9. qvfb.o: In function `QVFb::skinConfigChosen(int)':
    10. qvfb.cpp:(.text+0x3fb2): undefined reference to `DeviceSkinParameters::read(QString const&, DeviceSkinParameters::ReadMode, QString*)'
    11. qvfb.o: In function `QVFb::init(int, int, int, int, int, QString const&)':
    12. qvfb.cpp:(.text+0x6bbe): undefined reference to `DeviceSkinParameters::read(QString const&, DeviceSkinParameters::ReadMode, QString*)'
    13. qvfb.cpp:(.text+0x6bea): undefined reference to `DeviceSkin::DeviceSkin(DeviceSkinParameters const&, QWidget*)'
    14. qvfb.cpp:(.text+0x6cf7): undefined reference to `DeviceSkin::setView(QWidget*)'
    15. qvfb.cpp:(.text+0x70a1): undefined reference to `DeviceSkinParameters::hasSecondaryScreen() const'
    16. qvfb.cpp:(.text+0x71ee): undefined reference to `DeviceSkinParameters::secondaryScreenSize() const'
    17. qvfb.cpp:(.text+0x7267): undefined reference to `DeviceSkin::setSecondaryView(QWidget*)'
    18. qvfbx11view.o: In function `QVFbX11View::startXnest()':
    19. qvfbx11view.cpp:(.text+0x1f96): undefined reference to `QX11Info::display()'
    20. qvfbx11view.cpp:(.text+0x1fa1): undefined reference to `QX11Info::appScreen()'
    21. qvfbx11view.cpp:(.text+0x1fb6): undefined reference to `QX11Info::display()'
    22. qvfbx11view.cpp:(.text+0x1fc1): undefined reference to `QX11Info::appScreen()'
    23. qvfbx11view.cpp:(.text+0x1fec): undefined reference to `QX11Info::display()'
    24. qvfbx11view.cpp:(.text+0x2037): undefined reference to `QX11Info::display()'
    25. qvfbx11view.cpp:(.text+0x2055): undefined reference to `QX11Info::appVisual(int)'
    26. qvfbx11view.cpp:(.text+0x205c): undefined reference to `QX11Info::display()'
    27. qvfbx11view.cpp:(.text+0x2067): undefined reference to `QX11Info::appScreen()'
    28. qvfbx11view.cpp:(.text+0x214a): undefined reference to `QX11Info::display()'
    29. qvfbx11view.cpp:(.text+0x2155): undefined reference to `QX11Info::appScreen()'
    30. qvfbx11view.cpp:(.text+0x2276): undefined reference to `QX11Info::display()'
    31. moc_qvfb.o:(.rodata._ZTV4QVFb[vtable for QVFb]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    32. moc_qvfb.o:(.rodata._ZTV6Zoomer[vtable for Zoomer]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    33. moc_qvfbview.o:(.rodata._ZTV8QVFbView[vtable for QVFbView]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    34. moc_qvfbview.o:(.rodata._ZTV16QVFbAbstractView[vtable for QVFbAbstractView]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    35. moc_qvfbratedlg.o:(.rodata._ZTV14QVFbRateDialog[vtable for QVFbRateDialog]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    36. moc_gammaview.o:(.rodata._ZTV9GammaView[vtable for GammaView]+0xb0): more undefined references to `QWidget::x11Event(_XEvent*)' follow
    37. collect2: ld returned 1 exit status
    38. make: *** [../../bin/qvfb] Error 1
    To copy to clipboard, switch view to plain text mode 
    Can't figure out what to do about it.Please advice.
    Thanks.
    If everything seems to be going well, you have obviously overlooked something.

  9. #8
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default (update)

    Hi,
    copied the 'deviceskin.h and deviceskin.cpp files from ...tools/shared to ..tools/qvfb and added their names to qvfb.pro and did 'qmake' and 'make' again which has reduced the number of errors/messages.
    Qt Code:
    1. [root@localhost qvfb]# make
    2. g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.5.0-tp1/lib -o ../../bin/qvfb qvfb.o qvfbview.o qvfbratedlg.o main.o qanimationwriter.o qvfbprotocol.o qvfbshmem.o qvfbmmap.o qlock.o qwssignalhandler.o deviceskin.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_deviceskin.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/local/Trolltech/QtEmbedded-4.5.0-tp1/lib -lXtst -lQtGui -L/usr/local/Trolltech/QtEmbedded-4.5.0-tp1/lib -lpng -lfreetype -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread
    3. deviceskin.o:(.rodata._ZTVN13qvfb_internal12CursorWindowE[vtable for qvfb_internal::CursorWindow]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    4. qvfbx11view.o: In function `QVFbX11View::startXnest()':
    5. qvfbx11view.cpp:(.text+0x1f96): undefined reference to `QX11Info::display()'
    6. qvfbx11view.cpp:(.text+0x1fa1): undefined reference to `QX11Info::appScreen()'
    7. qvfbx11view.cpp:(.text+0x1fb6): undefined reference to `QX11Info::display()'
    8. qvfbx11view.cpp:(.text+0x1fc1): undefined reference to `QX11Info::appScreen()'
    9. qvfbx11view.cpp:(.text+0x1fec): undefined reference to `QX11Info::display()'
    10. qvfbx11view.cpp:(.text+0x2037): undefined reference to `QX11Info::display()'
    11. qvfbx11view.cpp:(.text+0x2055): undefined reference to `QX11Info::appVisual(int)'
    12. qvfbx11view.cpp:(.text+0x205c): undefined reference to `QX11Info::display()'
    13. qvfbx11view.cpp:(.text+0x2067): undefined reference to `QX11Info::appScreen()'
    14. qvfbx11view.cpp:(.text+0x214a): undefined reference to `QX11Info::display()'
    15. qvfbx11view.cpp:(.text+0x2155): undefined reference to `QX11Info::appScreen()'
    16. qvfbx11view.cpp:(.text+0x2276): undefined reference to `QX11Info::display()'
    17. moc_qvfb.o:(.rodata._ZTV4QVFb[vtable for QVFb]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    18. moc_qvfb.o:(.rodata._ZTV6Zoomer[vtable for Zoomer]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    19. moc_qvfbview.o:(.rodata._ZTV8QVFbView[vtable for QVFbView]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    20. moc_qvfbview.o:(.rodata._ZTV16QVFbAbstractView[vtable for QVFbAbstractView]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    21. moc_qvfbratedlg.o:(.rodata._ZTV14QVFbRateDialog[vtable for QVFbRateDialog]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
    22. moc_gammaview.o:(.rodata._ZTV9GammaView[vtable for GammaView]+0xb0): more undefined references to `QWidget::x11Event(_XEvent*)' follow
    23. collect2: ld returned 1 exit status
    24. make: *** [../../bin/qvfb] Error 1
    To copy to clipboard, switch view to plain text mode 
    How to get rid of the rest?Any suggestions?
    Thanks.
    Last edited by rishiraj; 1st April 2009 at 06:59.
    If everything seems to be going well, you have obviously overlooked something.

  10. #9
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default

    ok,pretty silly of me...I was using qmake associated with Qt-embedded.Changed it to qmake for Qt-4.4.3.But,still showing some messages ...please advice.
    Qt Code:
    1. [root@localhost qvfb]# qmake qvfb.pro
    2. [root@localhost qvfb]# make
    3. 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 deviceskin.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_deviceskin.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 -lXtst -lQtOpenGL -L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -lQtGui -lpng -lSM -lICE -lXrender -lXrandr -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lGLU -lGL -lpthread
    4. qvfb.o: In function `QVFb::skinConfigChosen(int)':
    5. qvfb.cpp:(.text+0x4248): undefined reference to `QFileDialog::exec()'
    6. qvfb.o:(.rodata._ZTV19AnimationSaveWidget[vtable for AnimationSaveWidget]+0xb0): undefined reference to `QWidget::qwsEvent(QWSEvent*)'
    7. qvfb.o:(.rodata._ZTV6Config[vtable for Config]+0xb0): undefined reference to `QWidget::qwsEvent(QWSEvent*)'
    8. qanimationwriter.o: In function `QAnimationWriter::appendFrame(QImage const&, QPoint const&)':
    9. qanimationwriter.cpp:(.text+0x8a3): undefined reference to `QPainter::drawImage(QPointF const&, QImage const&)'
    10. collect2: ld returned 1 exit status
    11. make: *** [../../bin/qvfb] Error 1
    To copy to clipboard, switch view to plain text mode 
    If everything seems to be going well, you have obviously overlooked something.

Similar Threads

  1. no transparent background when writing to second framebuffer
    By Michelle in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 19th December 2008, 18:47
  2. Linux Framebuffer Test Problem
    By jefflg in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 19th May 2007, 08:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.