Pages

Tuesday, January 12, 2010

How to compile Sparse Bundle Adjustment C/C++ Package (SBA) on Windows?

Go to http://www.ics.forth.gr/~lourakis/sba/index.html down the sba package
Go to http://www.netlib.org/clapack/ download the Lapack version
Go to download CMake GUI http://www.cmake.org/
Due to some bug in Laplack, there exist a link error. Go to http://www.fi.muni.cz/~xsvobod2/misc/lapack/ to download the dll and lib file for the laplack if compile under window
install, CMake then use CMake to generate solution for ur Visual Studio.
Compile the LAPACK ( and pray…. )
Copy the .dll and lib file u downloaded from http://www.fi.muni.cz/~xsvobod2/misc/lapack/ into the lib directory of LAPACK \LIB\Win32
Use CMake to generate solution for SBA. Then under the configuration, change the Lapack to lapack_win32_MT, BLAS to blas_win32_MT, f2c to libf2c and the directory to where your LAPACK lib directory is.
Compile SBA and everything should work fine…

  

No comments:

Post a Comment