Not able to start plugin in Qt Creator 2.7.0

Added by Luis Coelho about 5 years ago

Hi,

I'd compile plugin with Qt Creator 2.7.0 sources

But send an error with mismatch... please any help...


Replies (7)

RE: Not able to start plugin in Qt Creator 2.7.0 - Added by Kevin Tanguy about 5 years ago

Hi,

Could you please provide more information:
- OS
- Compiler
- Build log
- Actual error message (or screenshot)

Regards,

Kevin

RE: Not able to start plugin in Qt Creator 2.7.0 - Added by Luis Coelho about 5 years ago

Sure:
OS:
Linux hp-ws9 3.2.0-37-generic-pae #58-Ubuntu SMP Thu Jan 24 15:51:02 UTC 2013 i686 i686 i386 GNU/Linux

Compiler:
QMake version 3.0
Using Qt version 5.0.2 in /home/luis/programs/Qt5.0.2/5.0.2/gcc/lib

g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Build version trunk56:

Used commands:
qmake:
qmake QTC_SOURCE_DIR=/home/luis/programs/qt-creator-2.7.0-src/ QTC_BUILD_DIR=/home/luis/programs/qt-creator-2.7.0-src/lib LIBSROOT=/home/luis/programs/qt-creator-2.7.0-src/lib/ DEST=/home/luis/programs/Qt5.0.2/Tools/QtCreator/lib/qtcreator/plugins/Kofee

build log in attach.

Error message in attach.

hopefully attachs can be seen...

But if not the error is when starting QtCreator 2.7.0 send a warning window message:

.... libDoxygen.so:Plugin verification data mismatch in:.....

Thanks

Kevin Tanguy wrote:

Hi,

Could you please provide more information:
- OS
- Compiler
- Build log
- Actual error message (or screenshot)

Regards,

Kevin

makelog.txt Magnifier (18.659 KB)

29.png (220.109 KB)

RE: Not able to start plugin in Qt Creator 2.7.0 - Added by Andreas Wass about 5 years ago

Seems like Qt5 added an additional macro that has to be added to plugins:
Q_PLUGIN_METADATA

For more info see this thread: http://www.qtcentre.org/threads/52220-QtCreator-Plugins-vs-Qt5

r56 is only tested against qmake for Qt 4.8 so that is probably why you see these issues, things like Q_EXPORT_PLUGIN are actually removed with Qt5. Most likely a Q_PLUGIN_METADATA has to be added somewhere.

RE: Not able to start plugin in Qt Creator 2.7.0 - Added by Luis Coelho about 5 years ago

Good, now that we know the issue, is there any work around?

I tried to compile Qt Creator 2.7.0 with Qt 4.8 and then the plugin but the gui/text/fonts are screwed, nevertheless I compiled the plugin but also had errors.
I think there is some compatibility issue with QTC 2.7 and QT 4.8.

Can you give some hints to change the plugin sources to test with this new Q_PLUGIN_METADATA macro on?

Thanks,
LC

RE: Not able to start plugin in Qt Creator 2.7.0 - Added by Andreas Wass about 5 years ago

Found a fix:
Add the following line to doxygenplugin.h AFTER Q_OBJECT:
Q_PLUGIN_METADATA(IID "org.qt-project.ExtensionSystem.IPlugin")

With this I managed to get it going when compiling with Qt5. I have not tested this code with Qt4 but it should work considering that iplugin.h takes care of the macro definition for us.

RE: Not able to start plugin in Qt Creator 2.7.0 - Added by Andreas Wass about 5 years ago

r57 should be compilable with both Qt 4.8.3 and Qt5 now.

(1-7/7)