User forums > General (but related to Code::Blocks)
Dynamic Library (.so) project wizard for C::B on Linux?
irrdev:
I have been using Code::Blocks on Windows for several years now. I recently made the switch to Ubuntu Linux, and have been using Code::Blocks ever since on this platform, too. However, I miss a project wizard for Dynamic Linux libraries. Currently there is only a wizard for the dated static libraries (.a files). I am not very well versed at scripting these wizards myself, and I was wondering if someone else could create such a wizard for inclusion into Code::Blocks nightlies? I am also curious to know if I am the only one missing this feature or not? For myself, I would definitely appreciate it. :wink:
Jenna:
Have you tried to change the target type in "Properties... -> Build targets" from "static library" to "dynamic library" ?
You may perhaps have to fix the output name then.
jarro_2783:
They want a wizard though. The way you described is how you have to do it at the moment, however a wizard would be nice.
cacb:
--- Quote from: jarro_2783 on December 13, 2007, 05:14:21 am ---They want a wizard though. The way you described is how you have to do it at the moment, however a wizard would be nice.
--- End quote ---
I agree, what I would like to see (if possible) is a wizard that generates a project for a .DLL target on Windows and a .so target on Linux. I have been using DLLs for a long time with MSVC on windows, but moving to C::B for Win and Linux. So far only a single executable project. I just made a static library project as I did not know how to make a DLL/so project. I will have a second look at the static lib options (thanks for that hint!), but a Dynamic Library wizard would be very welcome, I am quite sure :lol:
Jenna:
I created a patch.
You can download it from http://jens.lody.name/debian/patches/sharedlib.patch.
After applying it to the source tree, you need to manually copy tghe two .png-files (logo.png and wizard.png) from "src/plugins/scriptedwizard/resources/staticlib" to "src/plugins/scriptedwizard/resources/sharedlib".
It creates no Debug and Release subdir in the moment, because it almost a copy of the staticlib-wizard.
But I will change this and upload a new patch. I think this evening.
Edit:
I changed it to a bzipped-file containing the patch itself and a shell-script that should copy the "missing" pngs and run bootstrap to create "configure.in" and the "Makefile.in"s.
I forgot this part in the first patch and tested only when compiling from within C::B not from console or via "dpkg-buildpackage" (on debian-baesd systems).
Download http://jens.lody.name/debian/patches/sharedlib_patch.tar.bz2.
"cd" into codeblocks sourcetree-root (the directory containing the bootstrap-script).
Type:
--- Code: ---tar -jxf <path_to>/sharedlib_patch.tar.bz2
--- End code ---
then:
--- Code: ---./sharedlib_patch.sh
--- End code ---
.
After finishing you should be able to build C::B in any way you normally do ("dpkg-builpackage"; ./configure -- ..., make, make install or whatever you prefer)
The wizard now creates a "bin/Release" and a "bin/Debug" subdir as default.
Navigation
[0] Message Index
[#] Next page
Go to full version