Open Ethan-Zhou opened 8 years ago
have you faced this error in five_point.cpp line 391 , error: no match 'operator /' for this line SOLS.block<3,10>(0,0).array() = V.block<3,10>(6,0).array() * (1/(ones31*V.row(9)).array());
also I've faced other reference errors
@Ethan-Zhou in Makefile add -llapack
in line 8, because of levmar need it.
Hi Yan,
I am trying to run your livo, but I got stuck at compiling.
Below is what I came across,
-ThinkPad-Edge-E431:~/workspace/Project/livo$ make g++ main.o lineslam.o motion.o utils.o lsd.o -o run -I/usr/local/include/opencv -I. -O2 -L/usr/local/lib -L./levmar-2.6 -L/opt/OpenBLAS/lib -lopencv_core -lopencv_calib3d -lopencv_contrib -lopencv_features2d -lopencv_flann -lopencv_highgui -lopencv_imgproc -lopencv_nonfree -llevmar -lopenblas ./levmar-2.6/liblevmar.a(Axb.c.o): In function
dAx_eq_b_QR': Axb.c:(.text+0xca): undefined reference to
dgeqrf' Axb.c:(.text+0x256): undefined reference to `dgeqrf' Axb.c:(.text+0x31a): undefined reference todorgqr_' Axb.c:(.text+0x450): undefined reference to
dtrtrs_' ./levmar-2.6/liblevmar.a(Axb.c.o): In functiondAx_eq_b_QRLS': Axb.c:(.text+0x5c7): undefined reference to
dgeqrf' Axb.c:(.text+0x7d9): undefined reference to`dgeqrf' Axb.c:(.text+0x905): undefined reference todtrtrs_' Axb.c:(.text+0x9b5): undefined reference to
dtrtrs_' ./levmar-2.6/liblevmar.a(Axb.c.o): In functiondAx_eq_b_Chol': Axb.c:(.text+0xb93): undefined reference to
dpotrf' Axb.c:(.text+0xc2c): undefined reference to `dpotrs' ./levmar-2.6/liblevmar.a(Axb.c.o): In functiondAx_eq_b_LU': Axb.c:(.text+0xe22): undefined reference to
dgetrf' Axb.c:(.text+0xecc): undefined reference to`dgetrs' ./levmar-2.6/liblevmar.a(Axb.c.o): In functiondAx_eq_b_SVD': Axb.c:(.text+0x1034): undefined reference to
dgesvd' Axb.c:(.text+0x1276): undefined reference to `dgesvd' ./levmar-2.6/liblevmar.a(Axb.c.o): In functiondAx_eq_b_BK': Axb.c:(.text+0x1623): undefined reference to
dsytrf' Axb.c:(.text+0x17ac): undefined reference to`dsytrf' Axb.c:(.text+0x184e): undefined reference todsytrs_' ./levmar-2.6/liblevmar.a(Axb.c.o): In function
sAx_eq_bQR': Axb.c:(.text+0x1957): undefined reference to `sgeqrf' Axb.c:(.text+0x1adb): undefined reference tosgeqrf_' Axb.c:(.text+0x1b9f): undefined reference to
sorgqr' Axb.c:(.text+0x1cc8): undefined reference to`strtrs' ./levmar-2.6/liblevmar.a(Axb.c.o): In functionsAx_eq_b_QRLS': Axb.c:(.text+0x1e3f): undefined reference to
sgeqrf' Axb.c:(.text+0x203c): undefined reference to `sgeqrf' Axb.c:(.text+0x2165): undefined reference tostrtrs_' Axb.c:(.text+0x2215): undefined reference to
strtrs_' ./levmar-2.6/liblevmar.a(Axb.c.o): In functionsAx_eq_b_Chol': Axb.c:(.text+0x23f3): undefined reference to
spotrf' Axb.c:(.text+0x248c): undefined reference to`spotrs' ./levmar-2.6/liblevmar.a(Axb.c.o): In functionsAx_eq_b_LU': Axb.c:(.text+0x267b): undefined reference to
sgetrf' Axb.c:(.text+0x2725): undefined reference to `sgetrs' ./levmar-2.6/liblevmar.a(Axb.c.o): In functionsAx_eq_b_SVD': Axb.c:(.text+0x2884): undefined reference to
sgesvd' Axb.c:(.text+0x2abe): undefined reference to`sgesvd' ./levmar-2.6/liblevmar.a(Axb.c.o): In functionsAx_eq_b_BK': Axb.c:(.text+0x2e5b): undefined reference to
ssytrf' Axb.c:(.text+0x2fe1): undefined reference to `ssytrf' Axb.c:(.text+0x3083): undefined reference tossytrs_' ./levmar-2.6/liblevmar.a(misc.c.o): In function
slevmarpseudoinverse': misc.c:(.text+0xcd1): undefined reference to`sgesvd' ./levmar-2.6/liblevmar.a(misc.c.o): In functionslevmar_chol': misc.c:(.text+0x13b1): undefined reference to
spotf2_' ./levmar-2.6/liblevmar.a(misc.c.o): In functiondlevmar_pseudoinverse': misc.c:(.text+0x2e91): undefined reference to
dgesvd_' ./levmar-2.6/liblevmar.a(misc.c.o): In functiondlevmar_chol': misc.c:(.text+0x3576): undefined reference to
dpotf2_' collect2: ld returned 1 exit status make: *\ [run] Error 1It seems that there are some functions not fully implemented in levmar. Could you please provide a README file for this project? It will be helpful for people who wants to follow or cite your work.
many thanks