User forums > Help

Code::Blocks build dependencies under ubuntu?

(1/2) > >>

cacb:
Hi,

With reference to http://forums.codeblocks.org/index.php/topic,22137.msg150688.html#msg150688

Last night I was trying to build Code::Blocks for a virtual machine running Kubuntu 18.04.04 and used the latest from https://github.com/obfuscated/codeblocks_sf 

In order for ./configure to work successfully a number of dependencies must be met, but I am not quite sure what they are these days, so my question is whether this is documented somewhere? I would like to make a shell script that, given a fresh "off the shelf" Kubuntu 18.04, installed all required codeblocks build dependencies and then successfully built the whole thing.

My attempt list night failed with a message from ./configure I could not quite understand, most likely I made some mistake. If required, I can repeat the excercise and provide the exact message, but first I would try to ensure I have all the dependencies satisified, therefore the question about build dependencies.

Are the build dependencies documented somewhere?

oBFusCATed:
Yes, in the configure script.
If you want to have problem free building just use
--- Code: ---dpkg-buildpackage -us -uc
--- End code ---

cacb:

--- Quote from: oBFusCATed on February 20, 2020, 07:39:30 pm ---Yes, in the configure script.

--- End quote ---
Ok, I guess that refers to the configure.ac file. I am not familiar with that syntax, but it is probably the correct answer  :P


--- Quote from: oBFusCATed on February 20, 2020, 07:39:30 pm ---If you want to have problem free building just use
--- Code: ---dpkg-buildpackage -us -uc
--- End code ---

--- End quote ---
Thanks, you are right, this works fine. I checked the meaning of the options -us -uc and I guess it just means avoiding some warnings of "unsigned source".

Using dpkg-buildpackage you get *.deb files that install to /usr, which is fine for this kind of virtual machine that I am setting up. But if you want it in a different location I guess the correct way is to edit debian/rules and under DEB_CONFIGURE_EXTRA_FLAGS set the --prefix=/usr to something different.

oBFusCATed:
No idea, I don't use debian regularly, I just make sure it builds on ubuntu, because of popularity.
But why would you care where a package is installed? Its default is just fine. The idea is that locally build package is superseding the distro version, so you have no conflicts. Debian/ubuntu are shipping old versions anyway.

cacb:

--- Quote from: oBFusCATed on February 20, 2020, 08:53:07 pm ---But why would you care where a package is installed? Its default is just fine. The idea is that locally build package is superseding the distro version, so you have no conflicts. Debian/ubuntu are shipping old versions anyway.

--- End quote ---

In this case the default is fine, I agree. My comment was actually inspired by what you said in another thread about installing to places where you can just delete without causing conflicts with other software.
http://forums.codeblocks.org/index.php/topic,22137.msg150685.html#msg150685

Navigation

[0] Message Index

[#] Next page

Go to full version