Closed phojjat closed 1 year ago
Hmm...are you using cmake to build your custom application, or else any differences in the link line?
You could try running make install
or sudo make install
after you run make
on jetson-inference. It will install the libs to the standard locations.
From: phojjat [mailto:notifications@github.com] Sent: Wednesday, September 06, 2017 12:29 PM To: dusty-nv/jetson-inference jetson-inference@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [dusty-nv/jetson-inference] problem linking libjetson-inference.so (#136)
Hello,
I have built your examples on my jetson tx2 and everything works correctly. Now I am trying to build a standalone inference code based on the provided jet-inference code in Code blocks IDE. Receiving images from camera works okay, however when I extend it to include inference using libjetson-inference.so I cannot run the executable due to the following error "cannot open shared object file: No such file or directory". I have ran an ldd on the library and linked all the dependencies that show up, but that has not solved the issue. I am wondering what other steps I need to take to fix this. Any help is appreciated.
Thank you!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/136, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOpDK2h9Kdm7mOK83Y4Fw2PpFHL7hUGTks5sfsg5gaJpZM4POo-e.
I am using code blocks IDE which compiles and runs from within the application. I have linked libjetson-inference. http://libjetson-inference.io/so along with the dependencies I found through ldd but the issue persists.
On Sep 6, 2017, at 12:49 PM, Dustin Franklin notifications@github.com wrote:
Hmm...are you using cmake to build your custom application, or else any differences in the link line?
You could try running
make install
orsudo make install
after you runmake
on jetson-inference. It will install the libs to the standard locations.From: phojjat [mailto:notifications@github.com] Sent: Wednesday, September 06, 2017 12:29 PM To: dusty-nv/jetson-inference jetson-inference@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [dusty-nv/jetson-inference] problem linking libjetson-inference.so (#136)
Hello,
I have built your examples on my jetson tx2 and everything works correctly. Now I am trying to build a standalone inference code based on the provided jet-inference code in Code blocks IDE. Receiving images from camera works okay, however when I extend it to include inference using libjetson-inference.so I cannot run the executable due to the following error "cannot open shared object file: No such file or directory". I have ran an ldd on the library and linked all the dependencies that show up, but that has not solved the issue. I am wondering what other steps I need to take to fix this. Any help is appreciated.
Thank you!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/136, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOpDK2h9Kdm7mOK83Y4Fw2PpFHL7hUGTks5sfsg5gaJpZM4POo-e.
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dusty-nv/jetson-inference/issues/136#issuecomment-327545205, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab5v33KfJUGkqzGZHGpTttRpWFnJKoXeks5sfsz-gaJpZM4POo-e.
As per CMakeLists.txt:6, jetson-inference
compiles with -std=c++11
flag. This is because TensorRT also uses c++11. Are you building with that flag too from Code Blocks?
Yes. I solved the issue by adding the path of the library to the config file as per: https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/ https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/
On Sep 26, 2017, at 3:28 PM, Dustin Franklin notifications@github.com wrote:
As per CMakeLists.txt:6 https://github.com/dusty-nv/jetson-inference/blob/f41f1c06f8fd31e17069d69f5822e0864026ac2f/CMakeLists.txt#L6, jetson-inference compiles with -std=c++11 flag. This is because TensorRT also uses c++11. Are you building with that flag too from Code Blocks?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dusty-nv/jetson-inference/issues/136#issuecomment-332309155, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab5v320GLz53vcZRrWJi8nAfHnKtpUaAks5smVBVgaJpZM4POo-e.
Hi @phojjat , I have the same issue with you, so can you show me the detailed instructions for fixing this issue ? Thank you so much
Hello,
I have built your examples on my jetson tx2 and everything works correctly. Now I am trying to build a standalone inference code based on the provided jet-inference code in Code blocks IDE. Receiving images from camera works okay, however when I extend it to include inference using libjetson-inference.so I cannot run the executable due to the following error "cannot open shared object file: No such file or directory". I have ran an ldd on the library and linked all the dependencies that show up, but that has not solved the issue. I am wondering what other steps I need to take to fix this. Any help is appreciated.
Thank you!