From 36b323c6f302e359ec34235b69f53e38b190c245 Mon Sep 17 00:00:00 2001 From: Virendra Singh Date: Sat, 21 Feb 2015 15:37:09 +0530 Subject: [PATCH] Added VHACD dependency Provide link to github source. The source tree has necessary cmke changes to allow 32 bit build specific to hifi --- BUILD.md | 2 +- BUILD_WIN.md | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/BUILD.md b/BUILD.md index f7dc22882a..b956f0e70b 100644 --- a/BUILD.md +++ b/BUILD.md @@ -8,7 +8,7 @@ * [Soxr](http://sourceforge.net/projects/soxr/) ~> 0.1.1 * [Bullet Physics Engine](https://code.google.com/p/bullet/downloads/list) ~> 2.82 * [Gverb](https://github.com/highfidelity/gverb/archive/master.zip) (direct download to latest version) - +* [VHACD](https://github.com/virneo/v-hacd) #### CMake External Project Dependencies The following dependencies will be downloaded, built, linked and included automatically by CMake where we require them. The CMakeLists files that handle grabbing each of the following external dependencies can be found in the [cmake/externals folder](cmake/externals). The resulting downloads, source files and binaries will be placed in the `build` directory in each of the subfolders for each external project. These are not placed in your normal build tree when doing an out of source build so that they do not need to be re-downloaded and re-compiled every time the CMake build folder is cleared. diff --git a/BUILD_WIN.md b/BUILD_WIN.md index f5bc3e09b5..0f806f3bf7 100644 --- a/BUILD_WIN.md +++ b/BUILD_WIN.md @@ -67,6 +67,9 @@ The recommended route for CMake to find the external dependencies is to place al -> include -> lib -> test + -> vhacd + -> include + -> lib For many of the external libraries where precompiled binaries are readily available you should be able to simply copy the extracted folder that you get from the download links provided at the top of the guide. Otherwise you may need to build from source and install the built product to this directory. The `root_lib_dir` in the above example can be wherever you choose on your system - as long as the environment variable HIFI_LIB_DIR is set to it. From here on, whenever you see %HIFI_LIB_DIR% you should substitute the directory that you chose. @@ -114,6 +117,15 @@ Add to the PATH: `%HIFI_LIB_DIR%\zlib` Important! This should be added at the beginning of the path, not the end (your system likely has many copies of zlib1.dll, and you want High Fidelity to use the correct version). If High Fidelity picks up the wrong zlib1.dll then it might be unable to use it, and that would cause it to fail to start, showing only the cryptic error "The application was unable to start correctly: 0xc0000022". +###vhacd +Download it directly from https://github.com/virneo/v-hacd +cd src\ +mkdir build +cd build +cmake .. +Build using visual studio 2013. Build ALL_BUILD and INSTALL targets both in Release and Debug. This create a output folder with include and lib directory. +Either copy that folder to ENV %HIFI_LIB_DIR%/vhacd or create an environment variable VHACD_ROOT_DIR to this output directory. + ###freeglut Download the binary package: `freeglut-MSVC-2.8.1-1.mp.zip`. Extract to %HIFI_LIB_DIR%\freeglut.