一起做RGB-D-SLAM(6)g2o報錯error: no matching function
編譯高翔一起做RGB-D-SLAM
新增g2o後
make報錯:
slamEnd.cpp:72:104: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(SlamBlockSolver*&)’
o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg( blockSolver );
將原始碼68行和69行,如下:
SlamBlockSolver* blockSolver = new SlamBlockSolver( linearSolver );
g2o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg( blockSolver );
替換為:
SlamBlockSolver* blockSolver = new SlamBlockSolver(unique_ptr<SlamBlockSolver::LinearSolverType> (linearSolver));
g2o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg(unique_ptr<g2o::Solver>(blockSolver));
重新編譯,成功:
相關文章
- $(function{})裡面的onclick報錯Function
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- MUI-picker 報錯 getSelectedItem is not a functionUIFunction
- PHP報錯:Call to undefined function curl_init()PHPUndefinedFunction
- 織夢搜尋報錯undefined function TypeGetSunIDUndefinedFunction
- 【Redis】slaveof 報錯 Background transfer errorRedisError
- 網站報錯:“Database Server Error”網站DatabaseServerError
- pip install scrapy報錯:error: UnableError
- serverless Error: getaddrinfo ENOTFOUND Function.doRequestServerErrorFunction
- React報錯之Function components cannot have string refsReactFunction
- Ubuntu 系統 apt 報錯:relocation errorUbuntuAPTError
- weblogic報錯: OPatch failed with error code 73WebAIError
- ogg報錯error 11, Resource temporarily unavailableErrorAI
- 反序列 unserialize(): Error 報錯問題Error
- error: use of deleted function ‘YYSTYPE::YYSTYPE()’[解決]ErrordeleteFunction
- 【Azure Function App】Azure Function 從.Net6 升級到 .Net8 後 Function出現執行時版本錯誤FunctionAPP
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- linux系統報錯AER PCIe Bus ErrorLinuxError
- PSQLException: ERROR: failed to find conversion function from unknown to charSQLExceptionErrorAIFunction
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- vue 父子元件傳值報錯:this.$emit is not a function 解決Vue元件MITFunction
- SAP IDoc 報錯- Function module not allowed SPEIDOC_INPUT_DESADV1 –Function
- SAP Table function 執行報錯 feature not supported 該如何分析Function
- appium start session 時報錯 Error executing adbExec. Original error 求指點APPSessionError
- VUE: npm run dev報錯Error: error:0308010C:digital envelope routines::unsupportedVueNPMdevErrorGit
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- 使用Boost庫報error C4996錯誤Error996
- 【ERROR】su user報'This account is currently not available'錯誤 for linuxErrorAILinux
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- jquery分頁外掛呼叫報錯的問題:$(.).pagination is not a functionjQueryFunction
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- curl error 6 for laradockError
- win10 驅動簽名 報錯,Error =52Win10Error
- rabbitMq的status報錯Error: unable to perform an operation on node ‘rabbit……MQErrorORM
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- MySQL建立觸發器時報錯Error Code: 1064MySql觸發器Error