About installation
Hi I'm trying to build and install OpenUSD on ubuntu22.04 in a conda environment with python 3.10. Before I manually give the python library to the "libpython3.10.so" file, it continuously give me error like cannot find "libpython3.10.a".
After my adjustment, I still get error info shown as follows:
/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_8__pxrReserved__::pxr_boost::python::api::slice_nil::~slice_nil()': sdfdump.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__9pxr_boost6python3api9slice_nilD2Ev[_ZN34pxrInternal_v0_25_8__pxrReserved__9pxr_boost6python3api9slice_nilD5Ev]+0x15): undefined reference to _Py_Dealloc'
/usr/bin/ld: CMakeFiles/sdfdump.dir/sdfdump.cpp.o: in function _GLOBAL__sub_I_main': sdfdump.cpp:(.text.startup+0x25b7): undefined reference to _Py_NoneStruct'
/usr/bin/ld: sdfdump.cpp:(.text.startup+0x25cf): undefined reference to _Py_NoneStruct' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceRemainder'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyLong_FromLong' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_AsUTF8String'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_CallMethodObjArgs' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_FromFormat'
/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 PyModule_Create2'
/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_KeyError'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PySlice_New' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyList_Sort'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyImport_ImportModule' /usr/bin/ld: CMakeFiles/sdffilter.dir/sdffilter.cpp.o: warning: relocation against _Py_NoneStruct' in read-only section .text.startup' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyExc_OverflowError'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyType_IsSubtype' /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 PyLong_Type' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyModule_GetDict'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_SetAttrString' /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 PyList_Insert' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyRun_FileExFlags'
/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 PyComplex_Type'
/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 PyDict_Copy' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyEval_RestoreThread'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_CallFunction' /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 PyDict_Size' /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 PyStaticMethod_New' /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 PyUnicode_FromString' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyErr_NoMemory'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyErr_Print' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyErr_SetString'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyGILState_Ensure' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_CallObject'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyBaseObject_Type' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyUnicode_FromStringAndSize'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_IsInstance' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyList_Type'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyModule_Type' /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 PyList_Append' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_HasAttrString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyMem_Free' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyObject_GetBuffer'
/usr/bin/ld: CMakeFiles/sdffilter.dir/sdffilter.cpp.o: in function pxrInternal_v0_25_8__pxrReserved__::pxr_boost::python::api::slice_nil::~slice_nil()': sdffilter.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__9pxr_boost6python3api9slice_nilD2Ev[_ZN34pxrInternal_v0_25_8__pxrReserved__9pxr_boost6python3api9slice_nilD5Ev]+0x15): undefined reference to _Py_Dealloc'
/usr/bin/ld: CMakeFiles/sdffilter.dir/sdffilter.cpp.o: in function pxrInternal_v0_25_8__pxrReserved__::VtValue::_TypeInfoImpl<pxrInternal_v0_25_8__pxrReserved__::SdfHumanReadableValue, pxrInternal_v0_25_8__pxrReserved__::TfDelegatedCountPtr<pxrInternal_v0_25_8__pxrReserved__::VtValue::_Counted<pxrInternal_v0_25_8__pxrReserved__::SdfHumanReadableValue> >, pxrInternal_v0_25_8__pxrReserved__::VtValue::_RemoteTypeInfo<pxrInternal_v0_25_8__pxrReserved__::SdfHumanReadableValue> >::_GetPyObj(std::aligned_storage<8ul, 8ul>::type const&)': sdffilter.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplINS_21SdfHumanReadableValueENS_19TfDelegatedCountPtrINS0_8_CountedIS2_EEEENS0_15_RemoteTypeInfoIS2_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE[_ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplINS_21SdfHumanReadableValueENS_19TfDelegatedCountPtrINS0_8_CountedIS2_EEEENS0_15_RemoteTypeInfoIS2_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE]+0xa1): undefined reference to _Py_Dealloc'
/usr/bin/ld: sdffilter.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplINS_21SdfHumanReadableValueENS_19TfDelegatedCountPtrINS0_8_CountedIS2_EEEENS0_15_RemoteTypeInfoIS2_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE[_ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplINS_21SdfHumanReadableValueENS_19TfDelegatedCountPtrINS0_8_CountedIS2_EEEENS0_15_RemoteTypeInfoIS2_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE]+0xb4): undefined reference to _Py_Dealloc' /usr/bin/ld: sdffilter.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplINS_21SdfHumanReadableValueENS_19TfDelegatedCountPtrINS0_8_CountedIS2_EEEENS0_15_RemoteTypeInfoIS2_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE[_ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplINS_21SdfHumanReadableValueENS_19TfDelegatedCountPtrINS0_8_CountedIS2_EEEENS0_15_RemoteTypeInfoIS2_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE]+0xed): undefined reference to _Py_Dealloc'
/usr/bin/ld: CMakeFiles/sdffilter.dir/sdffilter.cpp.o: in function pxrInternal_v0_25_8__pxrReserved__::VtValue::_TypeInfoImpl<std::map<double, pxrInternal_v0_25_8__pxrReserved__::VtValue, std::less<double>, std::allocator<std::pair<double const, pxrInternal_v0_25_8__pxrReserved__::VtValue> > >, pxrInternal_v0_25_8__pxrReserved__::TfDelegatedCountPtr<pxrInternal_v0_25_8__pxrReserved__::VtValue::_Counted<std::map<double, pxrInternal_v0_25_8__pxrReserved__::VtValue, std::less<double>, std::allocator<std::pair<double const, pxrInternal_v0_25_8__pxrReserved__::VtValue> > > > >, pxrInternal_v0_25_8__pxrReserved__::VtValue::_RemoteTypeInfo<std::map<double, pxrInternal_v0_25_8__pxrReserved__::VtValue, std::less<double>, std::allocator<std::pair<double const, pxrInternal_v0_25_8__pxrReserved__::VtValue> > > > >::_GetPyObj(std::aligned_storage<8ul, 8ul>::type const&)': sdffilter.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplISt3mapIdS0_St4lessIdESaISt4pairIKdS0_EEENS_19TfDelegatedCountPtrINS0_8_CountedIS9_EEEENS0_15_RemoteTypeInfoIS9_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE[_ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplISt3mapIdS0_St4lessIdESaISt4pairIKdS0_EEENS_19TfDelegatedCountPtrINS0_8_CountedIS9_EEEENS0_15_RemoteTypeInfoIS9_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE]+0xa1): undefined reference to _Py_Dealloc'
/usr/bin/ld: CMakeFiles/sdffilter.dir/sdffilter.cpp.o:sdffilter.cpp:(.text._ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplISt3mapIdS0_St4lessIdESaISt4pairIKdS0_EEENS_19TfDelegatedCountPtrINS0_8_CountedIS9_EEEENS0_15_RemoteTypeInfoIS9_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE[_ZN34pxrInternal_v0_25_8__pxrReserved__7VtValue13_TypeInfoImplISt3mapIdS0_St4lessIdESaISt4pairIKdS0_EEENS_19TfDelegatedCountPtrINS0_8_CountedIS9_EEEENS0_15_RemoteTypeInfoIS9_EEE9_GetPyObjERKNSt15aligned_storageILm8ELm8EE4typeE]+0xb4): more undefined references to _Py_Dealloc' follow /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_FSConverter'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyType_Type' /usr/bin/ld: CMakeFiles/sdffilter.dir/sdffilter.cpp.o: in function _GLOBAL__sub_I_main':
sdffilter.cpp:(.text.startup+0x3587): undefined reference to _Py_NoneStruct' /usr/bin/ld: sdffilter.cpp:(.text.startup+0x359f): undefined reference to _Py_NoneStruct'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceLshift' /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 PyBytes_AsString' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyLong_FromUnsignedLongLong'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyClassMethod_Type' /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 PyNumber_InPlaceRemainder' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyLong_FromLong'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_AsUTF8String' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_CallMethodObjArgs'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_FromFormat' /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 PyModule_Create2' /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_KeyError' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PySlice_New'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyList_Sort' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyImport_ImportModule'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyExc_OverflowError' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyType_IsSubtype'
/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 PyLong_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyModule_GetDict' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_SetAttrString'
/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 PyList_Insert'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyRun_FileExFlags' /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 PyComplex_Type' /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 PyDict_Copy'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyEval_RestoreThread' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_CallFunction'
/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 PyDict_Size'
/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 PyStaticMethod_New'
/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 PyUnicode_FromString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyErr_NoMemory' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyErr_Print'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyErr_SetString' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyGILState_Ensure'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_CallObject' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyDict_Values'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_Repr' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyBaseObject_Type'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyUnicode_FromStringAndSize' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_IsInstance'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyList_Type' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyModule_Type'
/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 PyList_Append'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_HasAttrString' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyMem_Free'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyObject_GetBuffer' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_FSConverter'
/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 PyNumber_InPlaceLshift'
/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 PyBytes_AsString'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyLong_FromUnsignedLongLong' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyClassMethod_Type'
/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 PyDict_Values'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_Repr' /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 PyDict_Keys' /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 PyNumber_InPlaceMultiply' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyArg_ParseTupleAndKeywords'
/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 PyObject_DelItem'
/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 Py_SetProgramName'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyCallable_Check' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyErr_Clear'
/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 PyLong_AsUnsignedLongLong'
/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 PyNumber_InPlaceAdd'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyDict_New' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyBuffer_Release'
/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 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 PyBytes_Size'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyGILState_Release' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Or'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyErr_NewException' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceOr'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyLong_AsUnsignedLong' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to Py_Initialize'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyExc_ReferenceError' /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 PyLong_AsSsize_t' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyEval_GetGlobals'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PySequence_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_GetItem' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyComplex_RealAsDouble'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyExc_TypeError' /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 Py_BuildValue' /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 PyObject_SetItem' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyType_Ready'
/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_Check'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyFloat_FromDouble' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Lshift'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_IsTrue' /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 PyDict_GetItemString' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Add'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyBool_FromLong' /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 PyTuple_GetItem' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceSubtract'
/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 PyExc_IndexError'
/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_Rshift'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_RichCompare' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyObject_Size'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_FloorDivide' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyLong_AsLongLong'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyLong_FromLongLong' /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 PyBool_Type' /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 PyNumber_Multiply' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyIter_Next'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyErr_Restore' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyErr_WarnEx'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyFrame_GetCode' /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 PyDict_Keys' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyObject_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_Call' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PySequence_Check'
/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 PyType_GenericAlloc'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyClassMethod_New' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyIter_Check'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceAnd' /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_InPlaceFloorDivide' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_GetAttr'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyByteArray_FromStringAndSize' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_FromEncodedObject'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_GetAttrString' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyGILState_GetThisThreadState'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyMem_Malloc' /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 PyCFunction_Type' /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 PyExc_SystemExit' /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 PyDict_GetItem' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyImport_AddModule'
/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_CallFunctionObjArgs'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyTuple_New' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyObject_CheckBuffer'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceXor' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_Str'
/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_SetAttr'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyEval_ReleaseThread' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceRshift'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyStaticMethod_Type' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyLong_FromUnsignedLong'
/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 PyTuple_Size'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_InternFromString' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyErr_Occurred'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Remainder' /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 PyComplex_ImagAsDouble' /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 PyNumber_InPlaceMultiply' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyArg_ParseTupleAndKeywords'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/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 PyObject_DelItem'
/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 Py_SetProgramName'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyCallable_Check' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyErr_Clear'
collect2: error: ld returned 1 exit status
/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 PyLong_AsUnsignedLongLong'
/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 PyNumber_InPlaceAdd'
gmake[2]: *** [pxr/usd/bin/sdffilter/CMakeFiles/sdffilter.dir/build.make:112: pxr/usd/bin/sdffilter/sdffilter] Error 1
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyDict_New' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyBuffer_Release'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyRun_StringFlags' gmake[1]: *** [CMakeFiles/Makefile2:6945: pxr/usd/bin/sdffilter/CMakeFiles/sdffilter.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... [ 72%] Built target pcp /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 PyBytes_Size' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyGILState_Release'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Or' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyErr_NewException'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceOr' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyLong_AsUnsignedLong'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to Py_Initialize' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyExc_ReferenceError'
/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 PyLong_AsSsize_t'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyEval_GetGlobals' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PySequence_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_GetItem'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyComplex_RealAsDouble' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyExc_TypeError'
/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 Py_BuildValue'
/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 PyObject_SetItem'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyType_Ready' /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_Check' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyFloat_FromDouble'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Lshift' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_IsTrue'
/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 PyDict_GetItemString'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Add' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyBool_FromLong'
/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 PyTuple_GetItem'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceSubtract' /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 PyExc_IndexError' /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_Rshift' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_RichCompare'
/usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyObject_Size' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_FloorDivide'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyLong_AsLongLong' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyLong_FromLongLong'
/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 PyBool_Type'
/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 PyNumber_Multiply'
/usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyIter_Next' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyErr_Restore'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyErr_WarnEx' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyFrame_GetCode'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyExc_StopIteration' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyObject_Type'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_Call' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PySequence_Check'
/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 PyType_GenericAlloc'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyClassMethod_New' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyIter_Check'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceAnd' /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_InPlaceFloorDivide' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyObject_GetAttr'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyByteArray_FromStringAndSize' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_FromEncodedObject'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_GetAttrString' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyGILState_GetThisThreadState'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyMem_Malloc' /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 PyCFunction_Type' /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 PyExc_SystemExit' /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 PyDict_GetItem' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyImport_AddModule'
/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_CallFunctionObjArgs'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyTuple_New' /usr/bin/ld: ../../../base/vt/libusd_vt.so: undefined reference to PyObject_CheckBuffer'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceXor' /usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyObject_Str'
/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_SetAttr'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyEval_ReleaseThread' /usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_InPlaceRshift'
/usr/bin/ld: ../../../base/tf/libusd_tf.so: undefined reference to PyStaticMethod_Type' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyLong_FromUnsignedLong'
/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 PyTuple_Size'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyUnicode_InternFromString' /usr/bin/ld: ../../sdf/libusd_sdf.so: undefined reference to PyErr_Occurred'
/usr/bin/ld: ../../../external/boost/python/libusd_python.so: undefined reference to PyNumber_Remainder' /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 `PyComplex_ImagAsDouble'
/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:112: pxr/usd/bin/sdfdump/sdfdump] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:6906: pxr/usd/bin/sdfdump/CMakeFiles/sdfdump.dir/all] Error 2
[ 77%] Built target hd
gmake: *** [Makefile:136: all] Error 2
Any idea about why is this happening? I consulted ChatGPT and it says it's some python-binding problem but I followed all the checks it mentioned but none of them worked.
It seems that conda might be causing various kinds of build errors when building USD. You could check the issues in this repository that mention conda for possible solutions. Alternatively, if possible, try building the project without using conda to see if that resolves the problem.
#3401 I checked this repo and installed libpython-static and still have the issue I mentioned....
Some update on my trials. I switched to a python 3.8 environment in conda and then everything is good......
I think the error is the same one of https://github.com/PixarAnimationStudios/OpenUSD/issues/2371, https://github.com/PixarAnimationStudios/OpenUSD/issues/2568 and https://github.com/PixarAnimationStudios/OpenUSD/issues/3031 and should be fixed by https://github.com/PixarAnimationStudios/OpenUSD/pull/3577 .