Author Topic: Wizard for plugin in svn 10323  (Read 2970 times)

Offline damorin

  • Multiple posting newcomer
  • *
  • Posts: 44
Wizard for plugin in svn 10323
« 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






One problem at a time and we will get there.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9606
Re: Wizard for plugin in svn 10323
« Reply #1 on: June 10, 2015, 06:59:25 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: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline damorin

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: Wizard for plugin in svn 10323
« Reply #2 on: June 11, 2015, 12:33:08 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9606
Re: Wizard for plugin in svn 10323
« Reply #3 on: June 11, 2015, 09:56:11 pm »
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: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ