1) download the relevant components from the OpenEXR Official Website: http://www.openexr.com/downloads.html. The latest stable version is imlbase1.0.2sourcecodereleaseopenexr1.7.0sourcecoderel.pdf. download the latest version of zlib from the zlib official website. Http: // zlib. netZlib1.2.7sourcecode
1) download the relevant components from the OpenEXR Official Website: http://www.openexr.com/downloads.html. The latest stable version is:
ImlBase1.0.2 source code release
OpenEXR 1.7.0 source code release
Download the latest zlib version from the zlib website. Http://zlib.net
Zlib 1.2.7 source code release
2) decompress the package to the corresponding directory.
Sudo tar-zxvf ilmbase-1.0.2.tar.gz-C/usr/local/
Sudo tar-zxvf openexr-1.7.0.tar.gz-C/usr/local/
Sudo tar-zxvf zlib-1.2.7.tar.gz-C/usr/local/
3) Compile and install IlmBase
Install the C/C ++ Compiler
Sudo apt-get install gcc
Install relevant build tools in gcc
Apt-get install build-essential
Cd/usr/local/ilmbase-1.0.2
Sudo./configure
Sudo make
Sudo make install
4) Compile and install Zlib
Cd/usr/local/zlib-1.2.7
Sudo./configure
Sudo make
Sudo make install
4) install and compile OpenEXR
Sudo apt-get install gawk
Cd/usr/local/openexr-1.7.0
Sudo./configure
Sudo make
Sudo make install
Problems and Solutions:
1)/usr/local/include/OpenEXR/ImathMatrix. h: 1813: 5: error: 'memset' was not declared in this scope
Solution:
Sudo chmod a + w/usr/local/include/OpenEXR/ImathMatrix. h
Vi/usr/local/include/OpenEXR/ImathMatrix. h
Add # include "string. h" to the open file, save the file, and exit.
2) blurImage. cpp: 423: 62: error: 'memcpy' was not declared in this scope
Solution:
Sudo chmod a + w/usr/local/openexr-1.7.0/exrenvmap/blurImage. cpp
Vi/usr/local/openexr-1.7.0/exrenvmap/blurImage. cpp
Add # include "string. h" to the open file, save the file, and exit.