我尝试安装openscad
,我已经安装了所有依赖项,但是当我试图制作openscad
时,我遇到了这个问题:
$ make clang ++ -headerpad_max_install_names -stdlib = libc ++ -mmacosx-version-min = 10.7 -stdlib = libc ++ -arch x86_64 -o OpenSCAD.app/Contents/MacOS/OpenSCAD objects / OffscreenContextCGL.o objects / CocoaUtils.o objects / PlatformUtils-mac.o objects / scintillaeditor.o objects / scadlexer.o objects / version_check.o objects / ProgressWidget.o objects / mathc99.o objects / linalg.o objects / Camera.o objects / handle_dep.o objects / value.o objects / expr.o objects / stackcheck.o objects / func.o objects / localscope.o objects / module.o objects / feature.o objects / node.o objects / context.o objects / modcontext.o objects / evalcontext.o objects / csgnode.o objects / CSGTreeNormalizer.o objects / CSGTreeEvaluator.o objects / Geometry.o objects / Polygon2d.o objects / clipper-utils.o objects / polyset-utils.o objects / GeometryUtils.o objects / polyset.o objects / polyset-gl。 o objects / csgops.o objects / transform.o objects / color.o objects / primitives.o objects / projection.o objects / cgaladv.o objects / surface.o objects / control.o objects / render.o objects / text。 o obje cts / dxfdata.o objects / dxfdim.o objects / offset.o objects / linearextrude.o objects / rotateextrude.o objects / printutils.o objects / fileutils.o objects / progress.o objects / parsersettings.o objects / stl-utils .o objects / boost-utils.o objects / PlatformUtils.o objects / LibraryInfo.o objects / nodedumper.o objects / traverser.o objects / GeometryEvaluator.o objects / ModuleCache.o objects / GeometryCache.o objects / Tree.o objects /DrawingCallback.o objects / FreetypeRenderer.o objects / FontCache.o objects / settings.o objects / rendersettings.o objects / highlighter.o objects / Preferences.o objects / OpenCSGWarningDialog.o objects / editor.o objects / GLView.o objects /QGLView.o objects / AutoUpdater.o objects / grid.o objects / builtin.o objects / calc.o objects / export.o objects / export_stl.o objects / export_amf.o objects / export_off.o objects / export_dxf.o objects /export_svg.o objects / export_nef.o objects / export_png.o objects / import.o objects / renderer.o objects / colormap.o objects / ThrownTogetherRenderer.o objects / svg.o objects / OffscreenView .o objects / fbo.o objects / system-gl.o objects / imageutils.o objects / lodepng.o objects / openscad.o objects / mainwin.o objects / UIUtils.o objects / Dock.o objects / FontListDialog.o objects /FontListTableView.o objects / launchingscreen.o objects / legacyeditor.o objects / LibraryInfoDialog.o objects / clipper.o objects / bucketalloc.o objects / dict.o objects / geom.o objects / mesh.o objects / priorityq.o objects /sweep.o objects / tess.o objects / imageutils-macosx.o objects / OpenCSGRenderer.o objects / cgalutils.o objects / cgalutils-applyops.o objects / cgalutils-project.o objects / cgalutils-tess.o objects / cgalutils -polyhedron.o objects / CGALCache.o objects / CGALRenderer.o objects / CGAL_Nef_polyhedron.o objects / cgalworker.o objects / Polygon2d-CGAL.o objects / AppleEvents.o objects / moc_scintillaeditor.o objects / moc_ProgressWidget.o objects / moc_QGLView。 o objects / moc_MainWindow.o objects / moc_Preferences.o objects / moc_OpenCSGWarningDialog.o objects / moc_AboutDialog.o objects / moc_FontListDialog.o objects / moc_FontListTableView.o object s / moc_highlighter.o objects / moc_editor.o objects / moc_Dock.o objects / moc_AutoUpdater.o objects / moc_launchingscreen.o objects / moc_legacyeditor.o objects / moc_LibraryInfoDialog.o objects / moc_cgalworker.o objects / moc_EventFilter.o objects / qrc_openscad.o objects / parser_yacc.o objects / lexer_lex.o -F / usr / local / Cellar / qt / 4.8.7_2 / lib -L / opt / local / lib -L / usr / local / Cellar / qt / 4.8.7_2 / lib -framework Cocoa -framework ApplicationServices -lCGAL -lmpfr -lgmp -lopencsg -lGLEW -lboost_thread-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -L / usr / local / Cellar / glib / 2.46.2 / lib -L / usr / local / opt / gettext / lib -lglib-2.0 -lintl -liconv -L / usr / local / lib -lharfbuzz -L / usr / local / Cellar / freetype / 2.6_1 / lib -L / usr / local / Cellar / fontconfig / 2.11.1 / lib -lfontconfig -lfreetype -L / usr / local / Cellar / qt / 4.8.7_2 / lib -lqscintilla2 -framework QtOpenGL -L / usr / local / opt / openssl / lib -F / usr / local / Cellar / qt / 4.8.7_2 / lib -framework QtGui -framework QtCore -framework OpenGL -framework AGL ld:警告:对象文件(objects / OffscreenContextCGL.o)是为较新的OSX版本(10.10)构建的,而不是链接的(10.7) ld:警告:对象文件(objects / CocoaUtils.o)是为较新的OSX版本(10.10)构建的,而不是链接的(10.7) ld:警告:对象文件(objects / PlatformUtils-mac.o)是为较新的OSX版本(10.10)构建的,而不是链接的(10.7) 架构x86_64的未定义符号: " boost :: re_detail_106000 :: get_mem_block()",引自: boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: find_imp() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: match_all_states() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: match_startmark() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: match_alt() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: match_rep() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: match_char_repeat() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: match_set_repeat() ... " boost :: re_detail_106000 :: put_mem_block(void *)",引自: boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: find_imp() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: unwind_extra_block(bool) boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> import.o中的> :: find_imp() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> import.o中的> :: unwind_extra_block(bool) " boost :: re_detail_106000 :: verify_options(unsigned int,boost :: regex_constants :: _ match_flags)",引自: boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> Tree.o中的> :: find_imp() boost :: re_detail_106000 :: perl_matcher,std :: __ 1 :: allocator> >,boost :: regex_traits> import.o中的> :: find_imp() " boost :: re_detail_106000 :: raise_runtime_error(std :: runtime_error const&)",引自: void boost :: re_detail_106000 :: raise_error> > Tree.o中的>(boost :: regex_traits_wrapper>> const&,boost :: regex_constants :: error_type) void boost :: re_detail_106000 :: raise_error> > import.o中的>(boost :: regex_traits_wrapper>> const&,boost :: regex_constants :: error_type) " boost :: re_detail_106000 :: get_default_error_string(boost :: regex_constants :: error_type)",引自: Tree.o中的boost :: re_detail_106000 :: cpp_regex_traits_implementation :: error_string(boost :: regex_constants :: error_type)const import ::o中的boost :: re_detail_106000 :: cpp_regex_traits_implementation :: error_string(boost :: regex_constants :: error_type)const " boost :: re_detail_106000 :: cpp_regex_traits_implementation :: transform_primary(char const *,char const *)const",引自: std :: __ 1 :: __ wrap_iter boost :: re_detail_106000 :: re_is_set_member,char,boost :: regex_traits&gt ;, unsigned int>(std :: __ 1 :: __ wrap_iter,std :: __ 1 :: __ wrap_iter,boost :: re_detail_106000 :: Tree.o中的re_set_long const *,boost :: re_detail_106000 :: regex_data>> const&,bool) std :: __ 1 :: __ wrap_iter boost :: re_detail_106000 :: re_is_set_member,char,boost :: regex_traits&gt ;, unsigned int>(std :: __ 1 :: __ wrap_iter,std :: __ 1 :: __ wrap_iter,boost :: re_detail_106000 :: import.o中的re_set_long const *,boost :: re_detail_106000 :: regex_data>> const&,bool) " boost :: re_detail_106000 :: cpp_regex_traits_implementation :: transform(char const *,char const *)const",引自: std :: __ 1 :: __ wrap_iter boost :: re_detail_106000 :: re_is_set_member,char,boost :: regex_traits&gt ;, unsigned int>(std :: __ 1 :: __ wrap_iter,std :: __ 1 :: __ wrap_iter,boost :: re_detail_106000 :: Tree.o中的re_set_long const *,boost :: re_detail_106000 :: regex_data>> const&,bool) std :: __ 1 :: __ wrap_iter boost :: re_detail_106000 :: re_is_set_member,char,boost :: regex_traits&gt ;, unsigned int>(std :: __ 1 :: __ wrap_iter,std :: __ 1 :: __ wrap_iter,boost :: re_detail_106000 :: import.o中的re_set_long const *,boost :: re_detail_106000 :: regex_data>> const&,bool) ld:找不到架构x86_64的符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) make:*** [OpenSCAD.app/Contents/MacOS/OpenSCAD]错误1
答案 0 :(得分:0)
查看链接器标志,看起来您可能安装了两个不同版本的Boost。混合来自不同包管理框架的包使得难以追踪这些问题。它当然可能只需要“干净”,但很难从链接线上看到。
我建议使用官方构建说明来管理依赖项 - 这些在OS X上得到很好的维护:https://github.com/openscad/openscad#building-for-mac-os-x