News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Wizard for plugin in svn 10323

Started by damorin, June 10, 2015, 01:14:35 AM

Previous topic - Next topic

damorin

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






One problem at a time and we will get there.

MortenMacFly

Quote from: damorin on June 10, 2015, 01:14:35 AM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

damorin

Quote from: MortenMacFly on June 10, 2015, 06:59:25 AM
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 ?





One problem at a time and we will get there.

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]