Monday, March 21, 2011

hornets eye install

http://www.wedesoft.demon.co.uk/hornetseye-api/file.Installation.html
sudo aptitude install build-essential ruby1.8 ruby1.8-dev irb1.8 rubygems1.8 rake libswscale-dev

first problem


googled "sh: rake1.8: not found" and got a solution. it even has a little explanation of what's wrong and suggested short, medium, and long term workarounds.
sudo su -
rake=/usr/bin/rake gem install malloc

another workaround

i initially didn't encounter this problem because i had started off using rvm and creating a gemset for hornetseye. then i thought i should follow the instructions on the site more closely to avoid headaches. so that's funny. rvm sets up the paths and stuff correctly i guess, so the rvm install of 1.8.7 has no problem finding the rvm install of rake.

second problem

same as the first one, but with multiarray in place of malloc. again, not a problem when i was using rvm.

screw it, using rvm

i'll keep using rvm until i run across some problem forcing me to do it without rvm.

hornetseye-frame problem

installing hornets-frame complains too:

looks like it needs some boost lib. off to google again. also i tried installing the yard gem, but that gave some error output, so i abandoned it... but turns out the solution presents itself in the next step anyways. gem install yard
googled for "fatal error: boost/smart_ptr.hpp: No such file or directory" and got this (among others). need to sudo aptitude install -y libboost-dev

yet another hornetseye-frame problem

this time, hornetseye-frame installed, but its documentation seems to have failed.

but it looks like the solution is right there in the error output, so i'll try installing bluecloth like it says: gem install bluecloth. after this, i retried installing yard, in case there was stuff it failed to do on the failed install attempt in the last step. gem install yard

tangent on yard gem

so yard sure did have a ton of other stuff to do.
gem install yard gave a ton of output like this:
[error]: Exception occurred while generating 'YARD/Server/Commands/ListMethodsCo
mmand.html'  
[error]: ArgumentError: wrong number of arguments (1 for 0)
[error]: Stack trace:
        /home/ozzloy/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `raise'
        /home/ozzloy/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require'
        /home/ozzloy/.rvm/gems/ruby-1.8.7-p330@hornetseye/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:456:in `simple_markup_html'
        /home/ozzloy/.rvm/gems/ruby-1.8.7-p330@hornetseye/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:81:in `html_markup_rdoc'
        /home/ozzloy/.rvm/gems/ruby-1.8.7-p330@hornetseye/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:42:in `send'
        /home/ozzloy/.rvm/gems/ruby-1.8.7-p330@hornetseye/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:42:in `htmlify'
to google again, searching for
[error]: Exception occurred while generating 'YARD/Server/Commands/ListMethodsCo
mmand.html'
which yielded nothing. this time i searched for "ubuntu yard gem" and got jenny fong's blog entry dealing with yard on ubuntu. from there i gathered i needed to start fresh with rdoc and yard, which i did like this:
sudo gem uninstall rdoc # complained that rdoc wasn't installed
gem uninstall rdoc # also complained that rdoc wasn't installed
gem install rdoc # took a while, but worked
gem install yard

thankfully, that worked.

yard gem tangent done

retrying the hornetseye-frame install: gem install hornetseye-frame
it worked! on to the next line.

hornetseye-{alsa,1394}

this worked just fine:
sudo aptitude install -y libasound2-dev
gem install hornetseye-alsa
sudo aptitude install -y libdc1394-22-dev
gem install hornetseye-1394
sudo aptitude install -y libavformat-dev libswscale-dev
gem install hornetseye-ffmpeg
gem install hornetseye-narray
gem install narray

opencv problem

tried gem install opencv which gave this output:

i have dealt with opencv before, so i knew there was something with a name like "libcv" that i probably needed. aptitude search libcv turned up what i was looking for. next this:
sudo aptitude install -y libcv-dev libcv2.1 libcvaux-dev libcvaux2.1

still no opencv gem

another try at gem install opencv gave this:

needs some highgui dev package i think. google search for the fail line yielded nothing, but i had more luck with aptitude search highgui|grep dev. this gave the package name which i installed via sudo aptitude install -y libhighgui-dev

still still no opencv gem

even after installing that stuff i get the following behavior

so i'm gonna go to sleep now and try to finish tomorrow. i'll probably just have to give a flag of what directory to include for opencv junk. (the bulk of this post was written a day before i posted it.)

No comments:

Post a Comment

Where am I?