Author Topic: Build CodeBlocks on OS X  (Read 5137 times)

Offline uenz

  • Multiple posting newcomer
  • *
  • Posts: 14
Build CodeBlocks on OS X
« 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.
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Build CodeBlocks on OS X
« Reply #1 on: March 06, 2011, 09:53:19 pm »
Have you run ./bootstrap (you should be in the source directory)?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline uenz

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Build CodeBlocks on OS X
« Reply #2 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.

Offline sinoth

  • Single posting newcomer
  • *
  • Posts: 5
Re: Build CodeBlocks on OS X
« Reply #3 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.