[英]How to resolve error: java: symbol lookup error
I am trying to run a software in x86_64 GNU/Linux, developed by the FCC called SATFC.我正在尝试在 x86_64 GNU/Linux 中运行由 FCC 开发的名为 SATFC 的软件。 The software calls up a sat-solver named satenstein and when it does i get the following error message:
该软件调用了一个名为 satenstein 的卫星求解器,当它调用时,我收到以下错误消息:
java: symbol lookup error: /tmp/libjnasatenstein_15758433517075266088.so: undefined symbol: AddToList1 java:符号查找错误:/tmp/libjnasatenstein_15758433517075266088.so:未定义符号:AddToList1
**Let me note that i have already set up satenstein in my system as the manual of the software indicated. **请注意,我已经在我的系统中设置了 satenstein,如软件手册所示。
Thanks for your help!谢谢你的帮助!
***EDIT ***编辑
I run: nm -D libjnasatenstein_15758433517075266088.so to examine the library and it shows the following about the symbol:我运行: nm -D libjnasatenstein_15758433517075266088.so 来检查库,它显示了有关符号的以下内容:
------------ U AddToList1 ------------ U AddToList1
This is possibly too late, but I was working with the same SATFC library and facing the same issue.这可能为时已晚,但我正在使用同一个 SATFC 库并面临同样的问题。 After a lot of digging I was able to resolve it.
经过大量挖掘,我能够解决它。 I think there's an issue with the SATenstein build code, which I had to tweak to get it to work.
我认为 SAtenstein 构建代码存在问题,我必须对其进行调整才能使其正常工作。 Navigate to the SATenstein source directory (if you're using the source inside the SATFC project, it should be at
satfc/src/dist/satenstein/ubcsat_stein
).导航到 SATenstein 源目录(如果您在 SATFC 项目中使用源,它应该位于
satfc/src/dist/satenstein/ubcsat_stein
)。 Inside, edit the CMakeLists.txt file: add the flag -std=gnu89
to the CMAKE_C_FLAGS.在里面,编辑 CMakeLists.txt 文件:将标志
-std=gnu89
添加到 CMAKE_C_FLAGS。 Recompile the SATenstein project.重新编译 SAtenstein 项目。 It should work.
它应该工作。
most likely to do with LD_LIBRARY_PATH env variable not being set to include the satenstein-libs append the same to the LD_LIBRARY_PATH最有可能与 LD_LIBRARY_PATH env 变量未设置为包含 satenstein-libs append 与 LD_LIBRARY_PATH 相同
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<path_to_satenstein_lib>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.