Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: slimmeke on September 21, 2013, 09:18:25 am

Title: Downloading prebuild CodeBlocks SDK
Post 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?

Title: Re: Downloading prebuild CodeBlocks SDK
Post by: oBFusCATed on September 21, 2013, 11:20:55 am
http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: slimmeke on September 21, 2013, 12:58:01 pm
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?
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: oBFusCATed on September 21, 2013, 01:13:35 pm
Install command line zip, which is on you PATH.
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: slimmeke on September 21, 2013, 01:25:11 pm
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.
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: ToApolytoXaos on September 21, 2013, 01:49:53 pm
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)
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: slimmeke on September 21, 2013, 01:56:17 pm
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
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: oBFusCATed on September 21, 2013, 06:05:03 pm
Try to link with -z defs or -Wl,--no-undefined, I don't know if they work on windows...
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: Jenna on September 21, 2013, 06:21:17 pm
You can start C::b from a console (cmd.exe) with the -v parameter to get a more meaningful output.
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: slimmeke on September 21, 2013, 06:31:10 pm
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).
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: Jenna on September 21, 2013, 07:27:27 pm
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)
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: slimmeke on September 22, 2013, 07:49:32 am
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.
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: slimmeke on September 23, 2013, 10:39:30 am
Can nobody help me with this problem??
Title: Re: Downloading prebuild CodeBlocks SDK
Post by: ouch on September 25, 2013, 10:02:45 pm
Is the zip in the ...\CodeBlocks\share\CodeBlocks directory?