Installing VisualSFM on mac with the Dan Monaghan installer and halfway through the build I get an error that reads:
libsiftgpu.so failed to build. Halting.
Googling found many with similar issues, was able to combine pieces from different solutions and get it working.
Why the error occurs:
The program tries to build & install a siftgpu function on line 246 of the vsfm_os_x_installer.sh file.
But that link is dead.
/users/USERNAME/
directory.
Search for : sed -i ''
Replace with: sed -i
(line 261) mv SiftGPU-master SiftGPU
(line 262) cd SiftGPU
cp ../patches/SparseBundleCPU.patch src/pba/
To this:
cp -R /users/USERNAME/downloads/VisualSFM_OS_X_Installer-master/patches/SparseBundleCPU.patch src/pba
After that, everything finished installing smoothly,
But I couldn't run it yet.
~/.bash_profile
, go into terminal and type: nano ~/.bash_profile
and then paste those two scripts at the bottom of that file.~/.bash_profile
/users/USERNAME/vsfm/bin
folder and copy libpa.so
AND libsiftgpu.so
and paste them into your /users/USERNAME/ directory./users/vsfm
directory called /users/vsfm/sift
SiftGPU
folder from your users/USERNAME/
directory into your /users/vsfm/sift
directory
users/USERNAME/vsfm/bin/
and double-click on VisualSFM, and if all went well the program should start running and open up, ready for use.
This was a pain in the ass to troubleshoot but it's over and done and I hope this helps anybody.