Is there any place to put it ? (and how I made it)
Don't have the disk space and bandwidth myself.
Just a question: it's an Universal binary?
I think you can be the official mantainer for MacOS X port, as there's a lack of Apples. :P
And the specific bugs with MacOS X could be assigned to you, if you want.
I'm happy to help, but don't have the time to be an official maintainer. Thanks :)
6.7M CodeBlocks-2040.zip
Is there any place to put it ? (and how I made it)
Don't have the disk space and bandwidth myself.
Uploaded it as:
codeblocks-rev2040_macppc.zip
Users will need to have the Xcode Tools installed, to get GCC and Make and so on...
But those come with the system and as a free download so it shouldn't be a problem.
Or do I need an account created for me by the adminstrators first ?
Read this!!
In the wiki "Compiling Code::Blocks in Mac OS X" it states
that the user has to install Xcode Tools from http://developer.apple.com/tools/.
Yet I can find no xtools to download that will run on any system other than
OS X 10.4. It states that Xtools 2.2 will run on no earlier OS X system. And,
evidently, apple has hidden any earlier versions of the tools.
Apple pulled all the old links in order to promote Mac OS X 10.4, but all the
old developer tools can be downloaded from ADC at http://connect.apple.com/
You need a (free) developer registration with Apple first, in order to log in there.
For Mac OS X 10.3, you want Xcode 1.5. For Mac OS X 10.1-10.2, latest Dev Tools.
I did made a Mac OS version also. But since I made a full package including many things (basicaly many things not needed) It it too big to distribute right now. But it is the last svn source and has not many visual bugs that I could find. The only major problem is the debugger witch isn´t working yet.
Code blocks running smooth in MacOS :-)
#ifdef __WXMSW__
m_BreakOnEntry = false;
m_ManualBreakOnEntry = false;
// start the process
QueueCommand(new DebuggerCmd(this, _T("run")));
#else
m_BreakOnEntry = breakOnEntry;
m_ManualBreakOnEntry = true;
// start the process
QueueCommand(new DebuggerCmd(this, _T("start")));
#endif
#ifdef __WXMSW__
m_BreakOnEntry = false;
m_ManualBreakOnEntry = false;
// start the process
QueueCommand(new DebuggerCmd(this, _T("run")));
#else
#ifdef __WXMAC__
m_BreakOnEntry = false;
m_ManualBreakOnEntry = false;
// start the process
QueueCommand(new DebuggerCmd(this, _T("run")));
#else
m_BreakOnEntry = breakOnEntry;
m_ManualBreakOnEntry = true;
// start the process
QueueCommand(new DebuggerCmd(this, _T("start")));
#endif
#endif
#if defined (__WXMSW__) || defined (__WXMAC__)
m_BreakOnEntry = false;
m_ManualBreakOnEntry = false;
// start the process
QueueCommand(new DebuggerCmd(this, _T("run")));
#else
m_BreakOnEntry = breakOnEntry;
m_ManualBreakOnEntry = true;
// start the process
QueueCommand(new DebuggerCmd(this, _T("start")));
#endif
Bascialy what you need is this change in src/plugins/debuggergdb/gdb_driver.cpp
Well I had lot´s of problems to make autoconf and automake works right. But wat I did was basicaly folow what is described on this link and use wxwidgets 2.6.3.
iMacG3:~/devel/mac/trunk pecan$ glibtoolize --force --copy && aclocal-1.7 && autoheader && automake-1.7 --include-deps --add-missing --foreigh --copy && autoconf
You should update your `aclocal.m4' by running aclocal.
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
iMacG3:~/devel/mac/trunk pecan$ cp aclocal.m4.all aclocal.m4
iMacG3:~/devel/mac/trunk pecan$ glibtoolize --force --copy && aclocal-1.7 && autoheader && automake-1.7 --include-deps --add-missing --foreigh --copy && autoconf
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
iMacG3:~/devel/mac/trunk pecan$
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
# autoheader --version
autoheader (GNU Autoconf) 2.57
Written by Roland McGrath and Akim Demaille.
Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Quoteautoheader: error: AC_CONFIG_HEADERS not found in configure.in
I couldn't duplicate that error here, on my Mac OS X (10.3)
Sorry.
iMacG3:/volumes/seagate/mac/trunk pecan$ cp ~/devel/mac/temp/aclocal.m4.all aclocal.m4
iMacG3:/volumes/seagate/mac/trunk pecan$ glibtoolize --version
libtoolize (GNU libtool) 1.5
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
iMacG3:/volumes/seagate/mac/trunk pecan$ autoheader --version
autoheader (GNU Autoconf) 2.57
Written by Roland McGrath and Akim Demaille.
Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
iMacG3:/volumes/seagate/mac/trunk pecan$ autoconf --version
autoconf (GNU Autoconf) 2.57
Written by David J. MacKenzie and Akim Demaille.
Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
iMacG3:/volumes/seagate/mac/trunk pecan$ glibtoolize --force --copy
iMacG3:/volumes/seagate/mac/trunk pecan$ aclocal-1.7
iMacG3:/volumes/seagate/mac/trunk pecan$ autoheader
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
iMacG3:/volumes/seagate/mac/trunk pecan$
Where on the tree are you executeing these commands. I'm sitting in the trunk folder.Yup, same here (rev 2380 now)
Here is the line from the current configure.in file in CodeBlocks ../trunkNah, it should be created later:
AC_CONFIG_HEADER([src/sdk/config.h])
There is no such file as src/sdk/config.h . Could that be causing the problem?
What version is your glibtoolize?
Your are requesting file: /codeblocks/codeblocks-rev2040_macppc.zip
File Doesn't Exist
I still have the old binary kicking around, if you want it emailed/uploaded to you ?
Send me a message if so, where to... (6.7M codeblocks-rev2040_macppc.zip)
...
I'm not sure you can use it for compiling (?),
but I uploaded the file to SourceForge instead:
http://wxd.sf.net/codeblocks-rev2040_macppc.zip
This is not a permanent location for it, though,
hope BerliOS is working for the next C::B build.
HTH,
--anders
Compiling: sdk/wxscintilla/src/scintilla/src/StyleContext.cxx\
Compiling: sdk/wxscintilla/src/scintilla/src/UniConversion.cxx\
Compiling: sdk/wxscintilla/src/scintilla/src/ViewStyle.cxx\
Compiling: sdk/wxscintilla/src/scintilla/src/WindowAccessor.cxx\
Compiling: sdk/wxscintilla/src/scintilla/src/XPM.cxx\
Compiling: sdk/wxscintilla/src/PlatWX.cpp\
Linking dynamic library: devel/libwxscintilla.so\
g++: unrecognized option `-shared'\
ld: Undefined symbols:\
I cannot find "-shared" in the .cbp
Wherever it is, I think I should change it to "-dynamic".
Can anyone tell me where this flag is comming from.
I cannot find "-shared" in the .cbp
Wherever it is, I think I should change it to "-dynamic".
I cannot find "-shared" in the .cbp
Wherever it is, I think I should change it to "-dynamic".
For doing plugins, the flag to use is: -bundle
-dynamic is used for .dylib (shared libraries)
On Linux, both of these are using a .so suffix.
scintilla ends up being a .dll on windows, so I assumed it needed -dynamic on the MAC.
Is -dynamic correct for wxscintilla ?
scintilla ends up being a .dll on windows, so I assumed it needed -dynamic on the MAC.
Is -dynamic correct for wxscintilla ?
Sorry for being so confused, -dynamic is correct for libwxscintilla.dylib
-bundle is used for the plugins of C::B, share/codeblocks/plugins
Yiannis, how can we put (in the .cbp) -dynamic for core/sdk and -bundle for plugins/contribs ?
g++ -dynamic -Lsdk/tinyxml -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .
objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/A
utoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscin
tilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/Con
tractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxs
cintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintill
a/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk
/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/s
rc/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscint
illa/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.
o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/sci
ntilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsm.o .objs/sdk/w
xscintilla/src/scintilla/src/LexAsn1.o .objs/sdk/wxscintilla/sr\
ld: Undefined symbols:\
_main\
Process terminated with status 1 (12 minutes, 37 seconds)\
$linker -dynamic $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libslibtooll
-------------- Build: AutoRevision in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: tinyXML in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: AngelScript in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks - Unix ---------------
libtool -dynamic -Lsdk/tinyxml -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/AutoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscintilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/ContractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxscintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintilla/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/src/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscintilla/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/scintilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsm.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsn1.o .objs/sdk/wxscintill
libtool: can't open file: libtooll (No such file or directory)
Process terminated with status 1 (0 minutes, 3 seconds)
0 errors, 0 warnings
-------------- Build: AutoRevision in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: tinyXML in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: AngelScript in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks - Unix ---------------
libtool -dynamic -Lsdk/tinyxml -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/AutoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscintilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/ContractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxscintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintilla/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/src/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscintilla/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/scintilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsm.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsn1.o .objs/sdk/wxscintill
libtool: internal link edit command failed
ld: for architecture ppc
ld: Undefined symbols:
__Unwind_Resume
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZdaPv
__ZdlPv
__Znam
__Znwm
___gxx_personality_v0
___cxa_pure_virtual
__ZTVN10__cxxabiv121__vmi_class_type_infoE
Process terminated with status 1 (0 minutes, 46 seconds)
0 errors, 0 warnings
There is an advanced linker option for making dynamic libs in CodeBlocks:Code$linker -dynamic $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libslibtooll
-------------- Build: AutoRevision in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: tinyXML in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: AngelScript in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks - Unix ---------------
libtool -dynamic -Lsdk/tinyxml -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/AutoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscintilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/ContractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxscintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintilla/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/src/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscintilla/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/scintilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsm.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsn1.o .objs/sdk/wxscintill
libtool: internal link edit command failed
ld: for architecture ppc
ld: Undefined symbols:
__Unwind_Resume
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZdaPv
__ZdlPv
__Znam
__Znwm
___gxx_personality_v0
___cxa_pure_virtual
__ZTVN10__cxxabiv121__vmi_class_type_infoE
Process terminated with status 1 (0 minutes, 45 seconds)
0 errors, 0 warnings
libtool -dynamic -Lsdk/tinyxml -L/usr/lib -L/usr/local/lib -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin/default -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/AutoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscintilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/ContractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxscintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintilla/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/src/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscintilla/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/scintilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla
Process terminated with status 0 (7 minutes, 47 seconds)
0 errors, 0 warnings
<Target title="scintilla">
<Option output="devel/libwxscintilla.so" />
<Option working_dir="devel" />
<Option type="3" />
<Option compiler="gcc" />
<Option includeInTargetAll="1" />
<Compiler>
<Add option="-DSCI_LEXER" />
<Add option="-DLINK_LEXERS" />
<Add option="-DGTK" />
<Add directory="sdk/wxscintilla/include" />
<Add directory="sdk/wxscintilla/src/scintilla/include" />
<Add directory="sdk/wxscintilla/src/scintilla/src" />
</Compiler>
<ResourceCompiler>
<Add directory="sdk/wxscintilla/include" />
</ResourceCompiler>
<Linker>
<Add option="`wx-config --libs`" />
<!--Add library="addhere" /-->
<Add library="/usr/lib/libSystem.B.dylib" />
<Add library="/usr/lib/libSystem.dylib" />
<Add library="/usr/lib/gcc/darwin/3.3/libstdc++.a" />
<Add library="/usr/lib/gcc/darwin/3.3/libgcc.a" />
<!--Add library="/usr/local/lib/libwx_mac-2.6.0.dylib" /-->
<Add directory="/usr/lib" />
<Add directory="/usr/local/lib" />
<Add directory="/usr/lib/gcc/darwin/3.3" />
<Add directory="/usr/lib/gcc/darwin/default" />
</Linker>
</Target>
<Unit filename="sdk\filegroupsandmasks.h">
<Option compilerVar="" />
<Option compile="0" />
<Option link="0" />
<Option target="sdk" />
</Unit>
<Unit filename="sdk\finddlg.cpp">
<Option compilerVar="CPP" />
<Option target="sdk" />
</Unit>
<Unit filename="sdk\finddlg.h">
<Option compilerVar="" />
<Option compile="0" />
<Option link="0" />
<Option target="sdk" />
<Linker>
...
<!-- Additional libs and dirs for mcCodeBlocks -->
<Add library="/usr/lib/libSystem.B.dylib" />
<Add library="/usr/lib/libSystem.dylib" />
<Add library="/usr/lib/gcc/darwin/3.3/libstdc++.a" />
<Add library="/usr/lib/gcc/darwin/3.3/libgcc.a" />
<Add directory="/usr/lib" />
<Add directory="/usr/local/lib" />
<Add directory="/usr/lib/gcc/darwin/3.3" />
<Add directory="/usr/lib/gcc/darwin/default" />
</Linker>
-------------- Build: sdk in Code::Blocks - Unix ---------------
Running target pre-build steps
tools/autorevision/auto_revision +wx +int +t . sdk/autorevision.h
libtool -dynamic -Lsdk/tinyxml -Ldevel -Lsdk/as -Lsdk/propgrid -Lsdk/wxFlatNotebook -L/usr/lib -L/usr/local/lib -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin/default -L/usr/lib .objs/sdk/xtra_res.o .objs/sdk/as/bindings/const_bindings.o .objs/sdk/as/bindings/sc_io.o .objs/sdk/as/bindings/sc_wxarraystring.o .objs/sdk/as/bindings/sc_wxstring.o .objs/sdk/as/bindings/scriptbindings.o .objs/sdk/autodetectcompilers.o .objs/sdk/base64.o .objs/sdk/blockallocated.o .objs/sdk/cbeditor.o .objs/sdk/cbeditorprintout.o .objs/sdk/cbexception.o .objs/sdk/cbplugin.o .objs/sdk/cbproject.o .objs/sdk/cbthreadpool.o .objs/sdk/cbworkspace.o .objs/sdk/compileoptionsbase.o .objs/sdk/compiler.o .objs/sdk/compilercommandgenerator.o .objs/sdk/compilerfactory.o .objs/sdk/compileroptions.o .objs/sdk/compiletargetbase.o .objs/sdk/configmanager-revision.o .objs/sdk/configmanager.o .objs/sdk/configurationpanel.o .objs/sdk/configuretoolsdlg.o .objs/sdk/confirmreplacedlg.o .objs/sdk/crc32.o .objs/sdk/devcpploader.o .objs/sdk/editarrayfile
Process terminated with status 0 (5 minutes, 42 seconds)
0 errors, 0 warnings
Finally, a macCodeBlocks thats usable.
It has problems with AngelScript, and I haven't tried the contribs yet.
I still don't know if I've picked the correct libs. But this is what worked. I'd appreciate any Mac types comment on the lib lists. Would you compare it to your make file. Maybe even upload your make file... :lol: :lol:
LDFLAGS = `wx-config --libs` -lstdc++ `test -r /usr/lib/libcc_dynamic.a && echo -lcc_dynamic`
While compiling the sdk for "MacCodeBlocks", finddlg.cpp got a bunch of errors because it couldn't see the header files.
I defined "#undef CB_PRECOMP" ahead of the #ifdef CB_PRECOMP and it compiled nicely.
...
Why is this happening. Is there anything I can do about it. I'd like to get that #undef out of there.
#ifdef __GNUC__
#if ( (__GNUC__ < 3) || ( (__GNUC__ == 3) && (__GNUC_MINOR__ < 4) ) )
#undef CB_PRECOMP
#endif
#endif
* $Id$
* $HeadURL$
*/
#include "sdk_precomp.h"
#if CB_PRECOMP
#include "sdk.h"
#else
#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)
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)
#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)
Looks great, I'm trying to build with SVN and wxWidgets 2.6.3, then send to you.
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.
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.
I should be able to do a seperate PPC binary build though.
...
I'm going to use lipo to stick all the bits together.
Since the hack of a package causes Mac OS X not to recongize it's a Rosetta binary, it fails to laucnh all together.
I should be able to do a seperate PPC binary build though.
...
I'm going to use lipo to stick all the bits together.
When autotools are involved, it is usually easier to do two separate builds.
One for target "powerpc-apple-darwin8", and one for "i686-apple-darwin8".
This is also half the size of what a Universal Binary is, but if that is required
one can use lipo to combine the binaries (programs and libraries) at the end ?
There is actually a long set of compiler flags you can pass to do it one pass,
Q: Do we want one PPC build and one X86 build, or a Universal Binary ?
Q: Do we want one PPC build and one X86 build, or a Universal Binary ?
I vote separate pkgs. Faster downloading and install. For us older imacgx users, the Universal is just extra weight.
And the macNtel users most likely will not use the ppc.
Seperate packages mean double the work for packing.
Seperate packages mean double the work for packing.
What kind of packaging did you have in mind, for Code::Blocks ?
By the way it has yet many bugs, have i to report them?
It also seems all these build headaches could be fixed if one of us just broke down and made an xcode project. There will be more maintenance overhead but in the end I think it would be very cool if would could put together a Universal CodeBlocks.app for Mac users. Although, I do hope the autotools can be made to place nice, less maintenance is always better.
http://www.gamedev.net/community/forums/topic.asp?topic_id=321624
Why can't we convert function in that way? So it works for win and mac!
I posted some thoughts in this AngelScript thread:
http://www.gamedev.net/community/forums/topic.asp?topic_id=371730
But I haven't gotten it to actually work for PowerPC yet,
just the same "basic" ones as AS_MAX_PORTABILITY gives
So... if you're porting AS to ppc, I'll back off and do something else useful.
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)
OK ?
+
+#include "sdk_precomp.h"
+
what did you decide to do here for precomp headers.
I cannot link McCodeBlocks SVN 2438 because it needs something called CompilerGDB::CompilerGDB().
If it says "CompilerGDC", then please add that...
http://gdcmac.sourceforge.net/
#!/ bin/sh
# ^remove this space(and this comment)
APP_DIR=/Users/pecan/devel/mac/trunk/src/devel/
export LD_LIBRARY_PATH=$APP_DIR:$LD_LIBRARY_PATH
LIB=$APP_DIR
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$LIB
export DYLD_LIBRARY_PATH
#--exec $APP_DIR/codeblocks --prefix=$DIR
echo DIR=$APP_DIR
echo LIB=$LIB
echo DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
echo command line =exec $APP_DIR/codeblocks --prefix="$APP_DIR"
exec $APP_DIR/codeblocks --prefix="$APP_DIR"
For anyone who would like to compile mcCodeBlocks with a cbp, here is the alpha patch containing the patches provided by afb and pecan.
Find attached macdiff.zip
It seems like all these patches (except the new project) are regressions of previously reported bugs like the "propgrid" bug or the AngelScript "malloc.h" bug. So they'll need to be reopened or reported again, I suppose. (AngelScript is of course still awating a "final solution"...)
I can be blind as a bat sometimes, but I cannot find any of your patches on berlios. Maybe they're on another svn tree...??
Every time I svn update, I have to re-apply your patches. So I don't think they are "regressed". They just arn't there.
Could I have permission to test (against windows and linux) your mac patches and submit them to berlios.
It's possible that they were on SourceForge, before the move...
Does anyone know of a GDB 6.3 for MAC Panther (10.3).
The current gdb 5.3-20030128 (apple version gdb-330.1) does not appear to work with CodeBlocks.
Apple versions, for Mac OS X 10.4.x "Tiger":
New versions: (Xcode Tools 2.1-2.2)
* gcc-???? (based on GCC 4.0.1)
* gdb-???? (based on GDB 6.3)
Note: Xcode 2.0-2.1 use GCC 4.0 and are very buggy in general. Upgrade to Xcode 2.2 or 2.2.1 or later!
What seems to be the problem with GDB 5.3, by the way ?
(it might be possible to build a FSF version of GDB 6.3 for Mac OS X 10.3, just as you might succeed building a FSF version of GCC 4.0 - but it is not supported by Apple)
gcc -c -g -O2 -DTARGET_POWERPC -I./macosx -I./macosx -DWITH_CFM=1 -DUSE_PTHREADS =1 -Wall -Wimplicit -Wno-long-double -I. -I. -I./config -DLOCALEDIR="\"/usr/loc al/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I.. /bfd -I./../bfd -I./../include -I./../mmalloc -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -I/usr/include/libxml2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -W format -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse d-label -Wunused-function ./macosx/ppc-macosx-nat-exec.c
gcc -c -g -O2 -DTARGET_POWERPC -I./macosx -I./macosx -DWITH_CFM=1 -DUSE_PTHREADS =1 -Wall -Wimplicit -Wno-long-double -I. -I. -I./config -DLOCALEDIR="\"/usr/loc al/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I.. /bfd -I./../bfd -I./../include -I./../mmalloc -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -I/usr/include/libxml2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -W format -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse d-label -Wunused-function ./macosx/macosx-nat-watchpoint.c
gcc -c -g -O2 -DTARGET_POWERPC -I./macosx -I./macosx -DWITH_CFM=1 -DUSE_PTHREADS =1 -Wall -Wimplicit -Wno-long-double -I. -I. -I./config -DLOCALEDIR="\"/usr/loc al/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I.. /bfd -I./../bfd -I./../include -I./../mmalloc -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -I/usr/include/libxml2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -W format -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse d-label -Wunused-function ./macosx/macosx-nat-dyld.c
In file included from macosx/macosx-nat-dyld.c:57:
macosx/macosx-nat-inferior-debug.h:21: error: parse error before "mach_vm_addres s_t"
macosx/macosx-nat-inferior-debug.h:22: error: parse error before "mach_vm_addres s_t"
macosx/macosx-nat-dyld.c: In function `dyld_starts_here_p':
macosx/macosx-nat-dyld.c:369: error: `MH_MAGIC_64' undeclared (first use in this function)
macosx/macosx-nat-dyld.c:369: error: (Each undeclared identifier is reported onl y once
macosx/macosx-nat-dyld.c:369: error: for each function it appears in.)
macosx/macosx-nat-dyld.c:369: error: `MH_CIGAM_64' undeclared (first use in this function)
macosx/macosx-nat-dyld.c: In function `macosx_dyld_init':
macosx/macosx-nat-dyld.c:613: error: `CPU_TYPE_POWERPC64' undeclared (first use in this function)
macosx/macosx-nat-dyld.c: In function `dyld_info_process_raw':
macosx/macosx-nat-dyld.c:1003: warning: unsigned int format, long unsigned int a rg (arg 3)
macosx/macosx-nat-dyld.c:1077: error: invalid application of `sizeof' to an inco mplete type
macosx/macosx-nat-dyld.c:1093: error: `LC_SEGMENT_64' undeclared (first use in t his function)
macosx/macosx-nat-dyld.c:1095: error: storage size of `segcmd' isn't known
macosx/macosx-nat-dyld.c:1097: error: invalid application of `sizeof' to an inco mplete type
macosx/macosx-nat-dyld.c:1095: warning: unused variable `segcmd'
macosx/macosx-nat-dyld.c:1151: warning: unsigned int format, long unsigned int a rg (arg 6)
macosx/macosx-nat-dyld.c: In function `info_sharedlibrary_raw_dyld_command':
macosx/macosx-nat-dyld.c:1979: warning: unused variable `task'
make[1]: *** [macosx-nat-dyld.o] Error 1
make: *** [all-gdb] Error 2
iMacG3:~/devel/mac/proj/gdb-434/src pecan$
gdb 6.3 (apple gdb-434) gets the following errors. I've no idea what the errs mean.
gdb 6.3 (apple gdb-434) gets the following errors. I've no idea what the errs mean.
As far as I can tell it says that you are missing support for PPC64 targets...
Of course I'm missing PPC64 support. I only have an imacg3.
Bad news. It appears that gdb 6.3 will not compile on Panther(10.3.9).
That means *no* integrated debugging with CodeBlocks.
That means I'm about to abandon the Panther ship. Buy some more memory and see If I can run Tiger on this imacg3.
Maybe it's a good time to see why gdb-5.x doesn't work with C::B?
Create a hello-world project, set a breakpoint somewhere and hit "Debug". Then send me (or post here) both the debugger's logs (i.e. "debugger's log" and "debugger's debug log").
image
----------------------------------------------------------------
http://img487.imageshack.us/img487/1548/graphic518200680235pm9cm.png
Debugger window
------------------------------------------------------------------
Building to ensure sources are up-to-date
Build succeeded
Selecting target: default
Adding source dir: /Volumes/Seagate/MAC/temp/minimal/
Adding source dir: /Volumes/Seagate/MAC/temp/minimal/
Adding file: minimal
Starting debugger: done
Invalid debugger script: 'gdb_types.script'
Setting breakpoints
Debugger name and version: GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Continuing...
Continuing...
Continuing...
Continuing...
Code::Blocks Debug window
----------------------------------------------------------------------
[19:22:51.467]: Initialize EditColorSet .....
[19:22:51.669]: Loading lexer_rc.xml
[19:22:51.730]: Loading lexer_python.xml
[19:22:51.785]: Loading lexer_prg.xml
[19:22:51.825]: Loading lexer_nsis.xml
[19:22:51.887]: Loading lexer_matlab.xml
[19:22:51.947]: Loading lexer_masm.xml
[19:22:52.000]: Loading lexer_lua.xml
[19:22:52.040]: Loading lexer_hitasm.xml
[19:22:52.087]: Loading lexer_gm.xml
[19:22:52.130]: Loading lexer_glsl.xml
[19:22:52.189]: Loading lexer_f77.xml
[19:22:52.240]: Loading lexer_diff.xml
[19:22:52.276]: Loading lexer_d.xml
[19:22:52.320]: Loading lexer_css.xml
[19:22:52.370]: Loading lexer_cpp.xml
[19:22:52.425]: Loading lexer_cg.xml
[19:22:52.493]: Loading lexer_batch.xml
[19:22:52.537]: Loading lexer_angelscript.xml
[19:22:52.590]: Loading lexer_OgreMaterial.xml
[19:22:52.651]: Loading lexer_OgreCompositor.xml
[19:22:52.701]: Loading lexer_xml.xml
[19:22:52.889]: Initialize EditColorSet: done.
[19:22:54.168]: Loading toolbar...
[19:22:56.254]: AStylePlugin: loaded
[19:22:56.810]: Wizard: loaded
[19:22:57.597]: PluginWizard: loaded
[19:22:58.389]: FilesExtensionHandler: loaded
[19:22:59.665]: Debugger: loaded
[19:23:01.153]: Added compiler "GNU GCC Compiler"
[19:23:01.191]: Added compiler "Intel C/C++ Compiler"
[19:23:01.286]: Added compiler "SDCC Compiler"
[19:23:01.315]: Added compiler "GNU GDC Compiler"
[19:23:01.354]: Compiler: loaded
[19:23:02.353]: Concurrent threads for pool set to 1
[19:23:03.636]: CodeCompletion: loaded
[19:23:04.596]: ClassWizard: loaded
[19:23:05.938]: ToDoList: loaded
[19:23:06.073]: Files extension handler plugin loaded
[19:23:11.483]: Debugger plugin loaded
[19:23:13.279]: Compiler plugin loaded
[19:23:14.927]: Loading workspace "/Users/pecan/.codeblocks/default.workspace"
[19:23:14.979]: File does not exist.
[19:23:15.015]: Initializing plugins...
[19:23:31.054]: Loading project file...
[19:23:31.119]: Parsing project file...
[19:23:31.177]: Loading target default
[19:23:31.217]: Loading project files...
[19:23:31.283]: 1 files loaded
[19:23:31.325]: Done loading project in 271ms
[19:23:31.368]: Project's base path: /Volumes/Seagate/MAC/temp/minimal/
[19:23:31.413]: Project's common toplevel path: /Volumes/Seagate/MAC/temp/minimal/
[19:23:31.880]: project data set for /Volumes/Seagate/MAC/temp/minimal/minimal.cpp
[19:23:31.976]: Top Editor: /Volumes/Seagate/MAC/temp/minimal/minimal.cpp
[19:24:28.130]: Removed minimal from all deps
[19:24:33.897]: Loading project file...
[19:24:33.947]: Parsing project file...
[19:24:34.033]: Loading target default
[19:24:34.082]: Loading project files...
[19:24:34.134]: 1 files loaded
[19:24:34.183]: Done loading project in 286ms
[19:24:34.237]: Project's base path: /Volumes/Seagate/MAC/temp/minimal/
[19:24:34.292]: Project's common toplevel path: /Volumes/Seagate/MAC/temp/minimal/
[19:24:34.628]: project data set for /Volumes/Seagate/MAC/temp/minimal/minimal.cpp
[19:24:34.734]: Top Editor: /Volumes/Seagate/MAC/temp/minimal/minimal.cpp
[19:24:57.016]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:24:57.534]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:24:57.621]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:24:57.699]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:25:16.592]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:25:16.671]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:25:16.740]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:25:16.841]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:26:04.782]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:26:04.884]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:26:05.011]: Scanned 0 files for #includes, cache used 1, cache updated 0
[19:26:05.104]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:26:05.191]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:26:05.279]: Scanned 0 files for #includes, cache used 0, cache updated 0
[19:26:05.369]: Scanned 0 files for #includes, cache used 0, cache updated 0
command line gdb 5.3
---------------------------------------------------------------------------
iMacG3:~/devel/mac/temp/minimal pecan$ ls
minimal minimal.cbp minimal.cpp minimal.depend minimal.layout
iMacG3:~/devel/mac/temp/minimal pecan$ gdb minimal
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries .. done
(gdb) l
1 #include <iostream>
2
3 int main()
4 {
5 int i = 0;
6 if (i==0) printf("Hello world");
7 std::cout << "Hello world!" << std::endl;
8 system("pause");
9 return 0;
10 }
(gdb) b 7
Breakpoint 1 at 0x2d84: file minimal.cpp, line 7.
(gdb) run
Starting program: /Volumes/Seagate/MAC/temp/minimal/minimal
Reading symbols for shared libraries . done
Breakpoint 1, main () at minimal.cpp:7
7 std::cout << "Hello world!" << std::endl;
(gdb) n
Hello worldHello world!
8 system("pause");
(gdb) n
sh: line 1: pause: command not found
9 return 0;
(gdb) n
10 }
(gdb) n
Program exited normally.
(gdb)
command line compiled (hacked) gdb 6.3 (apple gdb 434)
---------------------------------------------------------------
iMacG3:~/devel/mac/proj/gdb-434/src/gdb pecan$ ./gdb /users/pecan/devel/mac/temp/minimal/minimal
GNU gdb 2004-03-03-cvs (Thu May 18 21:10:29 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=powerpc-apple-darwin7.9.0 --target="...Reading symbols for shared libraries .. done
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Function "info_command" not defined.
.gdbinit:8: Error in sourced command file:
No breakpoint number 0.
(gdb) l
1 #include <iostream>
2
3 int main()
4 {
5 int i = 0;
6 if (i==0) printf("Hello world");
7 std::cout << "Hello world!" << std::endl;
8 system("pause");
9 return 0;
10 }
(gdb) b 7
Breakpoint 1 at 0x2d84: file minimal.cpp, line 7.
(gdb) run
Starting program: /volumes/Seagate/MAC/temp/minimal/minimal
Breakpoint 1, main () at minimal.cpp:7
7 std::cout << "Hello world!" << std::endl;
(gdb) n
Hello worldHello world!
8 system("pause");
(gdb) n
sh: line 1: pause: command not found
9 return 0;
(gdb) n
10 }
(gdb) n
Program exited normally.
(gdb) q
I don't know what else you may want/need. Just ask...
As written above, I want the debugger's debug log. Enable it with "Settings->Compiler and debugger->Debugger->Display debugger's log".
void GDB_driver::Start(bool breakOnEntry)
{
ResetCursor();
// under windows, 'start' segfaults with wx projects...
//-#ifdef __WXMSW__
#if defined(__WXMSW__) || defined(__WXMAC__)
m_BreakOnEntry = false;
m_ManualBreakOnEntry = false;
// start the process
QueueCommand(new DebuggerCmd(this, _T("run")));
#else
m_BreakOnEntry = breakOnEntry;
m_ManualBreakOnEntry = true;
// start the process
QueueCommand(new DebuggerCmd(this, _T("start")));
#endif
}
Command-line: /usr/bin/gdb -nx -fullname -args minimal
Working dir : /Volumes/Seagate/MAC/temp/minimal/
> set prompt >>>>>>cb_gdb:
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries .. done
(gdb) >>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
No symbol "breakpoint" in current context.
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set disassembly-flavor att
No symbol "disassembly" in current context.
>>>>>>cb_gdb:
> directory /Volumes/Seagate/MAC/temp/minimal/
>>>>>>cb_gdb:
> delete breakpoints
>>>>>>cb_gdb:
> break minimal.cpp:7
Breakpoint 1 at 0x2d80: file minimal.cpp, line 7.
>>>>>>cb_gdb:
> run
Reading symbols for shared libraries
. done
Breakpoint 1, main () at minimal.cpp:7
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:7:92:beg:0x2d80
>>>>>>cb_gdb:
> next
Hello world
Hello world!
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:8:135:beg:0x2da8
>>>>>>cb_gdb:
> next
sh: line 1: pause: command not found
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:9:157:beg:0x2db4
>>>>>>cb_gdb:
> next
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:10:169:beg:0x2db8
>>>>>>cb_gdb:
> cont
Program exited normally.
>>>>>>cb_gdb:
> quit
"As written above...". Is that some sort of nasty reply? If so, I don't believe I deserve it. I'm trying the best I know how.
GDB 5.3 is now working with CB OSX 10.3
mcCodeBlocks GDB needs a "run" not a "start". I'll include this in the patches I'm working on.
What's wrong with everyone these days? Why are you all so jumpy? :?: :|
g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -D__WXMAC__ -O0 -fno-fast-math -Isdk/wxscintilla/include -Isdk -Isdk/as/source -Isdk/as/include -Isdk/propgrid/include -Isdk/wxFlatNotebook -I/usr/include -Isdk -c sdk/cbthreadpool.cpp -o .objs/sdk/cbthreadpool.o
[address=45e533a4 pc=000e6b3c]
sdk/cbthreadpool.cpp: In member function `bool cbThreadPool::WaitingThread()':
sdk/cbthreadpool.cpp:151: internal compiler error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
Process terminated with status 1 (1 minutes, 19 seconds)
1 errors, 0 warnings
I can nolonger compile svn codeblocks on OS X 10.3.
threadpool.cpp crashes compiler gcc 3.3. I've tried -O0 and -fno-fast-math.
These flags do not seem to avoid the crash when CB is compiling CB itself.
Has anyone got any ideas?
If I had the proper autotools version could I compile SVN with wxWidgets 2.6.3 on OS X 10.4? I don't really have much time to play around on the mac I use at work, but if it compiled straight from SVN at least I could keep the CB project file up to date for my project.
I was trying to confirm that all the needed patches have made it into the the CB source.