我手动编译了 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_2
make
gdb foo
foo
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 Xcode
cmake 选项创建项目之后),我可以调试一个示例。
任何帮助都会有所帮助!