復現suma++:最後一步 ./visualizer 報錯
抱歉,新電腦剛裝了一個(gè)googlepinyin,居然是繁體字,難得該了,大家湊合看吧
在復(fù)現(xiàn)?suma++時(shí)?,遇到好多問題nvidia驅(qū)動(dòng),cuda,cudnn,tensorRT 。。。就當(dāng)一切都編譯成功時(shí),我發(fā)現(xiàn)運(yùn)行?./visualizer 時(shí),報(bào)錯(cuò):
weijian@weijian-B560-HD3:~/caoqiku/semantic_suma/src$ ./semantic_suma/bin/visualizer ./semantic_suma/bin/visualizer: error while loading shared libraries: libmetis-gtsam.so: cannot open shared object file: No such file or directoryerror while loading shared libraries: libmetis-gtsam.so: cannot open shared object file: No such file or directory
但是我的gtsam裝好了,而且/usr/local/lib中也有l(wèi)ibmetis-gtsam.so這個(gè)文件,那可能suma默認(rèn)在/usr/lib中吧
cp 過去:
weijian@weijian-B560-HD3:~/caoqiku/semantic_suma/src$ sudo cp /usr/local/lib/libmetis-gtsam.so /usr/lib [sudo] password for weijian:然後在執(zhí)行:
weijian@weijian-B560-HD3:~/caoqiku/semantic_suma/src$ ./semantic_suma/bin/visualizer OpenGL Context Version 4.6 core profile GLEW initialized. OpenGL context version: 4.6 OpenGL vendor string : NVIDIA Corporation OpenGL renderer string: Quadro P2000/PCIe/SSE2 terminate called after throwing an instance of 'rv::XmlError'what(): Error while parsing in line 1 Aborted (core dumped)又報(bào)了新錯(cuò)誤,這個(gè)錯(cuò)誤,在suma++ 的官網(wǎng)github中issue有一樣的問題
issue #10
先回去休息,明天接著這裏繼續(xù)....,解決了在更新
剛剛在suma的#issue 3https://github.com/jbehley/SuMa/issues/3中找到了答案:
Hmmm, it's hard to guess what might be the problem.
Either you try to directly call the?visualizer?with the path to the configuration file, i.e.,
./visualizer /path/to/config/default.xml
if this does not help, could you start the?visualizer?with gdb and report the backtrace, i.e.,
This opens the debugger, then
To start the program, then
To get the backtrace, which gives us an indication where the problem originated.
It seems that there is some problem with parsing the?../config/default.xml. But I unfortunately have no clue where the problem lies.
所以,我指定了xml文件:
./semantic_suma/bin/visualizer semantic_suma/config/default.xml成功運(yùn)行!
2022.08.31更新....
這裏,上次說指定xml文件,否則不出現(xiàn)可視化界面,今天看代碼時(shí)發(fā)現(xiàn),代碼中指定的有默認(rèn)路徑:?
if (argc <= 1) {parseXmlFile("../config/default.xml", params);} else {parseXmlFile(argv[1], params);}但是因爲(wèi)是相對路徑,所以需要進(jìn)入semantic_suma/bin中,就可以不用指定xml文件路徑了。?
復(fù)現(xiàn)視頻
suma++ TensorRT Not Found
rangenet_lib tensorRT8.**?
總結(jié)
以上是生活随笔為你收集整理的復現suma++:最後一步 ./visualizer 報錯的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网易权力与纷争手游今日上线,权力与纷争安
- 下一篇: 周鸿祎反流氓的基本商业逻辑(ZZ)