News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

C::B working on Intel MAC OS X, but requires Makefile changes

Started by Paco.Blasco, August 08, 2006, 10:03:53 AM

Previous topic - Next topic

Paco.Blasco

Hi all:

In order to compile C::B on Intel Macs, using native wx support (_WXMAC_), I did some changes:
- Patch the code for the problem with InfoWindow (attached file thanks to Pecan)
- Modify all plugins Makefiles changing the line "LDFLAGS="  by "LDFLAGS=`wx-config --libs`

I understand that the InfoWindow problem is due to limitations on wx, but I believe that (configure.in? Makefile.in?) must be changed in order to get a right link process.

Thx.


[attachment deleted by admin]

Game_Ender

If you have a set of steps that gets codeblocks compiling on Mac OS X with autotools, please post it on the wiki.  With the way things are going it looks like it might be possible to have some kind of preliminary Mac support in the next release.  I developing with wxWidgets on OS X is my day job, and could help working out the issues related to that platform but I don't have time to slog through autotools and get it compiling.

Paco.Blasco

Of course.
Once wxWidgets are compiled for mac, you can do next steps:
- Patch the code with the previous firmware
- Call bootstrap
- ./configure --enable-shared
- Add to LDLIBS "`wx-config --libs`"

I must to probe with LDFLAGS="`wx-config --libs`" ./configure

Is it enough?

Game_Ender

Where did you get the most up to date autotools versions?  Darwin ports?

EDIT: By firmware do you mean you have to downgrade the firmware you Mac, or do you mean apply the patch you have attached to your post above.  You apply the patch to the current SVN head correct?

Paco.Blasco

Yes. I used DarwinPorts. I have also Fink, but some command line tools are updated on DarwinPorts.
Also I've used the wxWidgets version of Darwinports to compile CodeBlocks.

Have you more information about DarwinPorts? Can be used?
My C::B for OSX don't compile any project and it have a lot of problems in order to manage projects.
I'm compiling the debig version in order to test the check the program.


skyjunky

I've managed to get it to build (revision 2879)
The linking problem can be fixed by:

Index: configure.in
===================================================================
--- configure.in        (revision 2879)
+++ configure.in        (working copy)
@@ -77,7 +77,7 @@
dnl            CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
dnl            CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
dnl            CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
-dnl            LIBS="$LIBS $WX_LIBS"
+LIBS="$LIBS $WX_LIBS"

AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)

I'm using autoconf 2.59 built from source.
glibtool 1.5.20 from darwin ports.
automake etc. 1.7.9 from source.
wxMac 2.6.3 built from source with --enable-unicode in addition to the other options in the build instructions.
gcc 4.01 (xcode 2.4 installed)

There are enough problems to make it unusable. The exception handlers do work well however.
If I find time I'll have a look at the code.

afb


Paco.Blasco

I've compiled it, and I have now a bundle application....that crashes too easily on my MBP.
We must to fix C::B on this platform.
Or we must to get a right build process, I don0t know.

Can anyone compile with C::B on Intel-Mac platform (x86 no PPC)?

Thx!!

afb

Not that it's stable here either, but it usually succeeds in building at least.
The main things missing are plugins (AngelScript) and double-clicking etc.

Paco.Blasco

Then I have problems. Is it possible to send me your app bundle (compressed)?
I can use it as a base to compile C::B with C::B.

sethjackson

Quote from: afb on August 22, 2006, 10:19:34 AM
Not that it's stable here either, but it usually succeeds in building at least.
The main things missing are plugins (AngelScript) and double-clicking etc.


AngelScript? Code::Blocks doesn't use that anymore...... :?

afb

Quote from: sethjackson on August 22, 2006, 06:21:05 PM
AngelScript? Code::Blocks doesn't use that anymore...... :?

Great. one less thing to worry about... :-)

Wonder what else happened since last time ?



afb

Quote from: Paco.Blasco on August 22, 2006, 12:20:05 PM
Then I have problems. Is it possible to send me your app bundle (compressed)?
I can use it as a base to compile C::B with C::B.

I have uploaded rev 2886 to BerliOS, was hoping to get it deployed ?

http://developer.berlios.de/project/showfiles.php?group_id=5358&release_id=9217


Paco.Blasco

Sorry, but I didn't find the link.
Is the PPC executable? Revision 2411?
Please, post the right link!!!!
I want to probe it!!!!!!!!

ARGHHHHHHHHHHHHHHHH!

afb

Quote from: Paco.Blasco on August 23, 2006, 12:33:34 AM
Please, post the right link!!!!
I want to probe it!!!!!!!!

I don't have release priviledges, so it's left in "incoming".
Will email you a temporary location in private, for now...