Author Topic: Compile CodeBlocks in MAC OS X 10.4.8 [ SOLVED ]  (Read 6655 times)

Offline Dimitrios Chr. Ioannidis

  • Multiple posting newcomer
  • *
  • Posts: 13
    • Firebird - The RDBMS that's going where you're going
Compile CodeBlocks in MAC OS X 10.4.8 [ SOLVED ]
« on: March 21, 2007, 04:17:45 pm »
Hi all,

  i have problems compiling Codeblocks from svn in MAC OS X 10.4.8.

In Codeblocks configure i get :

checking for pkg-config... no
checking for wx-config... /usr/local/bin//wx-config
checking for wxWindows version >= 2.6.0...
  Warning: No config found to match: /usr/local/bin//wx-config --static --libs
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

yes (version 2.6.4)
configure: Configuring Code::Blocks...
configure: SVN revision trunk-r3736 (2007-03-21 08:22:53)

and when i exec make

g++  -o .libs/libastyle.so -bundle  .libs/asstreamiterator.o .libs/astyleconfigdlg.o .libs/astyleplugin.o .libs/dlgformattersettings.o .libs/formattersettings.o .libs/ASBeautifier.o .libs/ASFormatter.o .libs/ASEnhancer.o .libs/ASResource.o  ../../sdk/.libs/libcodeblocks.dylib -lpthread -ldl
/usr/bin/ld: Undefined symbols:
wxStringBase::npos
wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)
wxThread::TestDestroy()
wxThread::~wxThread()
typeinfo for wxThread
_wxEmptyString
wxGetLocale()
wxFontBase::~wxFontBase()
wxSpinCtrl::SetValue(int)
wxEvtHandler::ProcessEvent(wxEvent&)
wxEvtHandler::DoSetClientData(void*)
wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&)
wxEvtHandler::DoSetClientObject(wxClientData*)
wxStringBase::ConcatSelf(unsigned long, wchar_t const*, unsigned long)
wxStringBase::CopyBeforeWrite()
wxStringBase::append(unsigned long, wchar_t)
wxStringBase::wxStringBase(unsigned long, wchar_t)
wxStringBase::operator=(wchar_t const*)
wxStringBase::operator=(wxStringBase const&)
wxWindowBase::GetCapture()
wxWindowBase::LayoutPhase1(int*)
wxWindowBase::LayoutPhase2(int*)
wxWindowBase::SetValidator(wxValidator const&)
wxWindowBase::TryValidator(wxEvent&)
wxWindowBase::DoSetSizeHints(int, int, int, int, int, int)
wxWindowBase::MoveConstraint(int, int)
wxWindowBase::UpdateWindowUI(long)
wxWindowBase::DoMoveInTabOrder(wxWindow*, wxWindowBase::MoveKind)
wxWindowBase::DoSetVirtualSize(int, int)
wxWindowBase::DoUpdateWindowUI(wxUpdateUIEvent&)
wxWindowBase::InheritAttributes()
wxWindowBase::SetSizeConstraint(int, int, int, int)
wxWindowBase::SetConstraintSizes(bool)
wxWindowBase::SetVirtualSizeHints(int, int, int, int)
wxWindowBase::TransferDataToWindow()
wxWindowBase::TransferDataFromWindow()
wxWindowBase::GetClassDefaultAttributes(wxWindowVariant)
wxWindowBase::Fit()
wxWindowBase::Layout()
wxWindowBase::Destroy()
wxWindowBase::DoPhase(int)
wxWindowBase::AddChild(wxWindowBase*)
wxWindowBase::Navigate(int)
wxWindowBase::Validate()
wxWindowBase::FitInside()
wxWindowBase::MakeModal(bool)
wxWindowBase::TryParent(wxEvent&)
wxXmlResource::Get()
wxXmlResource::GetXRCID(wchar_t const*)
wxXmlResource::LoadPanel(wxPanel*, wxWindow*, wxString const&)
wxEventHashTable::wxEventHashTable(wxEventTable const&)
wxEventHashTable::~wxEventHashTable()
wxControlContainer::wxControlContainer(wxWindow*)
wxFont::Init()
wxFont::Create(int, int, int, int, bool, wxString const&, wxFontEncoding)
wxFont::~wxFont()
wxPanel::InitDialog()
wxPanel::RemoveChild(wxWindowBase*)
wxPanel::OnChildFocus(wxChildFocusEvent&)
wxPanel::sm_eventTable
wxPanel::SetDefaultItem(wxWindow*)
wxPanel::SetTmpDefaultItem(wxWindow*)
wxPanel::SetFocusIgnoringChildren()
wxPanel::Init()
wxPanel::SetFocus()
wxPanel::~wxPanel()
wxObject::Ref(wxObject const&)
wxWindow::DoPopupMenu(wxMenu*, int, int)
wxWindow::MacDoRedraw(void*, long)
wxWindow::WarpPointer(int, int)
wxWindow::DoMoveWindow(int, int, int, int)
wxWindow::DoSetToolTip(wxToolTip*)
wxWindow::ScrollWindow(int, int, wxRect const*)
wxWindow::SetScrollPos(int, int, bool)
wxWindow::SetScrollbar(int, int, int, int, bool)
wxWindow::MacChildAdded()
wxWindow::MacControlHit(void*, void*)
wxWindow::SetDropTarget(wxDropTarget*)
wxWindow::DoCaptureMouse()
wxWindow::DoReleaseMouse()
wxWindow::MacSetupCursor(wxPoint const&)
wxWindow::OnInternalIdle()
wxWindow::ClearBackground()
wxWindow::DoSetClientSize(int, int)
wxWindow::DragAcceptFiles(bool)
wxWindow::MacPaintBorders(int, int)
wxWindow::MacHiliteChanged()
wxWindow::DoSetWindowVariant(wxWindowVariant)
wxWindow::MacGetToolTipString(wxPoint&)
wxWindow::SetBackgroundColour(wxColour const&)
wxWindow::SetForegroundColour(wxColour const&)
wxWindow::MacVisibilityChanged()
wxWindow::MacHandleControlClick(wxOpaqueControlRef*, short, bool)
wxWindow::MacSetBackgroundBrush(wxBrush const&)
wxWindow::MacEnabledStateChanged()
wxWindow::MacGetContentAreaInset(int&, int&, int&, int&)
wxWindow::MacInstallEventHandler(wxOpaqueControlRef*)
wxWindow::MacSuperChangedPosition()
wxWindow::MacTopLevelWindowChangedPosition()
wxWindow::Show(bool)
wxWindow::Thaw()
wxWindow::Lower()
wxWindow::Raise()
wxWindow::Enable(bool)
wxWindow::Freeze()
wxWindow::Update()
wxWindow::Refresh(bool, wxRect const*)
wxWindow::SetFont(wxFont const&)
wxWindow::Reparent(wxWindowBase*)
wxWindow::SetTitle(wxString const&)
wxWindow::DoSetSize(int, int, int, int, int)
wxWindow::SetCursor(wxCursor const&)
wxWindow::wxWindow()
wxWindow::~wxWindow()
wxSpinCtrl::GetValue() const
wxEvtHandler::DoGetClientData() const
wxEvtHandler::DoGetClientObject() const
wxWindowBase::FindWindow(long) const
wxWindowBase::IsTopLevel() const
wxWindowBase::DoGetVirtualSize() const
wxWindowBase::GetDefaultBorder() const
wxWindowBase::GetSizeConstraint(int*, int*) const
wxWindowBase::GetPositionConstraint(int*, int*) const
wxWindowBase::GetClientSizeConstraint(int*, int*) const
wxWindowBase::AdjustForParentClientOrigin(int&, int&, int) const
wxWindowBase::DoHitTest(int, int) const
wxPanel::AcceptsFocus() const
wxPanel::GetClassInfo() const
wxPanel::GetEventTable() const
wxPanel::GetDefaultItem() const
wxPanel::GetEventHashTable() const
wxLocale::GetString(wchar_t const*, wchar_t const*) const
wxObject::CloneRefData(wxObjectRefData const*) const
wxObject::CreateRefData() const
wxWindow::MacCanFocus() const
wxWindow::GetCharWidth() const
wxWindow::GetScrollPos(int) const
wxWindow::DoGetBestSize() const
wxWindow::DoGetPosition(int*, int*) const
wxWindow::GetCharHeight() const
wxWindow::GetTextExtent(wxString const&, int*, int*, int*, int*, wxFont const*) const
wxWindow::GetScrollRange(int) const
wxWindow::GetScrollThumb(int) const
wxWindow::DoGetClientSize(int*, int*) const
wxWindow::DoClientToScreen(int*, int*) const
wxWindow::DoScreenToClient(int*, int*) const
wxWindow::GetClientAreaOrigin() const
wxWindow::MacGetTopBorderSize() const
wxWindow::MacGetLeftBorderSize() const
wxWindow::MacGetRightBorderSize() const
wxWindow::MacGetBottomBorderSize() const
wxWindow::MacIsChildOfClientArea(wxWindow const*) const
wxWindow::DoGetSizeFromClientSize(wxSize const&) const
wxWindow::DoGetSize(int*, int*) const
wxWindow::GetHandle() const
typeinfo for wxEvent
typeinfo for wxPanel
vtable for wxFont
vtable for wxPanel
_wxEVT_COMMAND_BUTTON_CLICKED
_wxEVT_COMMAND_RADIOBUTTON_SELECTED
_wxEVT_NULL
wxSetCursor(wxCursor const&)
wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int)
wxEvtHandler::TryParent(wxEvent&)
wxString::Printf(wchar_t const*, ...)
wxEvtHandler::GetClassInfo() const
wxEvtHandler::GetEventTable() const
wxEvtHandler::GetEventHashTable() const
_wxHOURGLASS_CURSOR
_wxSTANDARD_CURSOR
wxString::Cmp(wchar_t const*) const
collect2: ld returned 1 exit status
make[4]: *** [libastyle.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Any hint ?
« Last Edit: March 22, 2007, 03:57:18 pm by Dimitrios Chr. Ioannidis »
--- The distance between insanity and genius is measured only by success. ---

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Compile CodeBlocks in MAC OS X 10.4.8
« Reply #1 on: March 21, 2007, 05:46:21 pm »
Seems like wxWidgets is not installed properly on your system.

What does it say if you run

% wx-config --static --libs

from a terminal?
(anyway not sure why it checks static since C::B prefers to link dynamic anyway)
« Last Edit: March 21, 2007, 05:48:37 pm by Auria »

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Compile CodeBlocks in MAC OS X 10.4.8
« Reply #2 on: March 22, 2007, 01:16:38 pm »
The undefined symbols are probably because you didn't patch the Makefiles.
(See http://www.algonet.se/~afb/wx/codeblocks-rev3656_pluginslib.patch)

Offline Dimitrios Chr. Ioannidis

  • Multiple posting newcomer
  • *
  • Posts: 13
    • Firebird - The RDBMS that's going where you're going
Re: Compile CodeBlocks in MAC OS X 10.4.8
« Reply #3 on: March 22, 2007, 01:54:33 pm »
The undefined symbols are probably because you didn't patch the Makefiles.
(See http://www.algonet.se/~afb/wx/codeblocks-rev3656_pluginslib.patch)


Nope i didn't patch them ...

I'll try and get back to you but if this is the solution why isn't the patch into the svn trunk ?

EDIT: Applying the patch ....

.......
patching file src/plugins/autosave/Makefile.am
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/autosave/Makefile.am.rej
.......
patching file src/plugins/contrib/byogames/Makefile.am
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/contrib/byogames/Makefile.am.rej
.......
patching file src/plugins/contrib/codesnippets/Makefile.am
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/contrib/codesnippets/Makefile.am.rej
.......
patching file src/plugins/contrib/dragscroll/Makefile.am
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/contrib/dragscroll/Makefile.am.rej
patching file src/plugins/contrib/envvars/Makefile.am
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/contrib/envvars/Makefile.am.rej
.......
patching file src/plugins/contrib/regex_testbed/Makefile.am
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/contrib/regex_testbed/Makefile.am.rej
.......
patching file src/plugins/scriptedwizard/Makefile.am
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file src/plugins/scriptedwizard/Makefile.am.rej

I'll make the changes by hand
« Last Edit: March 22, 2007, 02:13:05 pm by Dimitrios Chr. Ioannidis »
--- The distance between insanity and genius is measured only by success. ---

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Compile CodeBlocks in MAC OS X 10.4.8
« Reply #4 on: March 22, 2007, 02:24:47 pm »
I'll try and get back to you but if this is the solution why isn't the patch into the svn trunk ?

It's a Mac-only patch, so it needs to be fixed in a way that doesn't break other platforms...
Before applying the patch, you might need to convert the Makefile.am files to Unix lineendings.

Sorry about the inconvience.

Offline Dimitrios Chr. Ioannidis

  • Multiple posting newcomer
  • *
  • Posts: 13
    • Firebird - The RDBMS that's going where you're going
Re: Compile CodeBlocks in MAC OS X 10.4.8
« Reply #5 on: March 22, 2007, 02:32:58 pm »
Before applying the patch, you might need to convert the Makefile.am files to Unix lineendings.

The patch doesn't fail in all files ...  But maybe you're right.

Sorry about the inconvience.

Hey, i'm more than grateful for your work. You don't need to be sorry ....

« Last Edit: March 22, 2007, 02:34:47 pm by Dimitrios Chr. Ioannidis »
--- The distance between insanity and genius is measured only by success. ---

Offline Dimitrios Chr. Ioannidis

  • Multiple posting newcomer
  • *
  • Posts: 13
    • Firebird - The RDBMS that's going where you're going
Re: Compile CodeBlocks in MAC OS X 10.4.8
« Reply #6 on: March 22, 2007, 03:54:05 pm »
Codeblocks builded and running ...

Thx a lot ....   :D
--- The distance between insanity and genius is measured only by success. ---

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Compile CodeBlocks in MAC OS X 10.4.8 [ SOLVED ]
« Reply #7 on: March 22, 2007, 04:41:02 pm »
Not a problem, and the patch is currently being integrated so workaround shouldn't be needed soon.