Compile and install OpenEXR in Ubuntu

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.