Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: slimmeke on September 21, 2013, 09:18:25 am
-
Hey guys
I wan't to write a plugin for Code::Blocks but I can't find the SDK to create them.
Is it possible to download the newest Code::Blocks SDK version for Code::Blocks 12.11 (Windows) or is there some easy way to get the SDK?
-
http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build
-
Ok tnx but I got one problem.
I can compile my plugin but I got some error after it.
Execution of 'zip -j9 Refactoring.zip manifest.xml' in 'D:\Projecten\CodeBlocks refactoring Plugin\Refactoring Plugin' failed.
If I go to my project folder I got an dll file but not more than that. How can I fix that?
-
Install command line zip, which is on you PATH.
-
Ok did that.
I can create a plugin now. But when I install (for testign) the plugin in my CodeBlocks it can't be installed.
I have installed this cmd zip tool: http://stahlworks.com/dev/?tool=zipunzip (http://stahlworks.com/dev/?tool=zipunzip)
Sorry for asking this questions but I can't progam when this is not correct.
-
The recommended way to avoid any possible issue with System Variable PATH (by accidentally removing any system program from PATH), would be to create a variable named PATH in User variables for <username> and add your zip directory there.
For more info, visit http://www.itechtalk.com/thread3595.html (http://www.itechtalk.com/thread3595.html)
-
I have added the zip to my path var (that was no problem for me). But after that I can't install the plugin using the plugin manager of Code::Blocks.
I got following problem when installing the plugin:
One or more plugins were not installed succesfully: D:\...\Refactoring.cbplugin
-
Try to link with -z defs or -Wl,--no-undefined, I don't know if they work on windows...
-
You can start C::b from a console (cmd.exe) with the -v parameter to get a more meaningful output.
-
Ok tnx I runed CB in cmd and got following error with my plugin.
Failed to load shared library c:\Program Files (x86)\...\plugins/Refactoring.dll (error 126: can't find module)
Where can I change the url because there is a problem with the \ and /. First you got the \ and the you got /?
Edit: The Refactoring.dll is in the correct directory (...\CodeBlocks\share\CodeBlocks\plugins).
-
The backslash and slash mixing should not be a problem.
The dll really exists, and the name is correct ?
Does it depend on any other library ?
If yes make sure it is in the systems search-path (the other library, not your plugin)
-
The dll file and zip file are in the correct directory.
And I doesn't use any library for my plugin.
The plugin is an testplugin. It doesn't anything yet.
It's easyer to test and develop an plugin when I can run it.
-
Can nobody help me with this problem??
-
Is the zip in the ...\CodeBlocks\share\CodeBlocks directory?