Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

hello word plugin install in codeblocks problem

(1/3) > >>

anandamu16:

I created the hello world plugin following this "http://wiki.codeblocks.org/index.php/Creating_a_simple_%22Hello_World%22_plugin".
After building up the plugin correctly, I go to settings->plugin->manage plugins-> Install new and then gave the helloworldplugin.cbp path.

But the popup says can't load your helloworldplugin. Any idea, whats the reason?

Tools used:
Codeblocks 16.01 IDE
Codeblocks src code from "http://codeblocks.org/downloads/25"       codeblocks_16.01.tar.gz
wxwidget2.8.12 (shared=1, monolithic=1, unicode=1, build= release as well as debug

oBFusCATed:
Something is not right with your symbols. Probably you're mixing compiler or libraries.

anandamu16:

--- Quote ---Something is not right with your symbols. Probably you're mixing compiler or libraries.
--- End quote ---

What do you mean by symbols? I rechecked the project settings and it seems all fine.
For the reference, i added screenshot of my project setings

BlueHazzard:
by symbols he means the exported/imported function from dynamic/static libraries...
Your problem is probably that you are using two different compilers for the codeblocks libraries and your plugin libraries
or you are using two different sdks

Have you build codeblocks by yourself?
What compiler do you use?


--- Quote ---After building up the plugin correctly, I go to settings->plugin->manage plugins-> Install new and then gave the helloworldplugin.cbp path.

--- End quote ---
is a plugin file generated?

anandamu16:
Thanks BlueHazzard,

From your reply, I get an idea to make a plugin from the "codeblocks.exe" that I have generated on building sdk code.
I was successful to build the plugin and also succeeded to install it.

But I have some questions, If someone can answer:
1- Is it so, that if I want to build plugins for codeblocks. First I need to build codeblocks sdk to get Codeblocks.exe and then generate plugin through that codeblocks.exe only and then only those plugins can be successfully installed into this IDE. I mean to ask, if I download a Default codeblocks binary, Install it, Create a plugin and install it in the same IDE... is that possible?

2- In codeblocks svn source code, we have 2 files: One is "codeblocks.cbp" and other is "codeblocks.workspace". So If I want to build my separate version of codeblocks, I need to build only "codeblocks.cbp" or "codeblocks.workspace" also? and whats the difference in building both?
 


--- Quote ---Have you build codeblocks by yourself?
--- End quote ---
Yes


--- Quote ---What compiler do you use?
--- End quote ---
Mingw 5.3


--- Quote ---is a plugin file generated?
--- End quote ---
Yes, all plugin files generated i.e; .cbplugin extension, zip file etc.

- Anand A.

Navigation

[0] Message Index

[#] Next page

Go to full version