Problem with PyAlembic installation

261 views
Skip to first unread message

Zixuan Song

unread,
May 23, 2023, 3:14:54 AM5/23/23
to alembic-discussion
Hey I met this error when trying to build PyAlembic(1.8.5).

─(14:59:34)──> cmake ..                                                                                                                                                                 
-- CMAKE SYSTEM NAME: Linux
Defaulting CMAKE_CXX_STANDARD to 14
-- The install dir is /usr/local
-- Found package Imath
-- Found Python 3.8.16
-- Found package Imath using: Imath::PyImath_Python3_8
-- BOOST INCLUDE DIRS: /usr/local/include
-- BOOST LIBRARIES: Boost::python
CMake Error at python/PyAlembic/Tests/CMakeLists.txt:49 (GET_TARGET_PROPERTY):
  get_target_property() called with non-existent target
  "Imath::PyImath_Python3_8".


-- Skipping AbcConvert: it requires USE_HDF5

   * Alembic Configuration              ===
   * USE_ARNOLD                         OFF
   * USE_BINARIES                       ON
   * USE_EXAMPLES                       OFF
   * USE_HDF5                           OFF
   * USE_MAYA                           OFF
   * USE_PRMAN                          OFF
   * USE_PYALEMBIC                      ON
   * USE_STATIC_BOOST                   OFF
   * USE_STATIC_HDF5                    OFF
   * USE_TESTS                          ON
   * ALEMBIC_ILMBASE_LINK_STATIC        OFF
   * ALEMBIC_SHARED_LIBS                ON
   * ALEMBIC_DEBUG_WARNINGS_AS_ERRORS   ON
   * PYALEMBIC_PYTHON_MAJOR             3
   * DOCS_PATH                          OFF
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/alembic-1.8.5/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/alembic-1.8.5/build/CMakeFiles/CMakeError.log".

I've already built Boost(1.57.0) and Imath with python bindings. Tried to rebuild but it still didn't work. Can anyone figure out what problem it is? Where can I find the latest install guide of the dependencies? Thanks a lot!

Lucas Miller

unread,
May 23, 2023, 12:11:19 PM5/23/23
to alembic-d...@googlegroups.com
What version of Imath did you build?

In your lib/cmake/Imath/ImathTargets-release.cmake you should see a set_target_properties for Imath::PyImath_Python3_8  one of which is IMPORTED_LOCATION_RELEASE which the python unit tests need so that they know where they can find PyImath for importing.

An example of our set_target_properties (built against python3.9) looks like:

set_target_properties(Imath::PyImath_Python3_9 PROPERTIES   IMPORTED_LINK_DEPENDENT_LIBRARIES_RELEASE "Python3::Python"   IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib64/libPyImath_Python3_9-3_1.so.29.4.0"   IMPORTED_SONAME_RELEASE "libPyImath_Python3_9-3_1.so.29" 
  )

Lucas

--
You received this message because you are subscribed to the Google Groups "alembic-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alembic-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alembic-discussion/5cfd36ba-5c12-4c5c-86f3-c6edd59ba0ccn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages