|
Packit |
8dc392 |
WINDOWS
|
|
Packit |
8dc392 |
-------
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
Build IlmBase and OpenEXR on Windows using cmake
|
|
Packit |
8dc392 |
------------------
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
What follows are instructions for generating Visual Studio solution
|
|
Packit |
8dc392 |
files and building those two packages
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
1. Launch a command window, navigate to the IlmBase folder with
|
|
Packit |
8dc392 |
CMakeLists.txt,and type command:
|
|
Packit |
8dc392 |
setlocal
|
|
Packit |
8dc392 |
del /f CMakeCache.txt
|
|
Packit |
8dc392 |
cmake
|
|
Packit |
8dc392 |
-DCMAKE_INSTALL_PREFIX=<where you want to install the ilmbase builds>
|
|
Packit |
8dc392 |
-G "Visual Studio 10 Win64"
|
|
Packit |
8dc392 |
..\ilmbase
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
2. Navigate to IlmBase folder in Windows Explorer, open ILMBase.sln
|
|
Packit |
8dc392 |
and build the solution. When it build successfully, right click
|
|
Packit |
8dc392 |
INSTALL project and build. It will install the output to the path
|
|
Packit |
8dc392 |
you set up at the previous step.
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
3. Go to http://www.zlib.net and download zlib
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
4. Launch a command window, navigate to the OpenEXR folder with
|
|
Packit |
8dc392 |
CMakeLists.txt, and type command:
|
|
Packit |
8dc392 |
setlocal
|
|
Packit |
8dc392 |
del /f CMakeCache.txt
|
|
Packit |
8dc392 |
cmake
|
|
Packit |
8dc392 |
-DZLIB_ROOT=<zlib location>
|
|
Packit |
8dc392 |
-DILMBASE_PACKAGE_PREFIX=<where you installed the ilmbase builds>
|
|
Packit |
8dc392 |
-DCMAKE_INSTALL_PREFIX=<where you want to instal the openexr builds>
|
|
Packit |
8dc392 |
-G "Visual Studio 10 Win64" ^
|
|
Packit |
8dc392 |
..\openexr
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
5. Navigate to OpenEXR folder in Windows Explorer, open OpenEXR.sln
|
|
Packit |
8dc392 |
and build the solution. When it build successfully, right click
|
|
Packit |
8dc392 |
INSTALL project and build. It will install the output to the path
|
|
Packit |
8dc392 |
you set up at the previous step.
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
LINUX
|
|
Packit |
8dc392 |
-----
|
|
Packit |
8dc392 |
mkdir /tmp/openexrbuild
|
|
Packit |
8dc392 |
cd /tmp/openexrbuild
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
-------------
|
|
Packit |
8dc392 |
-- IlmBase --
|
|
Packit |
8dc392 |
-------------
|
|
Packit |
8dc392 |
initial bootstraping:
|
|
Packit |
8dc392 |
cmake -DCMAKE_INSTALL_PREFIX=<install location> <source location of IlmBase>
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
build the actual code base:
|
|
Packit |
8dc392 |
make -j 4
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
for testing do:
|
|
Packit |
8dc392 |
make test
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
then to install to your chosen location:
|
|
Packit |
8dc392 |
make install
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
|
|
Packit |
8dc392 |
|