snavely / bundler_sfm

Bundler Structure from Motion Toolkit
1.54k stars 482 forks source link

sift.txt: 1: sift.txt: ../../bin/sift: not found #36

Open wjxwalkno opened 8 years ago

wjxwalkno commented 8 years ago

Hi! I have copied the sift binary to the BASE_PATH/bin, but when I run ./RunBundler.sh , I get the error message :sift.txt: 1: sift.txt: ../../bin/sift: not found.

snavely commented 8 years ago

Can you do an "ls -l ../../bin/sift" and paste the result?

On Wed, Mar 30, 2016 at 1:55 AM, wjxwalkno notifications@github.com wrote:

I have copied the sift binary to the BASE_PATH/bin, but when I run ./RunBundler.sh , I get the error message :sift.txt: 1: sift.txt: ../../bin/sift: not found.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/snavely/bundler_sfm/issues/36

mattiabugossi commented 8 years ago

Same issue here:

parallels@ubuntu:~/Desktop/bundler_sfm-master/examples/kermit$ ls -l ../../bin/sift-rwx------ 1 parallels parallels 45070 Jul  7  2005 ../../bin/sift

Complete Stack:

parallels@ubuntu:~/Desktop/bundler_sfm-master/examples/kermit$ sudo ~/Desktop/bundler-v0.4-source/RunBundler.sh
mkdir: cannot create directory ‘./prepare’: File exists
0
Image list is list_tmp.txt
[Extracting exif tags from image ./kermit000.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit001.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit002.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit003.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit004.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit005.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit006.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit007.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit008.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit009.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Extracting exif tags from image ./kermit010.jpg]
  [Focal length = 5.400mm]
[Couldn't find CCD width for camera Canon Canon PowerShot A10]
[Found in EXIF tags]
  [CCD width = 5.230mm]
  [Resolution = 640 x 480]
  [Focal length (pixels) = 660.803
[Found 11 good images]
[- Extracting keypoints -]
sift.txt: 1: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 2: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 3: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 4: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 5: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 6: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 7: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 8: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 9: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 10: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
sift.txt: 11: sift.txt: /home/parallels/Desktop/bundler-v0.4-source/bin/sift: not found
[- Matching keypoints (this can take a while) -]
/home/parallels/Desktop/bundler-v0.4-source/bin/KeyMatchFull list_keys.txt matches.init.txt
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
Invalid keypoint file.
[KeyMatchFull] Reading keys took 0.001s
mkdir: cannot create directory ‘bundle’: File exists
[- Running Bundler -]
bundler: BaseApp.h:273: std::vector<KeypointMatch>& MatchTable::GetMatchList(MatchIndex): Assertion `p.first != p.second' failed.
/home/parallels/Desktop/bundler-v0.4-source/RunBundler.sh: line 93:   799 Aborted                 (core dumped) $BUNDLER list.txt --options_file options.txt > bundle/out
[- Done -]

Any help?

mattiabugossi commented 8 years ago

Solved from the nghiaho.com website

It is important NOT to forget the libc6-dev-i386 because otherwise any call to jhead and sift in the bundler/lib directory will result in a “File not found” (which of course breaks the RunSFM process). This message is purely misleading (heck of misleading!), the problem lies in the missing 32 bit libc library. This is quite a strange behaviour for a 32 bit binary not finding its 32 bit libc version. Any kernel guys reading this? Took me some time to figure out. By the way, ia32-libs are NOT ENOUGH!

If you are also building on a 64 bit system, you probably acquired the libc6-dev-i386 libs for jhead and sift on another occasion, as well as libgsl0-dev, but they don’t come with the installer by default.

just: sudo apt-get install libc6-dev-i386