Qt with Gfx Plugin



  • Hi,

    I am bit new to Qt.
    I am trying to cross compile Qt on my MIPS based platform. But the issue is, the platform has its own convention of using Graphics.
    Hence instead of using LinuxFB or DirectFB, I have made my own.
    But every time I try to run the application it gives : Driver not found
    (during configuration i have added -plugin-xxx)

    When I go inside I find .so for the plugin created. Even I have added that in LD_LIBRARY_PATH.

    I have few questions:

    1. When it says driver not found, is it looking in specific directory?
    2. I assume that gfx driver means the plugin which I have created ("libgfx.so")
    3. Is there any environment variable that need to be set. Currently I have only set QWS_DISPLAY=gfx

    I am not sure where I am going wrong.

    If these have been discussed, please point me to the link.



  • As a first step, I recommend setting the QT_DEBUG_PLUGINS environment variable to 1.

    As a second step, you can try building and running the application located in qt/util/plugintest.

    Those should help in tracking down the problem. You might also want to take a look at:

    "http://doc.trolltech.com/4.7/plugins-howto.html#locating-plugins":http://doc.trolltech.com/4.7/plugins-howto.html#locating-plugins



  • Hi Thanks for the reply.

    Now i copied the plugin inside the application.
    Even though file is present, it says it couldn't find.

    I have added LinuxFb plugin, which it clearly finds out the "keys".
    While I debug and find the reason, If you have any suggestions please let me know.


    ./trivialwizard -qws

    QFactoryLoader::QFactoryLoader() looking at "/mytest/qt-4.7.2/examples/dialogs/trivialwizard/gfxdrivers/libqgfxscreen.so"
    "Cannot load library /mytest/qt-4.7.2/examples/dialogs/trivialwizard/gfxdrivers/libqgfxscreen.so: (File not found)"
    could not load
    QFactoryLoader::QFactoryLoader() looking at "/mytest/qt-4.7.2/examples/dialogs/trivialwizard/gfxdrivers/libqscreenlinuxfb.so"
    keys ("LinuxFb")
    gfx: driver not found


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.