Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
HelloWorld Plugin on Ubuntu 11.04
hibbity:
Ubuntu 11.04, Codeblocks 10.05 installed from apt sources.
Plugin compiles and installs without errors, however:
Plugin does not show up in Contrib pallette
Plugin does not show up in Plugins drop down menu
Zip file contains the manifest.xml file *only*.
I have checked similar threads for example:
Getting started with plugins [resolved] http://forums.codeblocks.org/index.php/topic,5166.0.html
If I follow the wiki tutorial: http://wiki.codeblocks.org/index.php?title=Managing_Plug-in_Resources
verbatim, specifically the section, "Tutorial: Creating a New Plugin and Examining Its Structure"
then add /usr/local/include/wx-2.8 to Project-->Build Options-->Search Directories-->Compiler
and compile, then it compiles with 0 errors and 0 warnings.
But the HelloWorld.zip file only contains the "manifest.xml" file, and nothing else.
This result is easily repeatable with the above defined steps.
What have I missed to get a different result than the wiki tutorial?
hibbity:
Here is the Build Log:
-------------- Build: default in HelloWorld ---------------
Compiling: HelloWorld.cpp
Linking dynamic library: HelloWorld.so
Output size is 243.68 KB
Running target post-build steps
zip -j9 HelloWorld.zip manifest.xml
updating: manifest.xml (deflated 53%)
zip -j9 HelloWorld.cbplugin HelloWorld.so HelloWorld.zip
updating: HelloWorld.so (deflated 70%)
updating: HelloWorld.zip (deflated 12%)
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
hibbity:
Executing from the command line:
zip -j9 HelloWorld.cbplugin HelloWorld.so HelloWorld.zip
updating: HelloWorld.so (deflated 70%)
updating: HelloWorld.zip (deflated 12%)
ls -la HelloWorld.zip
-rw-r--r-- 1 guest users 409 2011-05-27 14:33 HelloWorld.zip
less HellowWorld.zip
Archive: HelloWorld.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
500 Defl:X 235 53% 2011-05-27 13:35 0b802f01 manifest.xml
-------- ------- --- -------
500 235 53% 1 file
HelloWorld.zip (END)
[off topic] BTW does anyone know what Font-Face to select for a fixed font in a posting?
Assigning font=Courier (using the standard format for font, e.g. [ f o n t = F o n t N a m e ] Some Text Here [ / f o n t ]) does not provide the expected result.
Pecan:
A ".cbplugin" file simply packages the plugin for distribution. It does not of itself install the plugin.
To install the plugin,
the .zip file containing the .xml file must be copied to
...\share\CodeBlocks\
and the .so or .dll must be copied to ...\share\CodeBlocks\plugins\
Set your logging to "full command line" via Menu>Settings>Compiler and Debugger>Other Settings>Compiler Logging.
You can use the post build steps to doing the copying.
OR:
You can use Menu>Plugins>Manage plugins>Install new
then navigate to the .cbplugin file and click on it.
hibbity:
--- Quote from: Pecan on May 28, 2011, 03:06:12 pm ---To install the plugin,
the .zip file containing the .xml file must be copied to
...\share\CodeBlocks\
and the .so or .dll must be copied to ...\share\CodeBlocks\plugins\
--- End quote ---
These directories do not exist on my system.
I am developing on Ubuntu, and all software has been installed from apt sources.
What I do have is /usr/lib/codeblocks/plugins/ which contains lib*.so files,
and /usr/share/codeblocks/ which contains *.zip files.
Are these the relevant directories I should be using?
Perhaps you could refer me to the developer's guide where all this is documented
in detail. There is a developer's guide, right?
Navigation
[0] Message Index
[#] Next page
Go to full version