You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was setting up a build with the above configuration on Windows 10 and ran into two minor build issues:
When building the Python bindings, I got several errors like:
...\imath-3.1.1\src\python\PyImath\PyImathStringTable.cpp(38,18): error C2039: 'domain_error': is not a member of 'std' [...\imath-3.1.1\src\python\PyImath\PyImath_Python3_7.vcxproj]
I resolved this by adding #include <stdexcept> to PyImathStringTable.cpp
The other issue may be more specific to my environment, but I will mention it just in case. When building with IMATH_HALF_USE_LOOKUP_TABLE=OFF I run into the following error:
...\Imath\half.h(329,14): error C3861: '__lzcnt': identifier not found [...\imath-3.1.1\src\Imath\Imath.vcxproj]
I resolved this error by specifying in CMAKE_CXX_FLAGS: /D__x86_64__=1 to force the inclusion of intrin.h in half.h, which was being bypassed otherwise.
Imath 3.1.1
MSVC 14.2 x64 c++17
I was setting up a build with the above configuration on Windows 10 and ran into two minor build issues:
When building the Python bindings, I got several errors like:
I resolved this by adding
#include <stdexcept>
toPyImathStringTable.cpp
The other issue may be more specific to my environment, but I will mention it just in case. When building with
IMATH_HALF_USE_LOOKUP_TABLE=OFF
I run into the following error:I resolved this error by specifying in
CMAKE_CXX_FLAGS
:/D__x86_64__=1
to force the inclusion ofintrin.h
in half.h, which was being bypassed otherwise.Here's my configure and build commands:
The text was updated successfully, but these errors were encountered: