Author Topic: C::B working on Intel MAC OS X, but requires Makefile changes  (Read 20945 times)

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
C::B working on Intel MAC OS X, but requires Makefile changes
« on: August 08, 2006, 10:03:53 am »
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]

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #1 on: August 08, 2006, 04:00:18 pm »
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.

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #2 on: August 08, 2006, 05:09:56 pm »
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?

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #3 on: August 08, 2006, 05:33:27 pm »
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?
« Last Edit: August 08, 2006, 05:39:20 pm by Game_Ender »

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #4 on: August 08, 2006, 05:43:18 pm »
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

  • Guest
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #5 on: August 20, 2006, 02:51:11 am »
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.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #6 on: August 22, 2006, 12:41:58 am »
Oops, saw the infowindow patch in this topic too late.

I posted a similar (but simpler) workaround patch to:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=1376&group_id=5358

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #7 on: August 22, 2006, 09:41:41 am »
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!!

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #8 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.

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #9 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.

sethjackson

  • Guest
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #10 on: August 22, 2006, 06:21:05 pm »
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...... :?

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #11 on: August 23, 2006, 12:25:33 am »
AngelScript? Code::Blocks doesn't use that anymore...... :?

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

Wonder what else happened since last time ?



Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #12 on: August 23, 2006, 12:26:23 am »
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

« Last Edit: August 23, 2006, 12:28:42 am by afb »

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #13 on: August 23, 2006, 12:33:34 am »
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!

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: C::B working on Intel MAC OS X, but requires Makefile changes
« Reply #14 on: August 23, 2006, 12:49:33 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...