Code::Blocks Forums

User forums => Help => Topic started by: steve1_rm on April 19, 2008, 05:51:14 am

Title: building and installing on kubuntu from SVN
Post by: steve1_rm on April 19, 2008, 05:51:14 am
Hello,

I have just download code blocks for linux using the SVN. I have downloaded all the files in a codeblock folder in my home directory.

I am using Kubuntu 7.10

However, now that I have all these files. I am wondering what are the steps to build the codeblock and successfully install it.

Thanks,
Title: Re: building and installing on kubuntu from SVN
Post by: Jenna on April 19, 2008, 10:55:16 am
The easiest way on debian-systems (or systems basing on debian like [K]ubuntu) is to use the standard package-build system.
Install package "dpkg-dev" if it is not yet on your system.
Go to the root directory of your C::B-sources and type "./bootstrap" and then "dpkg-buildpackage".
If the second command shows you some errors about build dependencies, install the missing packages with "apt-get install <package-name>".
If only the dependencies for "libstdc++6-4"-dev-package  are not fullfilled, but you have either "libstdc++6-4.1-dev", "libstdc++6-4.2-dev" or "libstdc++6-4.3-dev" installed ypou can run "dpkg-buildpackage" with the "-d" switch to overwrite this dependency, or change the "debian/control"-file. But that can be dangerous if you don't know exactly what you do.

Don't overwrite other dependencies and only overwrite this one if at least one "libstdc++6-4"-dev package is installed.

You will also need the ubuntu-wxWidgets-packages from wxWidgets.org if no wxWidgets 2.8.7 is available on an other way for kubuntu ( I don't know that) look here (http://wiki.wxpython.org/InstallingOnUbuntuOrDebian) how to fetch them.

Or use one of the precompiled packages either from pasguis repo (http://lgp203.free.fr/spip/spip.php?article1) (Ubuntu packages) or from mine (see signature, should also work on [K]ubuntu).
Title: Re: building and installing on kubuntu from SVN
Post by: steve1_rm on April 19, 2008, 11:44:39 am
Hello,

Thanks for your reply.

During building I got these errors:
~/codeblocks/trunk$ ./bootstrap dpkg-buildpackage
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
configure.in:77: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
configure.in:78: warning: macro `AM_PATH_WXCONFIG' not found in library
configure.in:9: installing `./missing'
configure.in:9: installing `./install-sh'
src/base/tinyxml/Makefile.am: installing `./depcomp'
configure.in:77: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:78: error: possibly undefined macro: AM_PATH_WXCONFIG

The version number I downloaded from the svn was 506,

Maybe I need more time to take a look at this.

Any advice would be helpfull.

Thanks
Title: Re: building and installing on kubuntu from SVN
Post by: Jenna on April 19, 2008, 12:00:47 pm
Have you installed wxWidgets dev-packages ?

EDIT:

you will also need "wx-common".
It seems the dev-packages do not depend on it, but the ".m4"-file defining the missing macros is part of it.
Title: Re: building and installing on kubuntu from SVN
Post by: pasgui on April 19, 2008, 12:59:45 pm
Hi,

You need to install : libwxgtk2.8-dev, wx-common.

Regards, pasgui
Title: Re: building and installing on kubuntu from SVN
Post by: steve1_rm on April 19, 2008, 08:16:15 pm
Hello,

Thanks for the replys.

I found this link which has 2 methods for installing codeblocks.

http://wjkirby.googlepages.com/buildingcode::blocksfromsvnonubuntu6.06

However, both of them failed.
Using "$sudo make install"
Seemed to install ok. However, when I click on codeblocks, it displays the hourglass for codeblocks. But after about 10 seconds nothing happens.

Using the second method didn't work either.
I seem to get this error message when I perform this step.

$ sudo dpkg -i codeblocks_1.0svn5006_i386.deb

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libcodeblocks0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libcodeblocks0 has no installation candidate

Many thanks for any support,

Steve
Title: Re: building and installing on kubuntu from SVN
Post by: Jenna on April 19, 2008, 08:50:47 pm
The codeblocks package depends on the libcodeblocks0-package.
You install from commandline and not from a repo, so dpkg does not know where to find libcodeblocks0.
You should run
Code
sudo dpkg-i codeblocks_1.0svn5006_i386.deb libcodeblocks0_1.0svn5006_i386.deb

And if you want to use some of the contrib-plugins and wxsmith you should also install the appropriate packages (codeblocks-contrib_1.0svn5006_i386.deb and libwxsmithlib0_1.0svn5006_i386.deb).

Code
sudo dpkg-i codeblocks_1.0svn5006_i386.deb libcodeblocks0_1.0svn5006_i386.deb codeblocks-contrib_1.0svn5006_i386.deb libwxsmithlib0_1.0svn5006_i386.deb
should do the job.
Title: Re: building and installing on kubuntu from SVN
Post by: steve1_rm on April 19, 2008, 09:42:12 pm
Hello Jen,

Thanks for the reply.

That worked great. I am now up and running with codeblocks.

Thanks,