Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows10] - Failed to extract plugin meta data from ..... #26

Open
giladreich opened this issue May 12, 2017 · 10 comments
Open

[Windows10] - Failed to extract plugin meta data from ..... #26

giladreich opened this issue May 12, 2017 · 10 comments

Comments

@giladreich
Copy link

Failed to extract plugin meta data from 'C:\Qt\Qt5.8.0\5.8\msvc2015_64\plugins\designer\ColorWidgets-qt51.dll'

I'm trying to use this plugin, but getting this error when i go to Help -> About Plugins -> Failed Plugins
The Widgets won't display in the designer.
Note that I'm using Qt Version: 5.8.
I build the plugin in release mode from the Qt Creator.
Then i also tried building with cmake with a different bundle of Qt of MinGW32 with these commands:

mkdir build
cd build
cmake ..
cmake-make
cmake-make install
And then confirmed that i have the dll in that path:
C:\Qt\Qt5.8.0\5.8\msvc2015_64\plugins\designer\ColorWidgets-qt51.dll
win fail

Is that has to do with compatibility issues with Windows? or I'm doing something wrong?

@mbasaglia
Copy link
Owner

Are you sure you are installing the right library? it should be called ColorWidgetsPlugin, while the one shown in the Qt Designer is just ColorWidgets (which is the library you should link to in the actual project).

@giladreich
Copy link
Author

@mbasaglia Pretty positive, I downloaded the sourcecode -> opened with Qt Creator -> run qmake -> build all -> then the only thing i get is ColorWidgets-qt51.dll and libColorWidgets-qt51.a, i tried putting libColorWidgets-qt51.a in lib and dll in plugins.
I tried building in release and debug mode and i don't see any ColorWidgetsPlugin.

@Kicer86
Copy link

Kicer86 commented Oct 24, 2017

@mbasaglia @giladre looking at code I can see there is nothing about exporting symbols which is crucial when building under windows (for sure for visual studio, not sure about mingw, it may export everything by default). I think #23 and #17 suffer from the same thing.

@Kicer86
Copy link

Kicer86 commented Oct 24, 2017

@mbasaglia I cannot see usage in qt-designer plugin code

@mbasaglia
Copy link
Owner

Does it work if you add them to the plugin code?

@Kicer86
Copy link

Kicer86 commented Oct 24, 2017

@mbasaglia don't know, I'm pure linux user, I just try to help :)

@mbasaglia
Copy link
Owner

shrugs I have no way to test it myself so it can't really be fixed until someone who has windows can test this.

@Kicer86
Copy link

Kicer86 commented Oct 24, 2017

@mbasaglia you may try to build sources with -fvisibility=hidden and -fvisibility-inlines-hidden and adopt export macros you showed me to expand to attribute ((visibility ("default"))) for gcc. This should emulate windows situation. More details here.

@kevin-ur
Copy link

you can create custom widget from gui ,here is for your reference
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants