Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Getting started with plugins [resolved]
TDragon:
stardust: Since there have been changes made to the directory structure of the C::B sources recently, please make sure you're running and compiling against a version of Code::Blocks at or beyond revision 3604. Regenerate your plugin project and, if it still doesn't work, post the new sources.
As a side note: the manifests for C::B's standard plugins all use 1.10.0, so that's what I'd been using in my manifest.xml without problems.
mandrav:
--- Quote ---As a side note: the manifests for C::B's standard plugins all use 1.10.0, so that's what I'd been using in my manifest.xml without problems.
--- End quote ---
For the time being, the version number in the XML is not taken into account.
Pecan:
--- Quote from: mandrav on February 15, 2007, 03:30:04 pm ---
--- Quote ---The plugin wizard is producing an incorrect .cbp file.
Insert the following into Build Options/Search Directories
--- End quote ---
Pecan, these are the old directories. The new ones use include/ instead of sdk/...
--- End quote ---
Acknowledged
@Stardust,
Just make sure your compiler search directories point to the include files for where ever the sdk headers are on your codeblocks system.
You should be able to compile without errors (except for the pkg-config error, which I removed from my copy of your MyPlugin.cbp because it was producing incorrect results).
stardust:
--- Quote from: Pecan on February 15, 2007, 03:24:06 pm ---Your plugin is NOT compiling. You should have told us of your errors.
--- End quote ---
Äh... The plugin project did compile without warnings and errors (svn 3596):
--- Quote ---
--- Code: ----------------- Build: default in MyPlugin ---------------
Compiling: MyPlugin.cpp
Linking dynamic library: MyPlugin.so
Running target post-build steps
zip -j9 MyPlugin.zip manifest.xml
updating: manifest.xml (deflated 52%)
zip -j9 MyPlugin.cbplugin MyPlugin.so MyPlugin.zip
updating: MyPlugin.so (deflated 67%)
updating: MyPlugin.zip (deflated 8%)
Process terminated with status 0 (0 minutes, 5 seconds)
0 errors, 0 warnings
--- End code ---
--- End quote ---
I now switched to svn 3615 and when I start c::b there is a "Global Variable Editor" dialog popping up for "cb" with the fields base, include, lib, obj, cflags, lflags. For "cb.base" I entered the c::b source folder, i.e. where bootstrap is located.
For "wx" I am clueless. I entered
wx.base=/usr
wx.include=include/wx-2.6
wx.lib=lib
Is that correct?
Building the MyPlugin yields the same as above: no errors, no warnings
restarting c::b, the error in the logs is still the same
--- Code: ---[16:26:44.282]: ERROR: SDK version mismatch for MyPlugin (1.11.5). Expecting 1.11.8
--- End code ---
TDragon:
Since the version in the manifest is being ignored, my next guess would be that you're compiling the plugin against a different version of C::B than the version you're trying to use the plugin with. Make sure that the version you compile against is the version you test with.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version