OS X 上的wxwidgets 3.0.0 链接错误

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
1
In need of some credit
In need of some credit
Posts: 2
Joined: Sat May 24, 2014 12:34 pm

OS X 上的wxwidgets 3.0.0 链接错误

Post by 1 » Sat May 24, 2014 12:42 pm

在OS X 10.9 上link 出错。 使用make VERBOSE=1产生错误信息如下:

Linking CXX executable noc
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/noc.dir/link.txt --verbose=11
/usr/bin/g++ -std=c++11 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/noc.dir/_predef.cpp.o CMakeFiles/noc.dir/aamutatematrix.cpp.o CMakeFiles/noc.dir/ambcrdio.cpp.o CMakeFiles/noc.dir/angle.cpp.o CMakeFiles/noc.dir/atom.cpp.o CMakeFiles/noc.dir/avigen.cpp.o CMakeFiles/noc.dir/baseresidue.cpp.o CMakeFiles/noc.dir/bond.cpp.o CMakeFiles/noc.dir/bpdbfile.cpp.o CMakeFiles/noc.dir/brixmap.cpp.o CMakeFiles/noc.dir/ccp4map.cpp.o CMakeFiles/noc.dir/chain.cpp.o CMakeFiles/noc.dir/chargesitedatabase.cpp.o CMakeFiles/noc.dir/chiralityc.cpp.o CMakeFiles/noc.dir/compress.cpp.o CMakeFiles/noc.dir/connectbond.cpp.o CMakeFiles/noc.dir/contactmap.cpp.o CMakeFiles/noc.dir/coord.cpp.o CMakeFiles/noc.dir/coord_xy.cpp.o CMakeFiles/noc.dir/cubiccluster.cpp.o CMakeFiles/noc.dir/densitypoint.cpp.o CMakeFiles/noc.dir/dialogs.cpp.o CMakeFiles/noc.dir/dihedral.cpp.o CMakeFiles/noc.dir/dns6map.cpp.o CMakeFiles/noc.dir/dumypair.cpp.o CMakeFiles/noc.dir/etreesite.cpp.o CMakeFiles/noc.dir/forcefield.cpp.o CMakeFiles/noc.dir/gl2ps.c.o CMakeFiles/noc.dir/glctrl.cpp.o CMakeFiles/noc.dir/gltext.cpp.o CMakeFiles/noc.dir/gmxtrrio.cpp.o CMakeFiles/noc.dir/hetchain.cpp.o CMakeFiles/noc.dir/hetgroup.cpp.o CMakeFiles/noc.dir/hkl.cpp.o CMakeFiles/noc.dir/improper.cpp.o CMakeFiles/noc.dir/line.cpp.o CMakeFiles/noc.dir/linefitting.cpp.o CMakeFiles/noc.dir/lwobject.cpp.o CMakeFiles/noc.dir/mapcount2d.cpp.o CMakeFiles/noc.dir/mapsite.cpp.o CMakeFiles/noc.dir/molecule.cpp.o CMakeFiles/noc.dir/molmap.cpp.o CMakeFiles/noc.dir/neighboursearch.cpp.o CMakeFiles/noc.dir/nobondpairs.cpp.o CMakeFiles/noc.dir/noc_wdr.cpp.o CMakeFiles/noc.dir/nocapp.cpp.o CMakeFiles/noc.dir/noccmd.cpp.o CMakeFiles/noc.dir/noccmdthread.cpp.o CMakeFiles/noc.dir/nocenv.cpp.o CMakeFiles/noc.dir/nocfontenumerator.cpp.o CMakeFiles/noc.dir/nocgl.cpp.o CMakeFiles/noc.dir/nocglcanvas.cpp.o CMakeFiles/noc.dir/nocglfont.cpp.o CMakeFiles/noc.dir/nocglpixelmap.cpp.o CMakeFiles/noc.dir/nochklformat.cpp.o CMakeFiles/noc.dir/nocmainframe.cpp.o CMakeFiles/noc.dir/nocmoltreeitem.cpp.o CMakeFiles/noc.dir/nocplot.cpp.o CMakeFiles/noc.dir/noctextfile.cpp.o CMakeFiles/noc.dir/noctextviewer.cpp.o CMakeFiles/noc.dir/noctime.cpp.o CMakeFiles/noc.dir/noctimer.cpp.o CMakeFiles/noc.dir/noctrj.cpp.o CMakeFiles/noc.dir/noctrjplaythread.cpp.o CMakeFiles/noc.dir/nonbond.cpp.o CMakeFiles/noc.dir/nscell.cpp.o CMakeFiles/noc.dir/objstring.cpp.o CMakeFiles/noc.dir/pdbdatabase.cpp.o CMakeFiles/noc.dir/pdbfile.cpp.o CMakeFiles/noc.dir/peptide.cpp.o CMakeFiles/noc.dir/plane.cpp.o CMakeFiles/noc.dir/pointhuge.cpp.o CMakeFiles/noc.dir/polygon.cpp.o CMakeFiles/noc.dir/promotif.cpp.o CMakeFiles/noc.dir/promotifunit.cpp.o CMakeFiles/noc.dir/quaternions.cpp.o CMakeFiles/noc.dir/ramaplotpattern.cpp.o CMakeFiles/noc.dir/resbase.cpp.o CMakeFiles/noc.dir/residue.cpp.o CMakeFiles/noc.dir/resname.cpp.o CMakeFiles/noc.dir/rgba.cpp.o CMakeFiles/noc.dir/rigidbodyfit.cpp.o CMakeFiles/noc.dir/rotamer.cpp.o CMakeFiles/noc.dir/rotateoperator.cpp.o CMakeFiles/noc.dir/secondaryassign.cpp.o CMakeFiles/noc.dir/sequence.cpp.o CMakeFiles/noc.dir/solidsurface.cpp.o CMakeFiles/noc.dir/spacegroup.cpp.o CMakeFiles/noc.dir/spline.cpp.o CMakeFiles/noc.dir/surface.cpp.o CMakeFiles/noc.dir/surfacepoint.cpp.o CMakeFiles/noc.dir/symmetry.cpp.o CMakeFiles/noc.dir/torsion.cpp.o CMakeFiles/noc.dir/translateoperator.cpp.o CMakeFiles/noc.dir/triangle.cpp.o CMakeFiles/noc.dir/triangleface.cpp.o CMakeFiles/noc.dir/tripod.cpp.o CMakeFiles/noc.dir/unitcell.cpp.o CMakeFiles/noc.dir/vertex.cpp.o CMakeFiles/noc.dir/vertexff.cpp.o CMakeFiles/noc.dir/water.cpp.o -o noc -L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib -L/opt/local/lib/gcc49/gcc/x86_64-apple-darwin13/4.9.0 -L/opt/local/lib/gcc49 -L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -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 /opt/local/lib/libfftw3.dylib /usr/lib/libm.dylib /opt/local/lib/libnetcdf.dylib /opt/local/lib/libavcodec.dylib /opt/local/lib/libavutil.dylib /opt/local/lib/libswscale.dylib -framework AGL -Wl,-rpath,/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
Undefined symbols for architecture x86_64:
"wxGLCanvas::SwapBuffers()", referenced from:
vtable for CNOCGLCanvas in nocglcanvas.cpp.o
"wxGLCanvas::sm_eventTable", referenced from:
CNOCGLCanvas::sm_eventTable in nocglcanvas.cpp.o
"wxGLCanvas::wxGLCanvas(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&, int const*, wxPalette const&)", referenced from:
CNOCGLCanvas::CNOCGLCanvas(wxWindow*, long, int*, int) in nocglcanvas.cpp.o
"wxGLCanvas::~wxGLCanvas()", referenced from:
CNOCGLCanvas::CNOCGLCanvas(wxWindow*, long, int*, int) in nocglcanvas.cpp.o
CNOCGLCanvas::~CNOCGLCanvas() in nocglcanvas.cpp.o
"wxGLCanvasBase::SetCurrent()", referenced from:
CNOCApp::CreateMainframe(bool) in nocapp.cpp.o
CNOCGLCanvas::OnSize(wxSizeEvent&) in nocglcanvas.cpp.o
CNOCGLCanvas::OnPaint(wxPaintEvent&) in nocglcanvas.cpp.o
"wxGLCanvasBase::OnSize(wxSizeEvent&)", referenced from:
CNOCGLCanvas::OnSize(wxSizeEvent&) in nocglcanvas.cpp.o
"wxGLCanvas::GetClassInfo() const", referenced from:
vtable for CNOCGLCanvas in nocglcanvas.cpp.o
"wxGLCanvasBase::GetContext() const", referenced from:
CNOCApp::CreateMainframe(bool) in nocapp.cpp.o
CNOCApp::CreateGLCanvas(bool, int, bool) in nocapp.cpp.o
CNOCGLCanvas::OnSize(wxSizeEvent&) in nocglcanvas.cpp.o
CNOCGLCanvas::OnPaint(wxPaintEvent&) in nocglcanvas.cpp.o
CNOCMainFrame::SetGLSize() in nocmainframe.cpp.o
"typeinfo for wxGLCanvas", referenced from:
typeinfo for CNOCGLCanvas in nocglcanvas.cpp.o

请问怎么解决?

Post Reply