We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
按照操作步骤,直到cmake .. 都正常,然后执行make -j就不行了 报错信息如下: [ 50%] Building CXX object CMakeFiles/demo.dir/main.cpp.o [100%] Linking CXX executable demo /usr/bin/ld: CMakeFiles/demo.dir/main.cpp.o: in function __static_initialization_and_destruction_0(int, int)': main.cpp:(.text+0x17d6): undefined reference to OrtGetApiBase' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/demo.dir/build.make:132: demo] Error 1 make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/demo.dir/all] Error 2 make: *** [Makefile:84: all] Error 2
__static_initialization_and_destruction_0(int, int)': main.cpp:(.text+0x17d6): undefined reference to
The text was updated successfully, but these errors were encountered:
Hi @defzhangaa , you can fix this issue by do the below commands:
$ cd lib $ rm libonnxruntime.so $ ln -s libonnxruntime.so.1.12.1 libonnxruntime.so $ ls -rlt total 14848 -rw-rw-r-- 1 ngerr ngerr 15200880 Nov 7 01:12 libonnxruntime.so.1.12.1 lrwxrwxrwx 1 ngerr ngerr 24 Nov 7 07:22 libonnxruntime.so -> libonnxruntime.so.1.12.1
BRs,
Sorry, something went wrong.
No branches or pull requests
按照操作步骤,直到cmake .. 都正常,然后执行make -j就不行了
报错信息如下:
[ 50%] Building CXX object CMakeFiles/demo.dir/main.cpp.o
[100%] Linking CXX executable demo
/usr/bin/ld: CMakeFiles/demo.dir/main.cpp.o: in function
__static_initialization_and_destruction_0(int, int)': main.cpp:(.text+0x17d6): undefined reference to
OrtGetApiBase'collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/demo.dir/build.make:132: demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/demo.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
The text was updated successfully, but these errors were encountered: