Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Getting started with plugins [resolved]

(1/5) > >>

stardust:
To create my first plugin I followed the hints in 'Creating a simple "Hello World" plugin'.

The tutorial is outdated, so I added the following paths

Build options -> Search directories -> Compiler

--- Code: ---<SOURCE>/src/sdk/propgrid/include
<SOURCE>/src/sdk/scripting/include
<SOURCE>/src/sdk/wxFlatNotebook/include
<SOURCE>/src/sdk/wxscintilla/include

--- End code ---


Build options -> Search directories -> Linker

--- Code: ---<SOURCE>/src/sdk/wxscintilla/include
<INSTALL>/codeblocks/lib

--- End code ---

and built the project.

When I try to install the *.cbplugin in the "Plugins->Manage plugins -> Install new" I get a
"One or more plugins were not installed succesfully".

So what did I do wrong...?

I created the plugin with C::B's plugin wizard as Tool plugin under Linux 2.6.13, gcc 4.0.2, binutils 2.16.91.0.2, wx 2.6.1, C::B svn 3593



TDragon:
Check C::B's debug log for more information. Did you create a resource .zip with a manifest for the plugin?

Pecan:
http://forums.codeblocks.org/index.php?topic=4290.msg33916#msg33916
Plug-Ins : some suggested "case" conventions

stardust:

--- Quote from: TDragon on February 12, 2007, 02:20:55 pm ---Check C::B's debug log for more information. Did you create a resource .zip with a manifest for the plugin?

--- End quote ---

There is no exception report (at least not in the /tmp where C::B usually puts them).

The resource .zip is there (you mean the MyPlugin.zip, I guess) and contains just the manifest

--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_plugin_manifest_file>
    <SdkVersion major="1" minor="11"  release="8" />
    <Plugin name="MyPlugin">
        <Value title="MyPlugin" />
        <Value version="0.1" />
        <Value description="" />
        <Value author="Georg-Johann Lay" />
        <Value authorEmail="foo@bar.com" />
        <Value authorWebsite="" />
        <Value thanksTo="" />
        <Value license="GPL" />
    </Plugin>
</CodeBlocks_plugin_manifest_file>
--- End code ---

The plugin dir contains the .so as expected:


--- Code: ----rw-rw----  1 georg users    520 2007-02-12 15:18 manifest.xml
-rw-rw----  1 georg users   1086 2007-02-12 15:18 MyPlugin.cbp
-rw-rw----  1 georg users  53482 2007-02-12 15:22 MyPlugin.cbplugin
-rw-rw----  1 georg users   1697 2007-02-12 15:22 MyPlugin.cpp
-rw-rw----  1 georg users   2292 2007-02-12 15:18 MyPlugin.h
-rwxrwx---  1 georg users 160885 2007-02-12 15:22 MyPlugin.so
-rw-rw----  1 georg users    406 2007-02-12 15:22 MyPlugin.zip
--- End code ---


--- Quote from: Pecan on February 12, 2007, 02:52:45 pm ---http://forums.codeblocks.org/index.php?topic=4290.msg33916#msg33916
Plug-Ins : some suggested "case" conventions

--- End quote ---

Yes, I followed the case rules.

TDragon:

--- Quote from: stardust on February 12, 2007, 05:21:36 pm ---There is no exception report (at least not in the /tmp where C::B usually puts them).

--- End quote ---
I refer to the "Code::Blocks Debug" tab of C::B's Messages panel. (If it doesn't appear, right-click one of the panel's tabs and select Code::Blocks Debug from the Show/Hide menu.)

Additionally, have you tried copying MyPlugin.zip to share/CodeBlocks and MyPlugin.so to share/CodeBlocks/plugins to see if your plugin works when loaded on startup?

Navigation

[0] Message Index

[#] Next page

Go to full version