Error on creating a plugin - [sub-MyPluginName-make_first] Error 2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error on creating a plugin - [sub-MyPluginName-make_first] Error 2

FirstStep
Hello again,

I'm trying to make a plugin for LibreCAD. I've used the instructions from this wiki page:

http://wiki.librecad.org/index.php/LibreCAD_Plugin_Development

I've add a sub project with a .pro, .cpp and a .h file. With a little modification(changing names of the plugin, etc) I tried to compile it. Then it gives me this error:

":-1: error: [sub-MyPluginName-make_first] Error 2"

How do I go about fixing this error? Are there any other resources for making plugins? (this one seems to be a bit old)

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Error on creating a plugin - [sub-MyPluginName-make_first] Error 2

ravas
The first step is informing the community of your idea.
Someone could already be working on it,
or could have a helpful suggestion.

The plugin system needs work;
using it wouldn't be my first suggestion.
Reply | Threaded
Open this post in threaded view
|

Re: Error on creating a plugin - [sub-MyPluginName-make_first] Error 2

FirstStep
Oh, I see. I just wanted to load points using a live stream (point by point) from another application which is connected to a hardware reader that scans certain 2d plane, instead of loading a file.

Is there anything similar to this going on that you recommend me to take a look at? Thanks again ravas.




Reply | Threaded
Open this post in threaded view
|

Re: Error on creating a plugin - [sub-MyPluginName-make_first] Error 2

ravas
This post was updated on .
Interesting... :-]

A plugin does seem logical in this case.

My recommendation is to understand the Qt system independent of LibreCAD.
This is a minimal and clear tutorial:
http://doc.qt.io/qt-5/qtwidgets-tools-echoplugin-example.html

You could use qc_plugininterface.h / document_interface.h
or write a new more specific interface.
Reply | Threaded
Open this post in threaded view
|

Re: Error on creating a plugin - [sub-MyPluginName-make_first] Error 2

ravas
In reply to this post by FirstStep
Something to note is https://github.com/LibreCAD/LibreCAD/issues/656
If anyone is interested in working on that... it's needed.

I'm currently rewriting the keycode system,
and working on a different project I want to release.