Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: uenz on March 06, 2011, 09:35:18 pm

Title: Build CodeBlocks on OS X
Post by: uenz on March 06, 2011, 09:35:18 pm
Hi,

i am trying to build CodeBlocks on Snow Leopard according to the wiki artiklehttp://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X).
I was able to build the wxwidgets library an can compile the samplers.
Bootstrap and configure for codeblocks worked fine.

But make ends up with this error:
Code
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.4.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
Title: Re: Build CodeBlocks on OS X
Post by: oBFusCATed on March 06, 2011, 09:53:19 pm
Have you run ./bootstrap (you should be in the source directory)?
Title: Re: Build CodeBlocks on OS X
Post by: uenz on March 07, 2011, 09:16:48 pm
Yes,i did a
Code
ACLOCAL_FLAGS="-I /usr/share/aclocal" ./bootstrap
as mentioned in the wiki, which ended without an error.
Title: Re: Build CodeBlocks on OS X
Post by: sinoth on April 29, 2011, 07:40:22 am
I had this same problem.  The issue was that adding /usr/share/aclocal to ACLOCAL_FLAGS brings in some unwanted cruft.  Copy /usr/share/aclocal/wxwin.m4 to your Code::Blocks source directory and run bootstrap like this:

Code
ACLOCAL_FLAGS="-I ." ./bootstrap

Hopefully this will help someone out.