Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit c2fa5f2

Browse files
author
Pranav Dhulipala
committed
fixed a problem with shared library linkage which causes the node to die
1 parent 93d4db7 commit c2fa5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ros_msft_onnx/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ if(MSVC)
9595
configure_file(${CMAKE_CURRENT_BINARY_DIR}/${ONNX_RUNTIME}/runtimes/${ARCH}/native/onnxruntime.lib ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/onnxruntime.lib COPYONLY)
9696
configure_file(${CMAKE_CURRENT_BINARY_DIR}/${ONNX_RUNTIME}/runtimes/${ARCH}/native/onnxruntime.pdb ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/onnxruntime.pdb COPYONLY)
9797
else()
98-
target_link_libraries(${PROJECT_NAME}_node ${CMAKE_CURRENT_BINARY_DIR}/${ONNX_RUNTIME}/runtimes/${ARCH}/native/libonnxruntime.so)
99-
configure_file(${CMAKE_CURRENT_BINARY_DIR}/${ONNX_RUNTIME}/runtimes/${ARCH}/native/libonnxruntime.so ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/libonnxruntime.so COPYONLY)
98+
configure_file(${CMAKE_CURRENT_BINARY_DIR}/${ONNX_RUNTIME}/runtimes/${ARCH}/native/libonnxruntime.so ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}/libonnxruntime.so.1.4.0 COPYONLY)
99+
target_link_libraries(${PROJECT_NAME}_node ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}/libonnxruntime.so.1.4.0)
100100
endif()
101101

102102
# The node expects to use the Tiny YOLO model available in the ONNX model zoo.

0 commit comments

Comments
 (0)