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

Cannot find the library libpython3.12.a #3530

Open
Fisher-Wang opened this issue Feb 11, 2025 · 5 comments
Open

Cannot find the library libpython3.12.a #3530

Fisher-Wang opened this issue Feb 11, 2025 · 5 comments
Labels

Comments

@Fisher-Wang
Copy link

Fisher-Wang commented Feb 11, 2025

Environment:

  • Ubuntu 22.04

This is the build log at build/OpenUSD/log.txt:

cmake -DCMAKE_INSTALL_PREFIX="/home/user/pkg/openusd_build" -DCMAKE_PREFIX_PATH="/home/user/pkg/openusd_build" -DCMAKE_BUILD_TYPE=Release    -DPXR_PREFER_SAFETY_OVER_SPEED=ON -DPXR_ENABLE_PYTHON_SUPPORT=ON -DPXR_USE_DEBUG_PYTHON=OFF -DPXR_USE_BOOST_PYTHON=OFF -DPython3_EXECUTABLE="/home/user/miniconda3/bin/python" -DPython3_LIBRARY="/home/user/miniconda3/lib/libpython3.12.a" -DPython3_INCLUDE_DIR="/home/user/miniconda3/include/python3.12" -DBUILD_SHARED_LIBS=ON -DTBB_USE_DEBUG_BUILD=OFF -DPXR_BUILD_DOCUMENTATION=OFF -DPXR_BUILD_HTML_DOCUMENTATION=OFF -DPXR_BUILD_PYTHON_DOCUMENTATION=OFF -DPXR_BUILD_TESTS=OFF -DPXR_BUILD_EXAMPLES=ON -DPXR_BUILD_TUTORIALS=ON -DPXR_BUILD_USD_TOOLS=ON -DPXR_BUILD_USD_VALIDATION=ON -DPXR_BUILD_IMAGING=ON -DPXR_ENABLE_PTEX_SUPPORT=OFF -DPXR_ENABLE_OPENVDB_SUPPORT=OFF -DPXR_BUILD_EMBREE_PLUGIN=OFF -DPXR_BUILD_PRMAN_PLUGIN=OFF -DPXR_BUILD_OPENIMAGEIO_PLUGIN=OFF -DPXR_BUILD_OPENCOLORIO_PLUGIN=OFF -DPXR_BUILD_USD_IMAGING=ON -DPXR_BUILD_USDVIEW=ON -DPXR_BUILD_ALEMBIC_PLUGIN=OFF -DPXR_BUILD_DRACO_PLUGIN=OFF -DPXR_ENABLE_MATERIALX_SUPPORT=ON -DPXR_BUILD_MAYAPY_TESTS=OFF -DPXR_BUILD_ANIMX_TESTS=OFF -DBoost_NO_BOOST_CMAKE=On -DBoost_NO_SYSTEM_PATHS=True "/home/user/pkg/OpenUSD"
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Python3 (missing: Development Development.Embed) (found
  version "3.12.2")

      Reason given by package:
          Development: Cannot find the library "/home/user/miniconda3/lib/libpython3.12.a"

Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.31/Modules/FindPython/Support.cmake:4002 (find_package_handle_standard_args)
  /usr/share/cmake-3.31/Modules/FindPython3.cmake:602 (include)
  cmake/defaults/Packages.cmake:47 (find_package)
  cmake/defaults/Packages.cmake:96 (setup_python_package)
  CMakeLists.txt:23 (include)

Then I check the folder /home/user/miniconda3/lib, there is no libpython3.12.a, but there is a libpython3.12.so.

Is there any chance I could use the dynamic library? Alternatively, how could I get the static library?

@meshula meshula added the conda label Feb 11, 2025
@meshula
Copy link
Member

meshula commented Feb 11, 2025

Conda still poses challenges to the build system, and I can't say there are definitive answers that work for everyone's set ups yet. Could I suggest starting by looking at the issues tagged with the conda label?

@Fisher-Wang
Copy link
Author

Hi, thank you for your response! I followed this issue and run

export CONDA_PREFIX=~/miniconda3
python build_scripts/build_usd.py ~/pkg/openusd_build_python --build-python-info $CONDA_PREFIX/bin/python3.12 $CONDA_PREFIX/include/python3.12 $CONDA_PREFIX/lib/python3.12 3.12

which fix the above error.

However, I encountered a new error:

/usr/bin/ld: CMakeFiles/sdfdump.dir/sdfdump.cpp.o: warning: relocation against `_Py_NoneStruct' in read-only section `.text.startup'
/usr/bin/ld: CMakeFiles/sdfdump.dir/sdfdump.cpp.o: in function `pxrInternal_v0_25_2__pxrReserved__::pxr_boost::python::api::slice_nil::~slice_nil()':
sdfdump.cpp:(.text._ZN34pxrInternal_v0_25_2__pxrReserved__9pxr_boost6python3api9slice_nilD2Ev[_ZN34pxrInternal_v0_25_2__pxrReserved__9pxr_boost6python3api9slice_nilD5Ev]+0x25): undefined reference to `_Py_Dealloc'
/usr/bin/ld: CMakeFiles/sdfdump.dir/sdfdump.cpp.o: in function `_GLOBAL__sub_I_main':
sdfdump.cpp:(.text.startup+0x25b6): undefined reference to `_Py_NoneStruct'
/usr/bin/ld: sdfdump.cpp:(.text.startup+0x25c1): undefined reference to `_Py_NoneStruct'
/usr/bin/ld: sdfdump.cpp:(.text.startup+0x25c8): undefined reference to `_Py_NoneStruct'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyObject_GetBuffer'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_Repr'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyClassMethod_Type'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyExc_ValueError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyLong_AsLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceFloorDivide'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyBool_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_GetAttr'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_GetItemString'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyImport_AddModule'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_Call'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyIter_Check'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_KeyError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_And'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_IndexError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_Init'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyEval_GetGlobals'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyTuple_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceSubtract'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_Str'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyList_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyGILState_GetThisThreadState'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_GetAttrString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyModule_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyMem_Free'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyErr_Restore'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyType_IsSubtype'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyModule_GetDict'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyStaticMethod_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyErr_WarnEx'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyObject_CheckBuffer'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyRun_SimpleStringFlags'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_InternFromString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyTuple_New'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_SetAttr'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_IsInstance'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyEval_RestoreThread'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_KeyboardInterrupt'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyErr_NoMemory'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyExc_AttributeError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Add'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_FromFormat'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyList_Append'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyType_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyExc_ReferenceError'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyImport_GetModuleDict'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyArg_ParseTupleAndKeywords'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyStaticMethod_New'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceMultiply'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyTuple_Size'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyErr_SetObject'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `_PyObject_New'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Keys'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyType_GenericAlloc'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyBuffer_Release'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyErr_Format'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_CallFunction'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_CallObject'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyFloat_FromDouble'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyList_Reverse'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyCFunction_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyExc_OverflowError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyMem_Malloc'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyLong_FromUnsignedLongLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `Py_BuildValue'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyErr_ExceptionMatches'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyComplex_ImagAsDouble'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyList_New'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyImport_ImportModule'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyProperty_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_FromString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceOr'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_SystemExit'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyBytes_Size'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PySequence_Check'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_DelItem'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_FloorDivide'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyErr_Clear'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_HasAttrString'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyRun_StringFlags'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_GetItem'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyWeakref_NewRef'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Multiply'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Lshift'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_New'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyClassMethod_New'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyErr_SetString'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `Py_SetProgramName'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Update'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PySlice_New'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyRun_FileExFlags'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_SetItem'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_CallMethodObjArgs'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyByteArray_FromStringAndSize'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyUnicode_AsUTF8'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_SetAttrString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_FromEncodedObject'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyLong_AsUnsignedLongLong'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyGILState_Release'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_RuntimeError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Xor'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyBytes_AsString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `_Py_NotImplementedStruct'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Rshift'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyBaseObject_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_StopIteration'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_GetItem'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyExc_TypeError'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyEval_SetTrace'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Values'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyType_Ready'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyObject_Size'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyEval_SaveThread'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyMethod_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyMethod_New'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_ClearWeakRefs'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyLong_AsSsize_t'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyLong_AsLongLong'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PySequence_Size'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Remainder'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyLong_FromLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyErr_NewException'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyLong_FromLongLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Or'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_IsTrue'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyGILState_Check'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyList_Sort'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyModule_Create2'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_AsWideChar'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyLong_AsUnsignedLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceRemainder'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyWeakref_GetObject'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_FSConverter'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyErr_Occurred'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Copy'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyLong_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyErr_Fetch'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceAnd'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyObject_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceXor'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `_PyType_Lookup'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyObject_CallFunctionObjArgs'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Size'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceRshift'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyFloat_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyEval_ReleaseThread'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to `PyIter_Next'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyCallable_Check'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyComplex_RealAsDouble'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyLong_FromUnsignedLong'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PySys_SetArgv'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyList_Insert'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyObject_RichCompare'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Items'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyGILState_Ensure'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyCMethod_New'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `Py_Initialize'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyErr_Print'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyTuple_GetItem'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `PyFrame_GetCode'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to `Py_IsInitialized'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_Subtract'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyComplex_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyUnicode_AsUTF8String'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyUnicode_FromStringAndSize'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyDict_Clear'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceLshift'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to `PyBool_FromLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to `PyNumber_InPlaceAdd'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
gmake[2]: *** [pxr/usd/bin/sdfdump/CMakeFiles/sdfdump.dir/build.make:115: pxr/usd/bin/sdfdump/sdfdump] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:8529: pxr/usd/bin/sdfdump/CMakeFiles/sdfdump.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

The full log is here.

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10669

(This is an automated message. See here for more information.)

@Forestzju
Copy link

Same problem🥲did you solve it?

@Fisher-Wang
Copy link
Author

Same problem🥲did you solve it?

Not yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants