Author Topic: fail to compile the lasted update code blocks from svn  (Read 4856 times)

fausten

  • Guest
fail to compile the lasted update code blocks from svn
« on: January 11, 2014, 11:48:33 pm »
Environment:
xcode 5.0.2, osx 10.9.1
wxWidgets 3.0


1) ./bootstrap
2) ./configure
3) make, then get error:

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o .libs/codeblocks -L/usr/local/lib app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o editkeywordsdlg.o editorconfigurationdlg.o environmentsettingsdlg.o examinememorydlg.o find_replace.o infopane.o main.o notebookstyles.o prefix.o printdlg.o projectmanagerui.o projectdepsdlg.o projectoptionsdlg.o recentitemslist.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o virtualbuildtargetsdlg.o watchesdlg.o -bind_at_load ../sdk/.libs/libcodeblocks.dylib -lwx_osx_cocoau_aui-3.0 -lwx_osx_cocoau_propgrid-3.0 -lwx_osx_cocoau_richtext-3.0 -lwx_osx_cocoau_xrc-3.0 -lwx_osx_cocoau_webview-3.0 -lwx_osx_cocoau_html-3.0 -lwx_osx_cocoau_qa-3.0 -lwx_osx_cocoau_adv-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lpthread -ldl -framework OpenGL -framework System -framework AudioToolbox -framework Cocoa -framework Carbon -framework IOKit -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/lib/darwin/libclang_rt.osx.a

Undefined symbols for architecture x86_64:
  "non-virtual thunk to wxHtmlWindow::GetHTMLWindow()", referenced from:
      vtable for MyHtmlWin in startherepage.o
  "non-virtual thunk to wxHtmlWindow::OnHTMLLinkClicked(wxHtmlLinkInfo const&)", referenced from:
      vtable for MyHtmlWin in startherepage.o
  "non-virtual thunk to wxHtmlWindow::SetHTMLStatusText(wxString const&)", referenced from:
      vtable for MyHtmlWin in startherepage.o
  "non-virtual thunk to wxHtmlWindow::SetHTMLWindowTitle(wxString const&)", referenced from:
      vtable for MyHtmlWin in startherepage.o
  "non-virtual thunk to wxHtmlWindow::SetHTMLBackgroundImage(wxBitmap const&)", referenced from:
      vtable for MyHtmlWin in startherepage.o
« Last Edit: January 11, 2014, 11:51:39 pm by fausten »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5917
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: fail to compile the lasted update code blocks from svn
« Reply #1 on: January 21, 2014, 02:48:17 am »
I suggest use wx 2.8.12, because currently not much people are maintaining the C::B Mac target.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: fail to compile the lasted update code blocks from svn
« Reply #2 on: January 21, 2014, 04:07:06 pm »
Simple wxWidgets build causes; not likely the problem but easy to check.

wxUSE_HTML set to 1 in wx/setup.h

I am just a Windows wxWidgets builder; so, the above might not apply to OSX.

If set to zero, then wxWidgets likely needs re-built using "--enable-html"

Tim S.
« Last Edit: January 21, 2014, 04:11:08 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org