Skip to content

Instantly share code, notes, and snippets.

@shawngraham
Last active February 2, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawngraham/d94570d234f517f831ee433bebcaa0da to your computer and use it in GitHub Desktop.
Save shawngraham/d94570d234f517f831ee433bebcaa0da to your computer and use it in GitHub Desktop.
photogrammetry vsfm for dhbox
1. sudo apt-get install libgtk2.0-dev
2. mkdir vsfm. cd vsfm
3. ```wget http://ccwu.me/vsfm/download/VisualSFM_linux_64bit.zip``` <- an important step! get the right version
4. unzip VisualSFM_linux_64bit.zip.
5. you now have a another vsfm subfolder. cd vsfm
we now need to add a repository to our sources list
6. cd /etc/apt/
7. ```sudo nano sources.list```
8. add ```deb http://cz.archive.ubuntu.com/ubuntu trusty main multiverse``` to final line, save
9. ```cd ~``` to get back to your home directory.
10. ```cd vsfm\vsfm```
11. ```sudo apt-get install libgtk2.0-dev glew-utils libdevil-dev libboost-all-dev libatlas-cpp-0.6-dev libatlas-dev imagemagick libatlas3gf-base libcminpack-dev libgfortran3 libmetis-edf-dev libscotchparmetis-dev freeglut3-dev libgsl0-dev``` this install all of the dependencies we need
12. ```$ make```
now, let's check the bin directory to see if the program is there:
13. ```ls bin``` and there should be a program, `VisualSFM`
And we can run commands, eg:
```$ bin/VisualSFM sfm+pairs+pmvs ~/frames pompeii.nvm @8```
and here's where I am:
ERROR: unable to load libsiftgpu.so
ERROR: unable to get function address
SIFT: 0000, 1280x720, ERROR1
ERROR: unable to locate sift binary.
FAQ at http://ccwu.me/vsfm/doc.html#errors
so more stuff to install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment