Results 1 to 2 of 2

Thread: Adding a Screen Driver

  1. #1
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Adding a Screen Driver

    I've started to implement an accelerated screen driver for a specific graphics controller. The controller offers framebuffer device, but certain operations such as blitting and drawing lines can be accelerated using ioctl commands.

    To implement the screen driver I've used the files shown here: http://doc.trolltech.com/4.3/qtopiacore-svgalib.html as a starting point. My problem is that the documentation never tells me how to build the plug-in - how the project file is supposed to look. The closest information I can find is this:

    "To be able to compile using private header files you need to use a qmake binary within a compiled Qtopia Core package."

    Any tips or directions would be very welcome.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Adding a Screen Driver

    I'd expect a suitable project file for the plugin to be more or less something like this:
    Qt Code:
    1. TEMPLATE = lib
    2. CONFIG += plugin static
    3. TARGET = svgalibscreendriver
    4. # DESTDIR, INCLUDEPATH...
    5.  
    6. HEADERS = svgalibpaintdevice.h \
    7. svgalibpaintengine.h \
    8. svgalibscreen.h \
    9. svgalibsurface.h
    10.  
    11. SOURCES = svgalibpaintdevice.cpp \
    12. svgalibpaintengine.cpp \
    13. svgalibplugin.cpp \
    14. svgalibscreen.cpp \
    15. svgalibsurface.cpp
    To copy to clipboard, switch view to plain text mode 

    TARGET must match Q_EXPORT_PLUGIN2 and Q_IMPORT_PLUGIN. Did I overlook something?
    J-P Nurmi

Similar Threads

  1. regarding a touch screen driver for qt-embedded
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd March 2007, 10:23

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.