sophsec / ffi-otr Goto Github PK
View Code? Open in Web Editor NEWRuby FFI bindings for the Off-The-Record Messaging library.
License: MIT License
Ruby FFI bindings for the Off-The-Record Messaging library.
License: MIT License
Hi,
I'm not sure whether my problem relates to libotr
, ffi
, or ffi-otr
, so I figured you might at least direct me to the right place.
With this Gemfile
gem "ffi", "1.0.11"
gem "ffi-otr", :git => "git://github.com/sophsec/ffi-otr.git", :branch => "master"
and this code
require 'ffi/otr'
user_state = FFI::OTR.otrl_userstate_create
FFI::OTR.otrl_privkey_generate user_state, 'private_key.txt', 'myaccount', 'myprotocol'
I get the following error (using bundle exec ruby otr.rb
)
dyld: lazy symbol binding failed: Symbol not found: _otrl_privkey_generate_FILEp
Referenced from: /usr/local/lib/libotr.dylib
Expected in: flat namespace
dyld: Symbol not found: _otrl_privkey_generate_FILEp
Referenced from: /usr/local/lib/libotr.dylib
Expected in: flat namespace
(the file private_key.txt
is actually even created, but it's empty)
First, I installed libotr via homebrew and fiddled with LD_LIBRARY_PATH
to get some output at all, but even when I used ./configure && make && install
in libotr, I get the linking error above.
Is there some way to get around this? As a matter of fact, I'm wandering what you use the Ruby-libotr-binding for yourself :)
I appreciate any hints.
My configuration:
libotr-3.2.0
Darwin Kernel Version 11.2.0: [...]; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] (using rbenv)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.