gaoxiang12 / slambook

MIT License
6.79k stars 3.25k forks source link

ubuntu下安装Sophus库出现问题及解决办法 #252

Open ming4now opened 4 years ago

ming4now commented 4 years ago

问题1:

/Sophus/sophus/so2.cpp:32:26: error: lvalue required as left operand of assignment unitcomplex.real() = 1.;

/Sophus/sophus/so2.cpp:33:26: error: lvalue required as left operand of assignment unitcomplex.imag() = 0.;

该错误可以定位到so2.cpp源码文件下: SO2::SO2() { unitcomplex.real() = 1.; unitcomplex.imag() = 0.; }

修改为 SO2::SO2() { //unitcomplex.real() = 1.; //unitcomplex.imag() = 0.; unitcomplex.real(1.); unitcomplex.imag(0.); }

原址:https://blog.csdn.net/haxiongha/article/details/82464148?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1