在 Windows 7 上构建线程安全的 HDF5 1.8.7
我在 Visual Studio 10 中从源代码构建 HDF5 1.8.7 时遇到了一些相当大的困难。我需要将线程安全功能添加到库中,根据常见问题解答,该功能是在 v1.8.6 中添加的,但在 v1.8.6 中没有添加默认情况下。
我已在 /windows/src 和 /src 文件夹中的 h5pubconf.h 文件中手动添加了“#define H5_HAVE_THREADSAFE 1”行(因为我无法弄清楚需要在 VS 解决方案本身中更改它)
有人有什么建议吗?谢谢!
I'm having some rather extreme difficulty getting HDF5 1.8.7 to build from source in Visual Studio 10. I need to add the thread-safety feature to the library, which according to the FAQ was added in v1.8.6, but not on by default.
I've manually added a "#define H5_HAVE_THREADSAFE 1" line in the h5pubconf.h file in both the /windows/src and /src folders (as I couldn't figure out where I needed to change it in the VS solution itself)
Does anybody have any have any recommendations? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
HDF5 使用 CMake 在各种平台上生成正确的构建系统。
它有一个 Visual Studio 10 生成器 。
您不必自己编辑任何源文件。
您应该安装 CMake,选择 Visual Studio 10 生成器,然后打开 < em>线程安全构建选项。它将生成一个可供构建的 Visual Studio 10 项目。
HDF5 is using CMake to generate a correct build system on various platforms.
It has a Visual Studio 10 generator.
You don't have to edit any source file yourself.
You should install CMake, choose the Visual Studio 10 generator, and turn on the threadsafe build option. It will generate a Visual Studio 10 project ready to be built.