Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: damorin on June 10, 2015, 01:14:35 am
-
Hi,
I tried the plugin example in the wiki and there is a problem with the wizard; it's creating a 'libExample.so" instead of "Example.so". This is preventing loading the plugin (it's expecting Example.so).
http://wiki.codeblocks.org/index.php/Creating_a_simple_"Hello_World"_plugin
I've pinpointed the problem in the cbp, the "prefix_auto" which is set "1". Changing it to "0" and modifying the "pre/post" processing to use "Example.so" is making it to compile and load
Hope this help someone finding the problem.
Damorin
Platform: Bodhi Linux CB: 10323
-
I've pinpointed the problem in the cbp, the "prefix_auto" which is set "1".
Why not do it properly through the project options? The CBP file is not intended to be modified manually. Please use C::B to do so.
-
Why not do it properly through the project options? The CBP file is not intended to be modified manually. Please use C::B to do so.
It was easier to look at the CBP to have a good idea where the problem was.
I tried by right-clicking on the Project, deselecting the prefix auto-generate click-box, setting the correct name and going into "Pre/Post Build step" and changing the "libExample.so" to "Example.so" and it worked.
For what I can see, the wizard is setting the auto-generate to a default value that is preventing the plugin to be generated with the correct filename.
I tried with an already existing plugin (MiniDoc) and it's building and loading fine.
Do you want me to open a bug for this ?
-
Either that or you fix it and provide a patch.you can edit the source code of wizards if you right click on it and select edit.