Open tomerAlef opened 1 year ago
Hi,
Adding some more details to reproduce the issue for the X3 Linux MediaSDK on Ubuntu 20 and 22: We have done the following attempts with the downloaded SDK zip file for Linux (LinuxSDK20230621.zip):
An attempt to work with the binary provided:
We got the following error: ./stitcherSDKDemo: error while loading shared libraries: libnppial.so.10: cannot open shared object file: No such file or directory
An attempt to build main.cc has failed as well:
We got the following error: /usr/bin/ld: cannot find -lxcore /usr/bin/ld: cannot find -lcuda /usr/bin/ld: cannot find -lmnn collect2: error: ld returned 1 exit status
An attempt to use cmake to build was not successful as well
An attempt to build according to the instructions in GitHub with few modifications adding include and lib paths:
$ gcc main.cc -o stitcherSDKDemo -I../include -L../lib -lMediaSDK
We got the following error: /usr/bin/ld: warning: libMNN.so, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppial.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppicc.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppidei.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppif.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppig.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libtbb.so.2, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppc.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: /tmp/cc2EG3JD.o: undefined reference to symbol '_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@@GLIBCXX_3.4.21' /usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
Our desired goal is to successfully run: ./stitcherSDKDemo -inputs image1.insp -output image1.jpg -output_size 1024x512
For the X2 SDK it was running ok for us, but not for the new X3 SDK.
I hope this helps to reproduce the problem and guide us on how to resolve it.
Thanks, Amir
I got rid of the error messages by changing the names of libraries to what they exactly specify. So renaming libnppial.so
to libppial.so.10
, etc.
Please note that I am unable to run the SDK due to another issue, so idk if this 100% works.
Cheers!
Hi,
Adding some more details to reproduce the issue for the X3 Linux MediaSDK on Ubuntu 20 and 22: We have done the following attempts with the downloaded SDK zip file for Linux (LinuxSDK20230621.zip):
An attempt to work with the binary provided:
- Under /MediaSDK/bin we ran the following commands: $ chmod +x stitcherSDKDemo $ export LD_LIBRARY_PATH=<path to /MediaSDK/lib> $ ./stitcherSDKDemo -inputs image1.insp -output image1.jpg -output_size 1024x512
We got the following error: ./stitcherSDKDemo: error while loading shared libraries: libnppial.so.10: cannot open shared object file: No such file or directory
An attempt to build main.cc has failed as well:
- Under /MediaSDK/example we ran the following commands based on Read.txt file $ export LD_LIBRARY_PATH=<path to /MediaSDK/lib or /MediaSDK/lib/libMediaSDK.so - we tried both> $ g++ main.cc -std=c++11 -I../include -L../lib -lMediaSDK -lpthread -ltbb -lxcore -lcuda -lmnn -o ../bin/stitcherSDKDemo
We got the following error: /usr/bin/ld: cannot find -lxcore /usr/bin/ld: cannot find -lcuda /usr/bin/ld: cannot find -lmnn collect2: error: ld returned 1 exit status
- An attempt to use cmake to build was not successful as well
- An attempt to build according to the instructions in GitHub with few modifications adding include and lib paths: $ gcc main.cc -o stitcherSDKDemo -I../include -L../lib -lMediaSDK We got the following error: /usr/bin/ld: warning: libMNN.so, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppial.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppicc.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppidei.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppif.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppig.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libtbb.so.2, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnppc.so.10, needed by ../lib/libMediaSDK.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: /tmp/cc2EG3JD.o: undefined reference to symbol '_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@@GLIBCXX_3.4.21' /usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
Our desired goal is to successfully run: ./stitcherSDKDemo -inputs image1.insp -output image1.jpg -output_size 1024x512
For the X2 SDK it was running ok for us, but not for the new X3 SDK.
I hope this helps to reproduce the problem and guide us on how to resolve it.
Thanks, Amir
You can use cmake to build the program, but you should comment one place in Cmakelists.txt first.
## file(GLOB_RECURSE "${CMAKE_CURRENT_SOURCE_DIR}/*.cc" "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
After you build the program, use
sudo LD_LIBRARY_PATH=../../lib/ ./stitcherSDKDemo -inputs xxx -output xxx
to run it
However, I can't stitch the picture successfully in the end due to some problems. My device is X3, if you achieve pls tell me.
@amir-vhive I've had the same problem as you. Do you have a solution for this? I use the SDK one x2
When trying to run the program on an image taken with insta360 x3 the following error is thrown - error while loading shared libraries: libnppial.so.10: cannot open shared object file: No such file or directory