Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I was able to get OpenEXR to install by adding -std=c++11 to the extra_compile_flags in setup.py, as Igritz and peterhillman suggested. Here's the file with it added: #689

Closed
yaodao-x opened this issue Mar 21, 2020 · 2 comments
Milestone

Comments

@yaodao-x
Copy link

I was able to get OpenEXR to install by adding -std=c++11 to the extra_compile_flags in setup.py, as Igritz and peterhillman suggested. Here's the file with it added:

from distutils.core import setup
from distutils.extension import Extension
from distutils.command.build_py import build_py as _build_py

from os import system

from distutils.core import setup, Extension

version = "1.3.2"
setup(name='OpenEXR',
  author = 'James Bowman',
  author_email = 'jamesb@excamera.com',
  url = 'http://www.excamera.com/sphinx/articles-openexr.html',
  description = "Python bindings for ILM's OpenEXR image file format",
  long_description = "Python bindings for ILM's OpenEXR image file format",
  version=version,
  ext_modules=[ 
    Extension('OpenEXR',
              ['OpenEXR.cpp'],
              include_dirs=['/usr/include/OpenEXR', '/usr/local/include/OpenEXR', '/opt/local/include/OpenEXR'],
              library_dirs=['/usr/local/lib', '/opt/local/lib'],
              libraries=['Iex', 'Half', 'Imath', 'IlmImf', 'z'],
              extra_compile_args=['-g', '-std=c++11', '-DVERSION="%s"' % version])
  ],
  py_modules=['Imath'],
)

Then, I did python setup.py install in the terminal.

Originally posted by @richbobo in #567 (comment)

@yaodao-x
Copy link
Author

that's work fo me.
Thanks a lot.
masox10.15.3

@cary-ilm
Copy link
Member

cary-ilm commented Apr 2, 2020

This doesn't seem to pertain to OpenEXR itself, only to the excamera python bindings, which are not a part of the OpenEXR project. Closing the issue for now, but if you have another question or need further assist, feel free to re-open or file a new issue.

@cary-ilm cary-ilm closed this as completed Apr 2, 2020
@cary-ilm cary-ilm added this to the v2.5.0 milestone Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants