How to distribute a c++ plugin

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
ezm
Newbie Member
Posts: 8
Joined: Wed Nov 14, 2018 6:30 pm

How to distribute a c++ plugin

Post by ezm » Wed Mar 27, 2019 4:10 pm

Hi Andrew,

I have developed a c++ plugin in QCAD community edition. Can you let me know how to distribute the plugin?

Thanks

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: How to distribute a c++ plugin

Post by andrew » Wed Mar 27, 2019 4:23 pm

You can simply bundle the plugin with your package / installer in the "plugins" directory.

ezm
Newbie Member
Posts: 8
Joined: Wed Nov 14, 2018 6:30 pm

Re: How to distribute a c++ plugin

Post by ezm » Wed Apr 24, 2019 2:49 pm

Thanks Andrew.

But when my plugin contains QSharedPointer, when I load the dll it says The specified procedure could not be found.
I am using Qt 5.5.1 with MSVC 2013. QCAD version 3.22.0
QCAD plugin error.PNG
QCAD plugin error.PNG (53.41 KiB) Viewed 7392 times

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: How to distribute a c++ plugin

Post by andrew » Fri Apr 26, 2019 1:49 pm

This is a Qt related problem.
You can set the environment variable QT_DEBUG_PLUGINS=1 to output more information when starting QCAD.
Also try to Google for "qt plugin the specified procedure could not be found".

ezm
Newbie Member
Posts: 8
Joined: Wed Nov 14, 2018 6:30 pm

Re: How to distribute a c++ plugin

Post by ezm » Mon Apr 29, 2019 5:05 pm

Ok, thanks !

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”