0

I'm trying to integrate physx into my project but I face this strange error:

/usr/bin/ld: ../libs/linux/physx/libPhysX_static_64.a(PxPhysXGpuModuleLoader.cpp.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/TechDemo.dir/build.make:190: TechDemo] Error 1
make[1]: *** [CMakeFiles/Makefile2:109: CMakeFiles/TechDemo.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

This is a chunk of my cmake:

    set(PHYSX_LIBS
        "libPhysX_static_64.a"
        "libPhysXCommon_static_64.a"
        "libPhysXFoundation_static_64.a"
        "libPhysXExtensions_static_64.a"
        "libPhysXCooking_static_64.a"
        "libPhysXPvdSDK_static_64.a"
        # "libPhysXTask_static_64.a"
        "libPhysXVehicle_static_64.a"
        "libPhysXCharacterKinematic_static_64.a"
        "libPhysXGpu_64.so"
    )
        foreach (_lib ${PHYSX_LIBS})
            message(STATUS "Linking debug library at ${PHYSX_LIBS_PATH}/${_lib}")
            target_link_libraries(${executable_name} "${PHYSX_LIBS_PATH}/${_lib}")
        endforeach()

I'm using Linux mint . What is the issue here ?

Mohammad f
  • 961
  • 10
  • 11

0 Answers0