macos - 雪豹中的 OpenVRML(来自 macports)

标签 macos osx-snow-leopard vrml

嘿,我刚刚从 macports 下载了 openvrml (端口安装openvrml) 现在我有一个示例程序(来自 sourceforge 的 openvrml 的 pretty_print.cpp),其开头如下:

# ifdef HAVE_CONFIG_H
#   include <config.h>
# endif

# include <openvrml/vrml97_grammar.h>
# include <openvrml/browser.h>
# include <fstream>
...

然后在 Xcode 中,我添加了以下路径并检查“ header 搜索路径”和“库搜索路径”的“递归”:

/opt/local/var/macports/software

所有“***.h 文件未找到”错误都消失了,但现在我有以下两个错误:

complex.h 943 '__pow_helper' is not a member of std
c++locale.h 71 'vsnprintf' is not a member of std

/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/complex: In function 'std::complex<_Tp> std::pow(const std::complex<_Tp>&, int)':
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/complex:943: error: '__pow_helper' is not a member of 'std'

这两个错误都来自系统文件。 我想知道是什么导致了这个错误...... 谁能建议我如何在 Mac 上使用 openvrml 示例?

提前致谢。

最佳答案

我也遇到过类似的问题。我为“/opt/local/include”路径定义了“递归”标志。这从 boost 兼容性包含中引入了一些奇怪的 C++ 头文件。

一般来说,您不希望在包含路径上使用“递归”标志。

尝试从路径中取消选中“递归”。

关于macos - 雪豹中的 OpenVRML(来自 macports),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1678828/

相关文章:

macos - 我们如何在mac系统上设置NGINX Web服务器及其RTMP模块?

macos - X11(xquartz)窗口堆叠

c++ - 为什么 Valgrind 说一个非常简单的程序杀死了 9 个?

html - 是否有类似 VRML 的高级 API 用于使用 HTML5 进行 3D 处理?

iphone - 如何在 iOS 应用程序中打开 VRML(*.wrl ) 文件

c++ - QFileSystemModel setRootPath

jquery - 我可以在jquery中检测客户端操作系统是专门的Mac雪豹吗?

python - 无法让 OpenCV 在 Mac 上使用 Python

cocoa - NSView 中的 NSBezierPath 点动画

linux - Ubuntu 上 Firefox 的 VRML 插件