User forums > Using Code::Blocks

Compiling on Mac OS X

<< < (7/13) > >>

grv575:
cool.  If it fails you can check:
http://sourceforge.net/mailarchive/message.php?msg_id=12014390
http://64.233.167.104/search?q=cache:5-CtyzHOu-wJ:lists.wxwidgets.org/archive/wxPython-mac/msg00438.html+%22section+difference+reference%22&hl=en&client=firefox-a

Does mac tiger support .a files, btw?  One thing I would try (if needed) is to build that libwxDockit.a file as a shared lib instead (.so) and also use -fPIC.

Based on googling, it looks like either an ABI issue (application binary interface - which varies from gcc version to version) or some CFLAGS flag that is missing and needed for the macos build to go.  So, re the ABI thing, it's best to compile wxWidgets yourself and then codeblocks because this guarantees that they both have the same ABI, since they were compiled with the same compiler version.  (e.g.
in a lot of cases you can't mix libraries or binaries from gcc 3.4 and gcc 3.3 or gcc 4.0 compiled code).

TheWizzard:
Ok,

I used fPIC and it failed, wxWidgets is self-built. I got plenty .a files in /usr/lib so I would say yes, os x supports them (and shared libs are .dynlib on os x, btw)

It's all compiled with gcc 3.3 (you can do gcc_select and choose between 3.3 and 4.0 on tiger) and I'll now try to recompile wx with the options listed on the wxPython-mac list.

TheWizzard:
w00t!

That worked. It now fails at astyle, I hope I can figure that out on my own.

*EDIT*

I can't. ;)


--- Quote ---__Z19wxGetTopLevelParentP8wxWindow
__ZN10wxFontBaseD2Ev
__ZN10wxSpinCtrl8SetValueEi
__ZN12wxDialogBase11RemoveChildEP12wxWindowBase
__ZN12wxDialogBase12OnChildFocusER17wxChildFocusEvent
__ZN12wxDialogBase14SetDefaultItemEP8wxWindow
__ZN12wxDialogBase17SetTmpDefaultItemEP8wxWindow
__ZN12wxDialogBase24SetFocusIgnoringChildrenEv
__ZN12wxDialogBase4InitEv
__ZN12wxDialogBase8SetFocusEv
__ZN12wxEvtHandler12ProcessEventER7wxEvent
__ZN12wxEvtHandler15DoSetClientDataEPv
__ZN12wxEvtHandler16SearchEventTableER12wxEventTableR7wxEvent
__ZN12wxEvtHandler17DoSetClientObjectEP12wxClientData
__ZN12wxStringBase4nposE
__ZN12wxStringBase8InitWithEPKcmm
__ZN12wxStringBaseaSEPKc
__ZN12wxStringBaseaSERKS_
__ZN12wxWindowBase10GetCaptureEv
__ZN12wxWindowBase10InitDialogEv
__ZN12wxWindowBase12LayoutPhase1EPi
__ZN12wxWindowBase12LayoutPhase2EPi
__ZN12wxWindowBase12SetValidatorERK11wxValidator
__ZN12wxWindowBase12TryValidatorER7wxEvent
__ZN12wxWindowBase14DoSetSizeHintsEiiiiii
__ZN12wxWindowBase14MoveConstraintEii
__ZN12wxWindowBase14UpdateWindowUIEl
__ZN12wxWindowBase16DoMoveInTabOrderEP8wxWindowNS_8MoveKindE
__ZN12wxWindowBase16DoSetVirtualSizeEii
__ZN12wxWindowBase17InheritAttributesEv
__ZN12wxWindowBase17SetSizeConstraintEiiii
__ZN12wxWindowBase18SetConstraintSizesEb
__ZN12wxWindowBase19SetVirtualSizeHintsEiiii
__ZN12wxWindowBase20TransferDataToWindowEv
__ZN12wxWindowBase22TransferDataFromWindowEv
__ZN12wxWindowBase25GetClassDefaultAttributesE15wxWindowVariant
__ZN12wxWindowBase3FitEv
__ZN12wxWindowBase6LayoutEv
__ZN12wxWindowBase7DoPhaseEi
__ZN12wxWindowBase8AddChildEPS_
__ZN12wxWindowBase8NavigateEi
__ZN12wxWindowBase8ReparentEPS_
__ZN12wxWindowBase8ValidateEv
__ZN12wxWindowBase9FindFocusEv
__ZN12wxWindowBase9FitInsideEv
__ZN12wxWindowBase9MakeModalEb
__ZN12wxWindowBase9TryParentER7wxEvent
__ZN13wxXmlResource10LoadDialogEP8wxDialogP8wxWindowRK8wxString
__ZN13wxXmlResource3GetEv
__ZN13wxXmlResource8GetXRCIDEPKc
__ZN16wxEventHashTableC1ERK12wxEventTable
__ZN16wxEventHashTableD1Ev
__ZN18wxControlContainerC1EP8wxWindow
__ZN19wxTopLevelWindowMac11MacActivateElb
__ZN19wxTopLevelWindowMac12DoMoveWindowEiiii
__ZN19wxTopLevelWindowMac14ShowFullScreenEbl
__ZN19wxTopLevelWindowMac15ClearBackgroundEv
__ZN19wxTopLevelWindowMac17MacPerformUpdatesEv
__ZN19wxTopLevelWindowMac19MacCreateRealWindowERK8wxStringRK7wxPointRK6wxSizelS2_
__ZN19wxTopLevelWindowMac20RequestUserAttentionEi
__ZN19wxTopLevelWindowMac21MacSetBackgroundBrushERK7wxBrush
__ZN19wxTopLevelWindowMac22MacGetContentAreaInsetERiS0_S0_S0_
__ZN19wxTopLevelWindowMac36MacInstallTopLevelWindowEventHandlerEv
__ZN19wxTopLevelWindowMac4InitEv
__ZN19wxTopLevelWindowMac5LowerEv
__ZN19wxTopLevelWindowMac5RaiseEv
__ZN19wxTopLevelWindowMac7IconizeEb
__ZN19wxTopLevelWindowMac7RestoreEv
__ZN19wxTopLevelWindowMac7SetIconERK6wxIcon
__ZN19wxTopLevelWindowMac8MaximizeEb
__ZN19wxTopLevelWindowMac8SetShapeERK8wxRegion
__ZN19wxTopLevelWindowMac8SetTitleERK8wxString
__ZN19wxTopLevelWindowMacD2Ev
__ZN20wxTopLevelWindowBase16DoUpdateWindowUIER15wxUpdateUIEvent
[...]
--- End quote ---

grv575:
Well if that's the only part that doesn't work (it's a plugin for C/C++ source code autoformatting - i.e. it reformat all your source according to ANSI guidelines, or K&R or whatever) then maybe skip that plugin.  Good to know most of the stuff should't be too difficult to get working on macs without major changes.

TheWizzard:
Well ok,

this is what I get with CompilerGCC:


--- Quote ---Linking shared library devel/share/CodeBlocks/plugins/libcompilergcc.dynlib...
ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
.objs/2.6/plugins/compilergcc/depslib/src/depslib.o definition of common _g_stats (size 12)
/usr/bin/libtool: internal link edit command failed
make: *** [devel/share/CodeBlocks/plugins/libcompilergcc.dynlib] Error 1
--- End quote ---

I don't understand that message. Whats MH_DYLIB and -multi_module?

*EDIT*
DebuggerGDB - same as Astyle
CodeCompletion - same as Astyle
ClassWizard - same as Astyle
DefMimeHandler - same as Astyle
PluginWizard - same as Astyle
ToDo - compiles

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version