User forums > Help
building and installing on kubuntu from SVN
steve1_rm:
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,
Jenna:
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 how to fetch them.
Or use one of the precompiled packages either from pasguis repo (Ubuntu packages) or from mine (see signature, should also work on [K]ubuntu).
steve1_rm:
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
Jenna:
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.
pasgui:
Hi,
You need to install : libwxgtk2.8-dev, wx-common.
Regards, pasgui
Navigation
[0] Message Index
[#] Next page
Go to full version