News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How do I install the contrib plugins?

Started by rialmat, July 03, 2012, 03:25:32 PM

Previous topic - Next topic

rialmat

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. 

MortenMacFly

Quote from: rialmat on July 03, 2012, 03:25:32 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

rialmat

#2
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 ")

MortenMacFly

#3
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:
zip -j9 Plugin.cbplugin Plugin.dll Plugin.zip

EDIT:
...while Plugin.zip contains i.e. (but at least the manifest file):
zip -j9 Plugin.zip manifest.xml resources\Plugin.xrc (...)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

rialmat: Have you read a guide showing how to build c::b from source? If not please search the wiki!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

razzledazzle

#5
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. :)