Author Topic: How do I install the contrib plugins?  (Read 9348 times)

Offline rialmat

  • Multiple posting newcomer
  • *
  • Posts: 10
How do I install the contrib plugins?
« 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. 

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How do I install the contrib plugins?
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline rialmat

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: How do I install the contrib plugins?
« Reply #2 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 ")
« Last Edit: July 03, 2012, 05:30:01 pm by rialmat »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How do I install the contrib plugins?
« Reply #3 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 (...)
« Last Edit: July 03, 2012, 08:25:18 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: How do I install the contrib plugins?
« Reply #4 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!
(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!]

Offline razzledazzle

  • Single posting newcomer
  • *
  • Posts: 3
Re: How do I install the contrib plugins?
« Reply #5 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. :)
« Last Edit: July 04, 2012, 09:54:26 am by razzledazzle »