Compile and install OpenEXR In Ubuntu. 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 releaseOpenEXR 1.7.0 source code release. download the latest version of zlib from the zlib official website. Http://zlib.netZlib 1.2.7 source code release
2) unzip 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 www.2cto.com install C/C ++ compiler sudo apt-get install gccgcc install related build tools apt-get install build-essential cd/usr/local/ilmbase-1.0.2sudo. /configuresudo makesudo make install4) Compile and install Zlibcd/usr/local/zlib-1.2.7sudo. /configuresudo makesudo make install
4) install and compile OpenEXRsudo apt-get install gawkcd/usr/local/openexr-1.7.0sudo./configuresudo makesudo make install www.2cto.com
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. hvi/usr/local/include/OpenEXR/ImathMatrix. h add # include "string. h ", save 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. cppvi/usr/local/openexr-1.7.0/exrenvmap/blurImage. cpp adds # include "string. h ", save and exit. Author lqhbupt