国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】

這篇具有很好參考價(jià)值的文章主要介紹了【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

問題

用自己的庫編寫程序運(yùn)行時(shí)報(bào)錯(cuò):

./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object file: No such file or directory

這個(gè)錯(cuò)誤表明系統(tǒng)無法找到名為 “l(fā)ibopencv_highgui.so.405” 的共享庫文件。通常情況下,這種問題可能是因?yàn)閹煳募]有正確安裝或者沒有正確設(shè)置動態(tài)鏈接庫路徑導(dǎo)致的。

檢查庫文件是否存在

首先,確認(rèn)系統(tǒng)上是否存在名為 “l(fā)ibopencv_highgui.so.405” 的庫文件。
可以使用命令 find / -name “l(fā)ibopencv_highgui.so.405” 來查找該文件。

將libopencv_highgui.so.405換成自己缺少的庫的名字即可。

 find / -name "libopencv_highgui.so.405"

【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】,python深度學(xué)習(xí),安裝教程學(xué)習(xí)記錄,Ubuntu系統(tǒng),chrome,前端,opencv,python,3d,人工智能,計(jì)算機(jī)視覺
報(bào)錯(cuò)權(quán)限不夠:
find: ‘/root’: 權(quán)限不夠
細(xì)心查找:
【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】,python深度學(xué)習(xí),安裝教程學(xué)習(xí)記錄,Ubuntu系統(tǒng),chrome,前端,opencv,python,3d,人工智能,計(jì)算機(jī)視覺
所缺少的庫函數(shù)位置:
【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】,python深度學(xué)習(xí),安裝教程學(xué)習(xí)記錄,Ubuntu系統(tǒng),chrome,前端,opencv,python,3d,人工智能,計(jì)算機(jī)視覺

設(shè)置動態(tài)鏈接庫路徑

確保庫文件所在的路徑被包含在系統(tǒng)的動態(tài)鏈接庫路徑中。你可以通過將庫文件路徑添加到環(huán)境變量 LD_LIBRARY_PATH 中來實(shí)現(xiàn):

export LD_LIBRARY_PATH=/path/to/your/library/folder:$LD_LIBRARY_PATH

【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】,python深度學(xué)習(xí),安裝教程學(xué)習(xí)記錄,Ubuntu系統(tǒng),chrome,前端,opencv,python,3d,人工智能,計(jì)算機(jī)視覺

創(chuàng)建軟鏈接

在終端中執(zhí)行以下命令,創(chuàng)建一個(gè)指向該庫文件的軟鏈接:

sudo ln -s /opt/build/lib/libopencv_highgui.so.405 /usr/lib/libopencv_highgui.so.405

然后就可以運(yùn)行自身代碼:

【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】,python深度學(xué)習(xí),安裝教程學(xué)習(xí)記錄,Ubuntu系統(tǒng),chrome,前端,opencv,python,3d,人工智能,計(jì)算機(jī)視覺

小結(jié)

其余解決辦法:
./a.out: error while loading shared libraries: libcjson.so.1: cannot open shared object file:

error while loading shared libraries: libopencv_highgui.so.3.0: cannot open shared object file問題解決

/darknet: error while loading shared libraries: libopencv_highgui.s

YOLO-Darknet-opencv3升級Opencv4出現(xiàn)問題error while loading shared libraries: libopencv_highgui.so.3.4: can

./darknet: error while loading shared libraries: libopencv_highgui.so.3.4: cannot open shared object

【深度學(xué)習(xí)】問題解決:運(yùn)行._darknet命令時(shí),報(bào)錯(cuò)缺少libopencv_highgui.so.3.2包文章來源地址http://www.zghlxwxcb.cn/news/detail-840886.html

到了這里,關(guān)于【./a.out: error while loading shared libraries: libopencv_highgui.so.405: cannot open shared object】的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包