Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Mac Binaries
afb:
--- Quote from: killerbot on May 04, 2006, 10:10:37 am ---So something like this would be the template for including (usage in cpp files, don't use this in headers)
--- Code: ---#include "cb_precomp_determining_header_goes_here"
#ifdef CB_PRECOMP
#include "sdh.h" // precompiled header supported platform
#else
# include headers we need here and that are part of sdk.h (sdk_common.h)
#endif
# include headers we need here and that are NOT part of sdk.h (sdk_common.h)
--- End code ---
--- End quote ---
Okay, I hadn't noticed this change - only that it didn't compile...
Will use this instead then:
--- Code: ---#include "sdk_common.h"
#ifndef CB_PRECOMP
# include // headers we need here and that are part of sdk.h (sdk_common.h)
#endif
# include // headers we need here and that are NOT part of sdk.h (sdk_common.h)
--- End code ---
OK ?
afb:
Anyway, the important part for GCC 3.3 is that "sdk_common.h" is somehow included before any checks of CB_PRECOMP. I had assumed that the way to do this was to include "sdk_precomp.h", but it would probably be better to use a smaller file ?
Either way, the makefiles define CB_PRECOMP and sdk_common.h undefines it again...
This is why you get different results (i.e. compile failures in the end), depending on whether the original source included sdk_common.h (somehow), or if it didn't (before the #ifndef).
afb:
--- Quote ---Looks great, I'm trying to build with SVN and wxWidgets 2.6.3, then send to you.
--- End quote ---
With some patches, it built OK from SVN (rev 2411) and with wxWidgets 2.6.3
My screenshot is at http://www.algonet.se/~afb/wx/codeblocks.html#rev2411
(I used autotools to build it, while Pecan used Code::Blocks to build itself (!) )
Game_Ender:
If someone could post a guide on the wiki about how the autotools were installed/tweaked and how they installed/configured wxWidgets for Mac OS X, I would love to try a universal build on Tiger. I still think in the end it an xcode project file needs to be created or possibly a pluggin/upgrade for CB that lets you make application bundles and frameworks.
afb:
--- Quote from: Game_Ender on May 04, 2006, 07:48:42 pm ---If someone could post a guide on the wiki about how the autotools were installed/tweaked and how they installed/configured wxWidgets for Mac OS X, I would love to try a universal build on Tiger.
--- End quote ---
You can always build one for "powerpc" and one for "i686", and lipo them together at the end ?
I don't think building an Universal Binary will be a problem, the big obstacle now is AngelScript.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version