Author Topic: Trouble installing codeblocks via MacPorts  (Read 3422 times)

SimonDorfman

  • Guest
Trouble installing codeblocks via MacPorts
« on: October 11, 2007, 10:13:25 pm »
I followed the instructions here:
http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Mac_OS_X#Install_with_MacPorts

Code
sudo port install wxWidgets
worked fine.

but then I had some trouble:
Code
$ sudo port install codeblocks-devel +aqua
Password:
--->  Fetching codeblocks-devel
--->  Verifying checksum(s) for codeblocks-devel
--->  Extracting codeblocks-devel
--->  Configuring codeblocks-devel
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_codeblocks-devel/work/trunk" && ./bootstrap && ./configure --prefix=/opt/local --with-contrib-plugins=all " returned error 1
Command output: checking for vsnprintf... yes
checking for library containing gzopen... -lz
checking for library containing BZ2_bzopen... -lbz2
checking whether to enable debugging... no
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking which (if any) contrib plugins to build... all
checking if the compiler supports precompiled headers... yes
checking for pkg-config... yes
checking for pkg-config... /opt/local/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

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.


Error: Status 1 encountered during processing.

Any ideas?

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Trouble installing codeblocks via MacPorts
« Reply #1 on: October 12, 2007, 01:02:18 am »
That's a bug i've been telling the mac guy a few times but it never got fixed (i should have filed a bug report, i know!!)

Possibilities:
1) If you plan on installing GTK someday, do it now ;)
2) Build from source (not macports) and edit the configure file in order to remove the bit that checks for GTK
3) File that bug report i was always too lazy to: "Mac version of C::B checks for GTK during configure while it doesn't use it at all"
4) Use a binary download

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Trouble installing codeblocks via MacPorts
« Reply #2 on: October 13, 2007, 09:54:56 am »
Fixed in revision 4528, now checks GTK2 when using wxGTK.