openvdb icon indicating copy to clipboard operation
openvdb copied to clipboard

HelloWorld OpenVDB example compilation problems in VS 2019

Open jdavies opened this issue 5 years ago • 2 comments

I just installed VS 2019 today, cloned the OpenVDB repo, got everything compiled and then created a HelloOpenVDB project that uses the example HelloWorld code located at the top of this page: https://www.openvdb.org/documentation/doxygen/codeExamples.html#sHelloWorld

I then edited my VS project so that it could find the OpenVDB include files, so now the source code parses without errors. However when I try to build the HelloWorld example, I get a number of errors like the following:

Error (active)	E1696	cannot open source file "boost/uuid/uuid.hpp"	HelloOpenVDB	D:\development\openvdb\openvdb\openvdb\io\Archive.h	13```

I suspect that VS needs to be configured to find the libraries for Boost, TBB, OpenEXR, etc, but I have no idea where to find these libraries or the proper way to configure VS once I do find them. Any help would be MUCH appreciated! Thanks in advance.

jdavies avatar Oct 08 '20 00:10 jdavies

In order to use vcpkg with Visual Studio, run the following command (may require administrator elevation):

.\vcpkg\vcpkg integrate install

utilitydelta avatar Jun 17 '21 22:06 utilitydelta

If you followed the instruction in README.md, you could find the boost library from: ..\vcpkg-master\installed\x64-windows\include

SimonNgj avatar Apr 03 '22 12:04 SimonNgj

As the above comments detail how to solve this, closing this issue

Idclip avatar Oct 18 '23 20:10 Idclip