Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Loading custom mouse driver
Forum Updated to NodeBB v4.3 + New Features

Loading custom mouse driver

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 2 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hareshel
    wrote on last edited by
    #3

    i am using qt 4.8.5

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      You should start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what is happening with your plugin.

      One a side note, are you locked to that old version of Qt ? If locked to Qt 4 then please at least upgrade to Qt 4.8.7 which is the latest and last release of the Qt 4 series otherwise you should seriously consider moving to Qt 5.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      0
      • SGaistS SGaist

        You should start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what is happening with your plugin.

        One a side note, are you locked to that old version of Qt ? If locked to Qt 4 then please at least upgrade to Qt 4.8.7 which is the latest and last release of the Qt 4 series otherwise you should seriously consider moving to Qt 5.

        H Offline
        H Offline
        hareshel
        wrote on last edited by
        #5

        @SGaist

        Great Thanks for pointing me to enable debug plugins.

        I am getting error message that could not able to load the plugin

        undefined symbol: _ZTV20<my class name>

        what does it mean?

        I have given Q_EXPORT_PLUGIN2(driver class, pluginclassname);

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Can you share the .pro file of your plugin project ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hareshel
            wrote on last edited by
            #7

            QT += core gui

            TARGET = mousedriver
            TEMPLATE = lib
            CONFIG += plugin

            DESTDIR = ~/home/

            SOURCES+= mousedriver.cpp

            HEADERS+= mousedriver.h

            INSTALLS+ = target

            mousedriver.cpp:

            class mousehandler: public qobject, public QWSMouseHandler {

            }

            class mousehandlerdriverplugin: public QMouseDriverPlugin {

            }

            Q_EXPORT_PLUGIN2(mymousedriver, mousehandlerdriverplugin)

            keys function:
            QStringList() << "mymousedriver";

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Maybe a silly question but did you install the plugin properly ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hareshel
                wrote on last edited by
                #9

                created a home directory

                and copied plugins, necessary library needed for qt application.

                my application runs..mouse pointer not moving and now trying to add my mouse driver plugin.

                since my device is space constraint so only copied gui, core, qt, network.so files and plugins

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  Where did you copy your custom mouse input plugin ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hareshel
                    wrote on last edited by
                    #11

                    Created a /usr/local/qt4.8/lib
                    /usr/local/qt4.8/plugins
                    the above ones are symbolic link

                    plugins -> /media/plugins/mousedrivers/
                    lib -> /media/lib/lib*

                    media directory has libs and plugins.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      Why not install it along the other Qt plugins ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hareshel
                        wrote on last edited by
                        #13

                        Tried with full install. but still not loading

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          Did you check again with QT_DEBUG_PLUGINGS set to 1 ? What did you get ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved