Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: stahta01 on June 12, 2015, 03:22:24 am

Title: Old links on Mac OS X page.
Post by: stahta01 on June 12, 2015, 03:22:24 am
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Download_the_source_code_2 (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Download_the_source_code_2)

Many old stuff as in broken links and berlios.de URL usage.

Tim S.
Title: Re: Old links on Mac OS X page.
Post by: afb on June 20, 2015, 11:53:11 am
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Download_the_source_code_2 (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Download_the_source_code_2)

Many old stuff as in broken links and berlios.de URL usage.

It's a wiki, go edit it. ;-) But seriously, the berlios links and outdated instructions are only half of the problem...
The biggest issue is that wxWidgets on OS X is stuck between 2.8 (10.6/32-bit only) and 3.0 (10.9/64-bit only).

The workaround (for now), will be to run with wxGTK under XQuartz (http://xquartz.macosforge.org/).
Title: Re: Old links on Mac OS X page.
Post by: oBFusCATed on June 20, 2015, 12:59:04 pm
Why should we care about 32bit anymore?
Title: Re: Old links on Mac OS X page.
Post by: afb on June 20, 2015, 06:47:58 pm
Why should we care about 32bit anymore?

The problem is that the wxWidgets 2.8 GUI (wxMac) *only* works in 32-bit, due to Carbon.

So it needs to be updated to wxWidgets 3.0 (wxOSX) that also works in 64-bit, with Cocoa.
Title: Re: Old links on Mac OS X page.
Post by: afb on June 20, 2015, 07:02:44 pm
Seems that the timing for wxGTK wasn't all the best, as X11 GTK+ support was just removed in Homebrew:

https://github.com/Homebrew/homebrew/pull/39868

This means it (gtk+) cannot be used for wxGTK anymore. Otherwise it was a reasonable workaround for OS X:

https://github.com/afb/homebrew/commit/6bad8b5


So that only leaves wxWidgets 3.0 then, I suppose... I haven't checked how far away that is on trunk, though ?

Doing a custom build of X11 GTK+ just for Code::Blocks is possible of course, if one wants to continue that route.
Title: Re: Old links on Mac OS X page.
Post by: afb on June 21, 2015, 02:16:17 pm
Seems like wxWidgets 3.0.2 is working just fine, at least for a casual "Hello World" test...
Put both versions up for Homebrew, so that you can compare (but the wxGTK track is dead).

https://github.com/afb/homebrew/tree/codeblocks-gtk (wxGTK, X11)

Code
brew install codeblocks

https://github.com/afb/homebrew/tree/codeblocks-osx (wxOSX, Cocoa)

Code
brew install --HEAD codeblocks

I had to patch the plugin manager, it was trying to load *.dylib from share/codeblocks directory.
It *should* be loading *.so from lib/codeblocks/plugins dir, just like on any other UNIX really.