Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error: Unknown module(s) in QT: uiplugin after building from source
QtWS25 Last Chance

error: Unknown module(s) in QT: uiplugin after building from source

Scheduled Pinned Locked Moved Solved General and Desktop
mipsuipluginconfigure
7 Posts 2 Posters 3.9k Views
  • 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.
  • dream_captainD Offline
    dream_captainD Offline
    dream_captain
    wrote on last edited by
    #1

    Hello, i'm trying to build a custom QtDesigner plugin for MIPS architecture. I've downloaded a cross-compiler and built Qt 5.3.2 from source. My OS is Centos7. Configure command:

    ./configure -opensource -release -confirm-license -platform linux-g++-64 -xplatform linux-mipsel-g++ -qt-xcb -prefix /home/prog/CrossCompile/Qt5.3.2mipsLSB -nomake examples -nomake tests -v

    Cross-compilation of my app work fine, but when when i'm trying to cross-compile a custom QtDesigner plugin, i'm getting the error "error: Unknown module(s) in QT: uiplugin".

    Maybe i just forgot to add some arguments to configure command?

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

      Hi,

      No, that's because the tools like designer are not built when cross-comping. You're not likely going to use Designer on your target.

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

      dream_captainD 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        No, that's because the tools like designer are not built when cross-comping. You're not likely going to use Designer on your target.

        dream_captainD Offline
        dream_captainD Offline
        dream_captain
        wrote on last edited by dream_captain
        #3

        @SGaist Thanks for reply.

        I've tried to compile every single module in Qt source package(incuding QtTools) using qmake that i've already built with cross-compiler. It didn't help.

        Can you please show me a direction of how can i cross-compile my custom QtDesigner plugin?

        EDIT:just a thought: If QtDesigner is executing a custom library (plugin) when i start it, there's no way QtDesigner will use a plugin for different architecture. Seems like a problem has no solution? Maybe i just should recompile my plugin as simple shared library and use it. So confused now.

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

          Did you split your plugin in two ? Meaning a library for the actual code and the plugin separately.

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

          dream_captainD 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you split your plugin in two ? Meaning a library for the actual code and the plugin separately.

            dream_captainD Offline
            dream_captainD Offline
            dream_captain
            wrote on last edited by
            #5

            @SGaist Sorry, I'm not quite understand. The plugin itself if is a shared library. On Windows the plugin is a DLL, that i can copy into specific Qt directory and make it accesible in QtDesigner.

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

              Ok so you have a single dll that is both the plugin and the library containing the code of your custom widget. The problem is that you are trying to build the plugin for mips while using it with Qt Creator on your desktop computer. That won't work.

              You should split it like described here.

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

              dream_captainD 1 Reply Last reply
              1
              • SGaistS SGaist

                Ok so you have a single dll that is both the plugin and the library containing the code of your custom widget. The problem is that you are trying to build the plugin for mips while using it with Qt Creator on your desktop computer. That won't work.

                You should split it like described here.

                dream_captainD Offline
                dream_captainD Offline
                dream_captain
                wrote on last edited by
                #7

                @SGaist Thanks. Seems like that is exactly what i need.

                1 Reply Last reply
                0
                • JoeCFDJ JoeCFD referenced this topic on

                • Login

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