Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
HelloWorld example plugin
anio:
Hello,
I didnt find such a functionality in CB nor plugin for it, but i wanna be able when a text is selected in the editor and press button for brackets/commas this text to be wrapped instead of deleted. The same way as in Kate editor.
I am new in codeblocks so followed this tutorial to install it on my Ubuntu: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
CB is working good but when i started the tutorial to create my first plugin http://wiki.codeblocks.org/index.php?title=Creating_a_simple_%22Hello_World%22_plugin I cannot find linux equivalent for C:\CodeBlocks\sdk\include or C:\CodeBlocks\sdk\lib so i choose /home/user/devel/trunk/src/sdk but there are no lib or include dirs inside and i left /home/user/devel/trunk/src/sdk for both, but when select Install plugin it couldnt find the HelloWorld.so file.
Regards
MortenMacFly:
Another one stating nothing about version, platform etc... >:(
So I'll try to answer in the same "generic" way:
Once downloaded/checked out the C::B sources from SVN, compile C::B completely to create the libraries, then run the update script and you'll find the SDK libraries under the folder "devel".
Alternatively if you link against a nightly build, just use the folder, where codeblocks.dll is in.
Jenna:
--- Quote from: MortenMacFly on February 21, 2012, 11:03:13 am ---Alternatively if you link against a nightly build, just use the folder, where codeblocks.dll is in.
--- End quote ---
It should be libcodeblocks.so on linux.
Alternatively you can use my repo and install the development packages also. Or use the automake build-system to build and install C::B.
Then you can use pkg-config for your development.
anio:
Sorry for this.
I checked out from here svn://svn.berlios.de/codeblocks/trunk
Platform: Ubuntu 11.10 32 bit, kernel 3.0.0-16
Compiler: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3), i686-linux-gnu
--- Code: ---user@ubuntu:~/devel/trunk/src$ ./update
Creating output directory tree
Compressing core UI resources
Compressing plugins UI resources
Packing core UI bitmaps
Packing plugins UI bitmaps
Copying files
cp: cannot stat `devel/codeblocks': No such file or directory
cp: cannot stat `devel/*.so': No such file or directory
cp: cannot stat `devel/share/codeblocks/plugins/*.so': No such file or directory
Stripping debug info from output tree
strip: 'output/codeblocks': No such file
strip: 'output/*.so': No such file
strip: 'output/share/codeblocks/plugins/*.so': No such file
Creating launch-scripts
--- End code ---
C::B is completely build and working (svn 7809)
Thanks
EDIT: libcodeblocks.so is in ~/devel/trunk/src/sdk/.libs/ but C::B directory select menu cannot navigate to .* directories
EDIT2:
in the update shell script:
line 95: cp -f devel/codeblocks${EXEEXT} output > /dev/null
лине 96: cp -f devel/*.${LIBEXT} output > /dev/null
there is no any *.so file in the devel dir. Only cb_console_runner,run.sh and share/
Jenna:
How did you build C::B ?
If it was build with the automake-system, the update-script is not needed.
And you should have pkg-config files for C::B in <prefix>/lib/pkgconfig .
Navigation
[0] Message Index
[#] Next page
Go to full version