-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
127 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* Windows: Visual Studio 2019 (MSVC 14.2) | ||
|
||
### Required Build Dependencies | ||
* Installation of Houdini 17.0 or later (see https://sidefx.com/download) | ||
* Installation of Houdini 17.5 or later (see https://sidefx.com/download) | ||
|
||
The following will be automatically fetched via the bootstrap steps below: | ||
* [CityEngine SDK](https://github.com/esri/cityengine-sdk) | ||
|
@@ -23,22 +23,22 @@ The following will be automatically fetched via the bootstrap steps below: | |
|
||
## Build Instructions | ||
|
||
Default is Houdini 18.0. See below how to build for different Houdini versions. | ||
Default is Houdini 18.5. See below how to build for different Houdini versions. | ||
|
||
### Bootstrap | ||
|
||
The below steps will populate your local Conan repository with dependencies for the Palladio build system. You only need to work through this section once (or if you want to upgrade one of the dependencies). | ||
|
||
#### Linux | ||
1. Checkout Palladio: `git clone [email protected]:esri/palladio.git && cd palladio` | ||
1. Download CityEngine SDK: `conan create -pr conan/profiles/linux-gcc63 conan/cesdk cesdk/2.1.5704@esri-rd-zurich/stable` | ||
1. Extract and package the HDK from your local Houdini 18 installation (adjust Z to your Houdini version): `conan create -pr conan/profiles/linux-gcc63 conan/houdini houdini/18.0.Z@sidefx/stable` (Note: use the option `-e HOUDINI_INSTALL=/path/to/your/hfs18.0.Z`, if Houdini is not installed at the standard location, e.g. at `/opt/hfs18.0.Z` for Linux). | ||
1. Download CityEngine SDK: `conan create -pr conan/profiles/linux-gcc63 conan/cesdk cesdk/2.3.6821@esri-rd-zurich/stable` | ||
1. Extract and package the HDK from your local Houdini 18.5 installation (adjust Z to your Houdini version): `conan create -pr conan/profiles/linux-gcc63 conan/houdini houdini/18.5.Z@sidefx/stable` (Note: use the option `-e HOUDINI_INSTALL=/path/to/your/hfs18.5.Z`, if Houdini is not installed at the standard location, e.g. at `/opt/hfs18.5.Z` for Linux). | ||
|
||
#### Windows | ||
1. Checkout Palladio: `git clone [email protected]:esri/palladio.git` | ||
1. Open a Windows command shell and `cd` to the Palladio git repository | ||
1. Download CityEngine SDK: `conan create -pr conan/profiles/windows-v141 conan/cesdk cesdk/2.1.5704@esri-rd-zurich/stable` | ||
1. Extract and package the HDK from your local Houdini installation (adjust Z to your Houdini version): `conan create -pr conan/profiles/windows-v141 conan/houdini houdini/18.0.Z@sidefx/stable` (Note: use the option `-e HOUDINI_INSTALL=C:/path/to/your/houdini/installation`, if Houdini is not installed at the standard location for Windows). | ||
1. Download CityEngine SDK: `conan create -pr conan/profiles/windows-v142 conan/cesdk cesdk/2.3.6821@esri-rd-zurich/stable` | ||
1. Extract and package the HDK from your local Houdini installation (adjust Z to your Houdini version): `conan create -pr conan/profiles/windows-v142 conan/houdini houdini/18.5.Z@sidefx/stable` (Note: use the option `-e HOUDINI_INSTALL=C:/path/to/your/houdini/installation`, if Houdini is not installed at the standard location for Windows). | ||
|
||
### Building Palladio | ||
|
||
|
@@ -47,34 +47,35 @@ Note: to build for another Houdini version, add the cmake argument `-DPLD_HOUDIN | |
#### Linux | ||
1. Ensure GCC 6.3 is active. | ||
1. `cd` into your Palladio git repository | ||
1. ```mkdir -p build/release && cd build/release``` | ||
1. ```cmake -DCMAKE_BUILD_TYPE=Release ../../src``` | ||
1. ```make install``` (the plugin will be installed into your ~/houdini18.0/dso directory) | ||
1. `mkdir -p build/release && cd build/release` | ||
1. `cmake -DCMAKE_BUILD_TYPE=Release ../../src` | ||
1. `make install` (the plugin will be installed into your `~/houdini18.5/dso` directory) | ||
|
||
#### Windows | ||
1. Open a MSVC 14.1 x64 shell (Visual Studio 2017) and `cd` to the Palladio git repository | ||
1. ```mkdir build/release``` | ||
1. ```cd build/release``` | ||
1. ```cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ../../src``` | ||
1. ```nmake install``` (the plugin will be installed into your ~/houdini18.0/dso directory) | ||
1. Open a MSVC 14.2 x64 shell (Visual Studio 2019) and `cd` to the Palladio git repository | ||
1. `mkdir build/release` | ||
1. `cd build/release` | ||
1. `cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ../../src` | ||
1. `nmake install` (the plugin will be installed into your `%USERPROFILE%/Documents/houdini18.5/dso` directory) | ||
|
||
### Running Palladio | ||
See [Quick Start](usage.md) how to launch Houdini with Palladio. | ||
|
||
### Building and Running Unit Tests | ||
|
||
#### Linux | ||
1. Ensure GCC 6.3 is active. | ||
1. `cd` into your Palladio git repository | ||
1. ```mkdir -p build/relTest && cd build/relTest``` | ||
1. ```cmake -DCMAKE_BUILD_TYPE=Release -DPLD_TEST=1 ../../src``` | ||
1. ```make palladio_test``` | ||
1. `mkdir -p build/relTest && cd build/relTest` | ||
1. `cmake -DCMAKE_BUILD_TYPE=Release -DPLD_TEST=1 ../../src` | ||
1. `make palladio_test` | ||
1. run `bin/palladio_test` | ||
|
||
#### Windows | ||
1. Open a MSVC 14.1 x64 shell (Visual Studio 2017) and `cd` to the Palladio git repository | ||
1. ```mkdir build/relTest``` | ||
1. ```cd build/relTest``` | ||
1. ```cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DPLD_TEST=1 ../../src``` | ||
1. ```nmake palladio_test``` | ||
1. Open a MSVC 14.2 x64 shell (Visual Studio 2019) and `cd` to the Palladio git repository | ||
1. `mkdir build/relTest` | ||
1. `cd build/relTest` | ||
1. `cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DPLD_TEST=1 ../../src` | ||
1. `nmake palladio_test` | ||
1. ensure that the `bin` subdirectory of your Houdini installation is in the `PATH` | ||
1. run `bin\palladio_test` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
from conans import ConanFile | ||
|
||
|
||
class PalladioConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "cmake" | ||
|
||
def requirements(self): | ||
self.requires("catch2/2.0.1@bincrafters/stable") | ||
|
||
if "PLD_CONAN_HOUDINI_VERSION" in os.environ: | ||
self.requires("houdini/{}@sidefx/stable".format(os.environ["PLD_CONAN_HOUDINI_VERSION"])) | ||
else: | ||
self.requires("houdini/[>18.5.0 <19.0.0]@sidefx/stable") | ||
|
||
if "PLD_CONAN_SKIP_CESDK" not in os.environ: | ||
if "PLD_CONAN_CESDK_VERSION" in os.environ: | ||
cesdk_version = os.environ["PLD_CONAN_CESDK_VERSION"] | ||
else: | ||
cesdk_version = "2.3.6821" | ||
self.requires("cesdk/{}@esri-rd-zurich/stable".format(cesdk_version)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.