Camellia Ruby Computer Vision Library on OS X

Is anyone lucky to get the Camellia computer vision library for installation on OS X? I hit my head against the wall, trying to install it. There is only one link that I can find on the Internet, and it is a bit out of date. I followed the instructions on T with no luck.

I hope one of your brilliant people on SO can help a dude.

+3
source share
4 answers

What exactly is the problem? Is there an error message? Are you trying to compile a library or trying to build a gem?

Camellia C. OS X, C compiler ( GCC). OS X - Apple XCode, GCC . , GCC, which gcc Terminal. gcc (, /usr/bin/gcc), GCC. , GCC ( XCode, ).

-.

, , .

+2

Leopard ( Ruby .., - XCode DVD- OS X, ):

  • Unix/Linux (CamelliaLib-2.7.0.tar.gz)
  • tarball
  • cd CamelliaLib-2.7.0/
  • ./configure
  • sudo make
  • sudo make install

, Camellia . Ruby.

gem search -r camellia:

*** REMOTE GEMS ***

camellia (2.7.0)
camellia-rb (1.2)

, , , gem install.

$ sudo gem install camellia
ERROR:  could not find gem camellia locally or in a repository

Weird. , :

$ sudo gem install camellia-rb

( require 'rubygems', , ):

$ irb
irb(main):001:0> require 'camellia'
=> true

, .

0

!!!

sudo gem install camellia-rb

, cypher, .

, os X leopard, -

0
  • CamelliaLib-2.7.0.tar.gz
  • tar xf CamelliaLib-2.7.0.tar.gz
  • cd CamelliaLib-2.7.0
  • ./Configure
  • sudo make install
  • cd..

  • camellia-2.7.0-x86-linux.gem rubyforge

  • mkdir camellia-gem
  • cd camellia-gem
  • tar xvf../camellia-2.7.0-x86-linux.gem
  • tar zxvf data.tar.gz
  • cd ext

  • extconf.rb,

 CONFIG['LDSHARED'] = "g++ -shared -lCamellia"
 to
 CONFIG['LDSHARED'] = "g++ -lCamellia -bundle -flat_namespace -undefined suppress"
  • ruby ​​extconf.rb
  • ​​ ruby, topdir Makefile
topdir = /usr/lib/ruby/1.8/universal-darwin9.0
  • "-Wl, -export-dynamic" DLDFLAGS "-Wl, -R '$ (libdir)'" LIBPATH
  • , , .
  • -lcrypt LIBS
arch = universal-darwin9.0
sitearch = universal-darwin9.0
ruby = /usr/bin/ruby
  • , LDSHARED Makefile
LDSHARED = g ++ -lCamellia -bundle -flat_namespace -undefined suppress
  • .so to.bundle for DLLIB
DLLIB = $ (TARGET) .bundle
  • to do
  • sudo cp camellia.bundle / usr / lib / ruby ​​/ site_ruby / 1.8 / universal-darwin9.0
0
source

All Articles