Skip to content

Commit

Permalink
Merge pull request #9 from HosameldinMohamed/updateDoc
Browse files Browse the repository at this point in the history
Update README to set BUILD_SHARED ON
  • Loading branch information
S-Dafarra authored May 16, 2022
2 parents 5c63b85 + cd153db commit e6694ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,16 @@ git clone -b fix_upstream https://github.com/ami-iit/openvr
cd openvr
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -DCMAKE_INSTALL_PREFIX:PATH=<full-absolute-path-to-where-you-want-to-install-openvr> -DBUILD_SHARED=OFF ..
cmake -G "Visual Studio 17 2022" -DCMAKE_INSTALL_PREFIX:PATH=<full-absolute-path-to-where-you-want-to-install-openvr> -DBUILD_SHARED=ON ..
cmake --build . --config Release
cmake --install . --config Release
```
⚠️ **WARNING: It is recommended to mention a custom location for CMAKE_INSTALL_PREFIX that does not require administrator privileges.**
⚠️ **WARNING: It is recommended to specify an absolute path to the install location in order to avoid strange, unresolved behaviors.**
⚠️ **WARNING: It must be noted that the configuration tag `Visual Studio 17 2022` applies for a Visual Studio 2022 Installation. Previous versions of installation should use corresponding tags, such as `Visual Studio 16 2019` for a 2019 installation**

**NOTE:** The CMake option `BUILD_SHARED` needs to be set to `ON` on Windows, while on Linux/macOS it can be left to be `OFF`.

**NOTE:** Since we are using the conda environment for installation, a common trick to avoid having to set new environment variables is just to install the CMake project directly in the environment, i.e. passing `-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX` on Linux/macOS or `-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library` on Windows.

### Add OpenVR package to Package Configuration Path
Expand Down

0 comments on commit e6694ad

Please sign in to comment.