Code::Blocks Forums

User forums => Help => Topic started by: tehybh on April 14, 2010, 05:54:53 pm

Title: instaling cb svn
Post by: tehybh on April 14, 2010, 05:54:53 pm
hello,

i'm using linux and trying to install svn. I typed svn checkout svn://svn.berlios.de/codeblocks/trunk and then ./trunk/bootstrap
the result is
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
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.
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: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

what should i do?
Title: Re: instaling cb svn
Post by: oBFusCATed on April 14, 2010, 06:05:42 pm
./trunk/bootstrap
or
cd trunk
./bootstrap

If the latter, please specify the distro you're using.
Title: Re: instaling cb svn
Post by: tehybh on April 14, 2010, 06:30:26 pm
what ??
again, you mean?
Title: Re: instaling cb svn
Post by: oBFusCATed on April 14, 2010, 07:10:38 pm
I was asking what exact commands you have executed?

I think ./trunk/bootstrap is not going to work.
Title: Re: instaling cb svn
Post by: stahta01 on April 14, 2010, 07:21:58 pm
Quote
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"

From the directions
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

Note: You should verify wx-config works right.

Tim S.
Title: Re: instaling cb svn
Post by: Jenna on April 14, 2010, 08:39:04 pm
Make sure you have wxWidgets development packages installed.
How they are called depends on your linux distribution.
Title: Re: instaling cb svn
Post by: tehybh on April 14, 2010, 11:50:34 pm
I have ubuntu.
I have libwxgtk2.8-dev, is that enough ?
Title: Re: instaling cb svn
Post by: Jenna on April 15, 2010, 12:22:51 am
I have ubuntu.
I have libwxgtk2.8-dev, is that enough ?
You need to install wx-common also, to have wx-config and the needed automake macros.
Title: Re: instaling cb svn
Post by: tehybh on April 15, 2010, 05:43:29 am
okay, I did it and now bootstrap ended, though some warnings appeared :
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
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.

I then typed ./configure. The last lines of the output were :
checking for GTK2... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK2_CFLAGS
and GTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

What now ?
Title: Re: instaling cb svn
Post by: MortenMacFly on April 15, 2010, 06:51:47 am
What now ?
Are you kidding?

checking for GTK2... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:
No package 'gtk+-2.0' found
What about simply installing this dependency?
Title: Re: instaling cb svn
Post by: Jenna on April 15, 2010, 08:00:19 am
And don't forget, if a configure-script asks you to install a package, you normally need the development pacakages, not just the binaries .
Title: Re: instaling cb svn
Post by: tehybh on April 16, 2010, 04:44:22 am
Well I'm new to linux so forgive me for asking what to do.
I typed sudo apt-cache search gtk+-2.0 and this gave no results. I don't really know what to do. Can you tell me exactly what to type in please ?
Title: Re: instaling cb svn
Post by: Jenna on April 16, 2010, 07:11:10 am
Why not using a package manager (I prefer synaptic) ?
That makes searching much easier.

You need libgtk2.0-dev and it's dependencies.

Be aware, that this is not a linux forum, "just" a C::B forum.

We can not know the names of all needed packages on each and any distro, you should learn to search and find answers yourself.
A search with google would also lead you to the correct package-name ( http://www.google.com/search?q=gtk%2B-2.0+ubuntu (http://www.google.com/search?q=gtk%2B-2.0+ubuntu) ).