User forums > Help

CB startup problem on Mac OSX

<< < (2/3) > >>

Game_Ender:
You need to have doxygen installed.  If you have Darwin Ports installed you should just be able to type "port install doxygen" at the command line and it will be downloaded and compiled.  This will bring in a ton of dependencies so don't worry if it install a bunch of extra stuff first.

Also if there is something wrong with the wiki, just updated it.  Thats the point :).  Make sure to include the versions of the autotools you used to build code::blocks.

afb:

--- Quote from: bnilsson on August 20, 2006, 09:30:49 pm ---Who will update the info on the wiki page?

--- End quote ---

I have updated the Mac information on the Wiki page now.
The shell script workaround will not be in the final version.

"MacOS/CodeBlocks" should be the real application/exe, the stuff in
"lib" should go in Frameworks and "share/codeblocks" into Resources.

(this assumes converting wx and codeblocks to frameworks, and
teaching the main program to understand Mac args and bundling)

bnilsson:
Hi!

Platform: Dual 2.3 GHz PowerMac G5, OSX10.4.7, 1GB DDR RAM, XCode Toolkit 2.4

I am sorry to say, but the instructions on the wiki page did not work for me.

I installed autoconf-1.7, but skipped the section "Universal binaries" since I did not understand in which context it was supposed to be applied.

I followed your list of actions exactly:

[Tiger:OpenSource/CBtest/trunk] bnilsson% ./update_revision.sh
[Tiger:OpenSource/CBtest/trunk] bnilsson% glibtoolize --force --copy
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
[Tiger:OpenSource/CBtest/trunk] bnilsson% cat /usr/share/aclocal/libtool.m4 >> aclocal.m4
[Tiger:OpenSource/CBtest/trunk] bnilsson% autoheader
[Tiger:OpenSource/CBtest/trunk] bnilsson% automake-1.7 --include-deps --add-missing --foreign --copy
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
src/plugins/Makefile.am:1: BUILD_ASTYLE does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:5: BUILD_AUTOSAVE does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:9: BUILD_CLASSWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:13: BUILD_CODECOMPLETION does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:17: BUILD_COMPILER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:21: BUILD_DEBUGGER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:25: BUILD_MIMEHANDLER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:29: BUILD_SCRIPTEDWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:33: BUILD_TODO does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:37: BUILD_MANIFEST does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:41: BUILD_CONTRIB does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.7/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
...
... and many more similar error messages. I can send you the complete list if you wish.
I did not continue from there.


On the other hand, what DOES work for me is to modify and use the supplied "bootstrap" file, referring to the autotools installed by DarwinPorts by explicit calls to /opt/local/bin/aclocal, /opt/local/bin/glibtoolize, etc. instead of the default ones, as I diecribed before.
bootstrap gives only some warnings:

[Tiger:OpenSource/CodeBlocks/trunk] bnilsson% ./bootstrap
/opt/local/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/opt/local/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS
/opt/local/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
/opt/local/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD
/opt/local/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/opt/local/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/opt/local/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE

./configure then runs without problems.
Actually, I found it convenient to specify installation directly into the bundle:
./configure --prefix=$HOME/CodeBlocks.app/Contents
make and make install works without problems.

The wiki instructions on how to complete the bundle is now perfecly ok, thanks.


afb:

--- Quote from: bnilsson on August 27, 2006, 06:29:08 pm ---I followed your list of actions exactly:

--- End quote ---

There seemed to be a call to "aclocal-1.7" missing from that list, to create aclocal.m4 ?
(which is probably why it worked better for the bootstrap script - that should be fixed...)


--- Quote ---Actually, I found it convenient to specify installation directly into the bundle:
./configure --prefix=$HOME/CodeBlocks.app/Contents

--- End quote ---

Only problem here being that your $HOME ain't the same as my $HOME :-)
Xcode has a life-long problem with wanting to link to /Users/afb absolute...


--- Quote ---The wiki instructions on how to complete the bundle is now perfecly ok, thanks.

--- End quote ---

I modified them a bit to clear things up, should make a Portfile for C::B too.

port install codeblocks

Pecan:

--- Quote ---configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
--- End quote ---

A user in the past stated that he solved this problem by completly removing the old autotools from his system before doing the update.

I have not tried this though. I spent many days trying to get autotools to work, and failing, I just don't use them anymore.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version