You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/alembic/files/alembic-fix-importerror.patch

18 lines
662 B

diff --git a/python/PyAlembic/CMakeLists.txt b/python/PyAlembic/CMakeLists.txt
index 254ca2b..c8c915a 100644
--- a/python/PyAlembic/CMakeLists.txt
+++ b/python/PyAlembic/CMakeLists.txt
@@ -45,6 +45,12 @@ IF (Boost_PYTHON_LIBRARY AND ALEMBIC_PYTHON_LIBRARY)
ADD_DEFINITIONS(-Wno-unused-local-typedefs)
ENDIF()
+ # fix for ImportError: dynamic module does not define init function (initalembic)
+ # see: https://github.com/alembic/alembic/issues/142
+ IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default")
+ ENDIF()
+
SET(CPP_FILES
PyAbcCoreLayer.cpp
PyAbcGeomTypes.cpp