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

Building pyilmbase 1.0.0 issues #105

Closed
elitvinchuk opened this issue Jul 16, 2014 · 2 comments
Closed

Building pyilmbase 1.0.0 issues #105

elitvinchuk opened this issue Jul 16, 2014 · 2 comments
Labels
Build A problem with building or installing the library.

Comments

@elitvinchuk
Copy link

Hi, everyone!

I'm trying to build pyilmbase library on osx 10.9 and face some problems. I've boost 1.48, configured and installed it with these options:

export CXXFLAGS="-fPIC"
export CFLAGS="-fPIC"
export LDFLAGS="-fPIC"
./bootstrap.sh --with-libraries=program_options --with-libraries=thread --with-libraries=python
sudo ./bjam install --layout=versioned link=static threading=multi cxxflags=-fPIC

it has installed successfully. After that I cd-ed to pyilmbase folder and ran

export CPPFLAGS="-I/usr/local/lib/python2.7/site-packages/numpy/core/include/"
./configure --with-boost-include-dir=/usr/local/include/boost-1_48/ --with-boost-lib-dir=/usr/local/lib --with-boost-python-libname=boost_python-mt-1_48

Output (with no errors):

---------------------------------------------
Summary for PyIlmBase features:

Python version                                  2.7
boost::python libname                           boost_python-mt-1_47
---------------------------------------------

but when I try to make it i get these errors:

PyImathStringTable.cpp:47:46: error: expected expression
    const StringSet &strings = _table.get<1>();
                                             ^
PyImathStringTable.cpp:62:45: error: expected expression
    const IndexSet &indices = _table.get<0>();
                                            ^
PyImathStringTable.cpp:77:46: error: expected expression
    const StringSet &strings = _table.get<1>();
                                             ^
PyImathStringTable.cpp:105:46: error: expected expression
    const StringSet &strings = _table.get<1>();
                                             ^
PyImathStringTable.cpp:114:45: error: expected expression
    const IndexSet &indices = _table.get<0>();
                                            ^
PyImathStringTable.cpp:47:22: error: declaration of reference variable 'strings' requires an initializer
    const StringSet &strings = _table.get<1>();
                     ^~~~~~~
PyImathStringTable.cpp:121:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<char> >::lookup' requested here
template class PYIMATH_EXPORT StringTableT<std::string>;
                              ^
PyImathStringTable.cpp:62:21: error: declaration of reference variable 'indices' requires an initializer
    const IndexSet &indices = _table.get<0>();
                    ^~~~~~~
PyImathStringTable.cpp:121:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<char> >::lookup' requested here
template class PYIMATH_EXPORT StringTableT<std::string>;
                              ^
PyImathStringTable.cpp:77:22: error: declaration of reference variable 'strings' requires an initializer
    const StringSet &strings = _table.get<1>();
                     ^~~~~~~
PyImathStringTable.cpp:121:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<char> >::intern' requested here
template class PYIMATH_EXPORT StringTableT<std::string>;
                              ^
PyImathStringTable.cpp:105:22: error: declaration of reference variable 'strings' requires an initializer
    const StringSet &strings = _table.get<1>();
                     ^~~~~~~
PyImathStringTable.cpp:121:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<char> >::hasString' requested here
template class PYIMATH_EXPORT StringTableT<std::string>;
                              ^
PyImathStringTable.cpp:114:21: error: declaration of reference variable 'indices' requires an initializer
    const IndexSet &indices = _table.get<0>();
                    ^~~~~~~
PyImathStringTable.cpp:121:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<char> >::hasStringIndex' requested here
template class PYIMATH_EXPORT StringTableT<std::string>;
                              ^
PyImathStringTable.cpp:47:22: error: declaration of reference variable 'strings' requires an initializer
    const StringSet &strings = _table.get<1>();
                     ^~~~~~~
PyImathStringTable.cpp:122:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<wchar_t> >::lookup' requested here
template class PYIMATH_EXPORT StringTableT<std::wstring>;
                              ^
PyImathStringTable.cpp:62:21: error: declaration of reference variable 'indices' requires an initializer
    const IndexSet &indices = _table.get<0>();
                    ^~~~~~~
PyImathStringTable.cpp:122:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<wchar_t> >::lookup' requested here
template class PYIMATH_EXPORT StringTableT<std::wstring>;
                              ^
PyImathStringTable.cpp:77:22: error: declaration of reference variable 'strings' requires an initializer
    const StringSet &strings = _table.get<1>();
                     ^~~~~~~
PyImathStringTable.cpp:122:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<wchar_t> >::intern' requested here
template class PYIMATH_EXPORT StringTableT<std::wstring>;
                              ^
PyImathStringTable.cpp:105:22: error: declaration of reference variable 'strings' requires an initializer
    const StringSet &strings = _table.get<1>();
                     ^~~~~~~
PyImathStringTable.cpp:122:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<wchar_t> >::hasString' requested here
template class PYIMATH_EXPORT StringTableT<std::wstring>;
                              ^
PyImathStringTable.cpp:114:21: error: declaration of reference variable 'indices' requires an initializer
    const IndexSet &indices = _table.get<0>();
                    ^~~~~~~
PyImathStringTable.cpp:122:31: note: in instantiation of member function 'PyImath::StringTableT<std::__1::basic_string<wchar_t> >::hasStringIndex' requested
      here
template class PYIMATH_EXPORT StringTableT<std::wstring>;
                              ^
15 errors generated.
make[1]: *** [PyImathStringTable.lo] Error 1
make: *** [all-recursive] Error 1

Using osx 10.9, Boost 1.48, pyilmbase 1.0.0 and python 2.7 installed with brew

Hope for your assistance.
Thanks in advance!

@ehanway-ilm ehanway-ilm modified the milestone: v2.2.1 May 2, 2016
@cary-ilm
Copy link
Member

Looking into the OpenEXR issue backlog. Is this still an issue?

@cary-ilm cary-ilm removed this from the v2.2.1 milestone Jun 28, 2019
@meshula
Copy link
Contributor

meshula commented Jul 1, 2019

This version of boost is off the radar for vfxplatform. Please re-open if issues recur.

@meshula meshula closed this as completed Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build A problem with building or installing the library.
Projects
None yet
Development

No branches or pull requests

4 participants