1

我手动编译了 CGAL 并安装在~/Library/CGAL/CGAL-4.0.2/. Boost (boost @1.50.0_0+debug+no_single+no_static)以及cmake (2.8.8_1)使用macports. 对于提供的示例的编译目的,一切都很好。我的问题是当我尝试调试示例时。特别是,例如,我在包含and thencmake -DCMAKE_BUILD_TYPE=Debug .的目录中运行。生成的二进制函数符合预期,但在运行调试时,我收到以下警告:Arrangements_on_surfaces_2makegdb foofoo

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_50_0/bin.v2/libs/thread/build/darwin-4.2.1/debug/address-model-64/architecture-x86/threading-multi/pthread/thread.o" - no debug information available for "libs/thread/src/pthread/thread.cpp".    

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_50_0/bin.v2/libs/thread/build/darwin-4.2.1/debug/address-model-64/architecture-x86/threading-multi/pthread/once.o" - no debug information available for "libs/thread/src/pthread/once.cpp".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_50_0/bin.v2/libs/thread/build/darwin-4.2.1/debug/address-model-64/architecture-x86/threading-multi/future.o" - no debug information available for "libs/thread/src/future.cpp".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_50_0/bin.v2/libs/system/build/darwin-4.2.1/debug/address-model-64/architecture-x86/threading-multi/error_code.o" - no debug information available for "libs/system/src/error_code.cpp".

我真的不知道该怎么办。我尝试boost手动下载、编译和安装,然后重新编译CGAL。但是,一旦我尝试编译一个示例,我就会在运行时抱怨缺少boost库。

另一方面,在尝试调试XCode项目时(在使用-G Xcodecmake 选项创建项目之后),我可以调试一个示例。

任何帮助都会有所帮助!

4

1 回答 1

0

当我尝试使用 macports 安装 CGAL 时,我也遇到了 Boost 问题。然后我用homebrew尝试了同样的方法,它就像一个魅力。

于 2012-11-20T05:02:39.720 回答