Code::Blocks Forums

User forums => Help => Topic started by: rialmat on July 03, 2012, 03:25:32 pm

Title: How do I install the contrib plugins?
Post by: rialmat on July 03, 2012, 03:25:32 pm
Hi guys!
I downloaded the source code from the svn repository. Now I want to install one of the contrib plugins. But it seems there is no way I can install it from the ide, for i can't find any files ending with .cbplugin. I tried to build the source code of the plugin and ended up getting a shared library, which I don't know what to do with.

So can anyone tell me how to install the contrib plugins? My operating system is Opensuse 12.1 x86_64. 
Title: Re: How do I install the contrib plugins?
Post by: MortenMacFly on July 03, 2012, 03:52:26 pm
I downloaded the source code from the svn repository. Now I want to install one of the contrib plugins.
Source code != binary! You cannot "install" source code. You have to compile the source code yourself or use a package manager to d/l the binary distributions for your distro.
Title: Re: How do I install the contrib plugins?
Post by: rialmat on July 03, 2012, 05:28:16 pm
Quote
Source code != binary! You cannot "install" source code. You have to compile the source code yourself or use a package manager to d/l the binary distributions for your distro.
I already said in the original post, "I tried to build the source code of the plugin and ended up getting a shared library, which I don't know what to do with."
What I was asking is how can I "install" the plugin by means of the source code?(And I don't think the word "install" is exclusively associated with "binary ")
Title: Re: How do I install the contrib plugins?
Post by: MortenMacFly on July 03, 2012, 08:21:20 pm
Well just copy the shared lib to the other shared libs and the resources to the resource folder. If you fully compile C::B yourself, the update script will take care of that just fine. The cbplugin file "format" is basically:
Code
zip -j9 Plugin.cbplugin Plugin.dll Plugin.zip

EDIT:
...while Plugin.zip contains i.e. (but at least the manifest file):
Code
zip -j9 Plugin.zip manifest.xml resources\Plugin.xrc (...)
Title: Re: How do I install the contrib plugins?
Post by: oBFusCATed on July 03, 2012, 08:22:54 pm
rialmat: Have you read a guide showing how to build c::b from source? If not please search the wiki!
Title: Re: How do I install the contrib plugins?
Post by: razzledazzle on July 04, 2012, 09:41:28 am
If you're simply trying to install the plugin, you could get them directly through nightly releases. As they contain plugins built right for that release.

This is for Windows:
http://prdownload.berlios.de/codeblocks/CB_20120703_rev8081_win32.7z
also
http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2812_gcc452-TDM.7z

You can directly extract this to your Code::Blocks root folder and let the files be replaced.
Then simply start up Code::Blocks to verify.

Hope that helps. :)