User forums > General (but related to Code::Blocks)

Difficulties building from SVN source or Ubuntu repository

(1/4) > >>

resander:
I am on Ubuntu 8.10 using the synaptic release of Codeblocks 8.02 and would want to get newer version from svn or binary Ubuntu builds from Jens. I have not got very far.

For svn issued today 29 Dec 2008:
svn://svn.berlios.de/codeblocks/trunk
which caused many files to copied to a directory trunk in my home directory.

Then issued ./bootstrap from the trunk directory and got this:
ken@ken-desktop:~/trunk$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize:   `/usr/share/aclocal/libtool.m4'
libtoolize:   `/usr/share/aclocal/ltoptions.m4'
libtoolize:   `/usr/share/aclocal/ltversion.m4'
libtoolize:   `/usr/share/aclocal/ltsugar.m4'
libtoolize:   `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
./bootstrap: 67: aclocal: not found
ken@ken-desktop:~/trunk$ ./configure --enable-contrib
bash: ./configure: No such file or directory

It seemed to have failed in ./bootstrap and/so the .configure command did not work. I don't know enough to figure out what is wrong.
 
Trying to get Jens Ubuntu build:
I added the follwoing to /etc/apt/sources.list :
 
 deb http://apt.jenslody.de/ any main
 deb-src http://apt.jenslody.de/ any main

Then issued apt udpate and got eorrors about lack of authentication.

I read I should add a public-key to apt's trustdb by installing the package jens-lody-debian-keyring, but don't know how to do that. Checked with Google, but to no avail.

I am stuck and would be appreciate advice.

Jenna:

--- Code: ---apt-get install jens-lody-debian-keyring
--- End code ---

You will be warned, because of missing authentication, but you should allow installation anyway.

To use the svn sources you also need to have autoconf and automake installed.

EDIT:
To use "my" sources you also need either autoconf and automake or an installed C::B.

resander:
Many thanks Jens.

Ubuntu install of svn=5344 now works.


However, I could not make the svn build work.
On issuing ./bootstrap there were two lines with warnings in the middle of log output:

ken@ken-desktop:~/trunk$ ./bootstrap
.....
configure.in:77: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
configure.in:78: warning: macro `AM_PATH_WXCONFIG' not found in library
....


and when running ./configure the same two symbols appeared again:
ken@ken-desktop:~/trunk$ ./configure --enable-contrib
...
checking if the compiler supports precompiled headers... yes
./configure: line 20080: AM_OPTIONS_WXCONFIG: command not found
./configure: line 20081: syntax error near unexpected token `2.8.0,'
./configure: line 20081: `AM_PATH_WXCONFIG(2.8.0, wxWin=1)'

and/so makefile was not found:

ken@ken-desktop:~/trunk$ make
make: *** No targets specified and no makefile found. Stop.

How do I handle this?

Jenna:
You also need to install libwxgtk2.8-dev and wx-common.

EDIT:
By the way: the correct syntax to enable all contrib-plugins is:

--- Code: ---./configure --with-contrib-plugins=all
--- End code ---

use
--- Code: ---./configure --help
--- End code ---
to see all options

resander:
I installed libwxgtk2.8-dev and wx-common and this time ./bootstrap ran ok.

./configure seemed a lot better too, but produced the following before stopping:
ken@ken-desktop:~/trunk$ ./configure --enable-contrib
....
a lot of info
....
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0... yes (version 2.8.9)
checking for wxWidgets static library... no
checking for wxWidgets platform... wxGTK
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK2... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found

and after ./configure stopping like this, the make did not run.

Could not find gtk+-2... in synaptic and do not understand how it relates to wxWidgets that has version 2.8.9.

Navigation

[0] Message Index

[#] Next page

Go to full version