seetalib問題記錄

2021-08-19 08:33:09 字數 1904 閱讀 9448

在arch上完全沒有問題的facetest.cpp,到了centos7上報錯

seetalib/lib/libviplnet.so: undefined reference to `std::__cxx11::basic_string, std::allocator>::_m_assign(std::__cxx11::basic_string, std::allocator> const&)@glibcxx_3.4.21'

seetalib/lib/libviplnet.so: undefined reference to `std::__cxx11::basic_string, std::allocator>::compare(char const*) const@glibcxx_3.4.21'

seetalib/lib/libviplnet.so: undefined reference to `vtable for std::__cxx11::basic_ostringstream, std::allocator>@glibcxx_3.4.21'

seetalib/lib/libseeta_fa_lib.so: undefined reference to `__cxa_throw_bad_array_new_length@cxxabi_1.3.8'

seetalib/lib/libviplnet.so: undefined reference to `vtt for std::__cxx11::basic_ostringstream, std::allocator>@glibcxx_3.4.21'

seetalib/lib/libseeta_facedet_lib.so: undefined reference to `std::__cxx11::basic_string, std::allocator>::_m_create(unsigned long&, unsigned long)@glibcxx_3.4.21'

seetalib/lib/libviplnet.so: undefined reference to `std::__cxx11::basic_ostringstream, std::allocator>::~basic_ostringstream()@glibcxx_3.4.21'

seetalib/lib/libviplnet.so: undefined reference to `std::__cxx11::basic_string, std::allocator>::swap(std::__cxx11::basic_string, std::allocator>&)@glibcxx_3.4.21'

seetalib/lib/libviplnet.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf, std::allocator>@glibcxx_3.4.21'

其中,make.sh如下,相比arch上刪除了libopencv_?(包含imread等函式),這裡是opencv版本差異造成的

另外在centos7上,lib的路徑為 /usr/lib64/

#!/bin/bash

g++ facetest.cpp -o face -lseetalib/lib -lseeta_fa_lib -lseeta_facedet_lib -lviplnet -l/usr/lib64/ -lopencv_core -lopencv_highgui -lopencv_imgproc -std=c++11

錯誤原因應為centos7上gcc和變異seetalib庫檔案的gcc版本不一致,c++11和老版本的命名多了__cxx11,在centos7上不能識別。但是yum更新不了gcc。按stackoverflow上的方法新增巨集定義也並沒有起作用。另外想起當時在centos上編譯識別模組好像是出了問題沒有編譯成功,這個庫應該是不能用的,可能和這個有關係。

待解決。

ios crash問題記錄

1.誤將nsmutablearray型別的變數初始化為nsarray,結果對nsmutablearray型別變數進行操作時,crash h檔案如下 inte ce movemecontroller secondlevelviewcontroller property nonatomic,retain...

??? nginx lua問題記錄

問題1 當用http localhost test 訪問時,結果為何迥異?eg1 location test 結果為空,說明執行的是httpechomodule的echo指令,沒有執行httpluamodule的content by lua指令 eg2 location test輸出123 說明執行...

sphinx 問題記錄

indexer error while loading shared libraries libmysqlclient.so.18 cannot open shared object file no such file or directory 發現sphinx indexer依賴庫ibmysqlc...