Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with installing #2

Closed
weepy opened this issue Jul 22, 2010 · 4 comments
Closed

problem with installing #2

weepy opened this issue Jul 22, 2010 · 4 comments

Comments

@weepy
Copy link

weepy commented Jul 22, 2010

my install log looks like :

find_library: checking for sf_open() in -lsndfile... -------------------- yes

"/usr/bin/gcc-4.0 -o conftest -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I/Users/jonahfox/src/ruby-audio/ext/sndfile -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/include -I/opt/local/include -I/usr/local/include conftest.c  -L. -L/opt/local/lib -L/opt/local/lib -L/usr/local/lib  -arch i386   -lruby-static -lsndfile  -lpthread -ldl -lobjc  "
conftest.c: In function ‘t’:
conftest.c:3: error: ‘sf_open’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))sf_open; return 0; }
/* end */

"/usr/bin/gcc-4.0 -o conftest -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I/Users/jonahfox/src/ruby-audio/ext/sndfile -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/include -I/opt/local/include -I/usr/local/include conftest.c  -L. -L/opt/local/lib -L/opt/local/lib -L/usr/local/lib  -arch i386   -lruby-static -lsndfile  -lpthread -ldl -lobjc  "
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { sf_open(); return 0; }
/* end */

--------------------

have_header: checking for narray.h... -------------------- no

"/usr/bin/gcc-4.0 -E -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I/Users/jonahfox/src/ruby-audio/ext/sndfile -I/opt/local/lib/ruby/site_ruby/1.8/i686-darwin9 -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/include -I/opt/local/include -I/usr/local/include  conftest.c -o conftest.i"
conftest.c:1:20: error: narray.h: No such file or directory
checked program was:
/* begin */
1: #include 
/* end */

--------------------

@fugalh
Copy link
Owner

fugalh commented Jul 22, 2010

You need to have those libraries installed.

@weepy
Copy link
Author

weepy commented Jul 22, 2010

I do. I installed libsnd from source and did a gem install for narray.

in irb

require "narray"
=> true

@fugalh
Copy link
Owner

fugalh commented Jul 22, 2010

The C compiler needs to be able to find narray.h as well, you may need to set CPPFLAGS and LDFLAGS. (It may be easier to install narray from source, which will install it to a standard location unlike a gem install.)

(The sf_open error is a red herring, it actually succeeded in the second stanza.)

@weepy
Copy link
Author

weepy commented Jul 22, 2010

ok got it working. I install narray from source. i also had to do a gem install (so it was accesible from my ruby install). I also had to add a require "rubygems" in lib/audio.rb for some reason. Once i'd done this -- i managed to run rake and rake install.

Next up tests.... test_audio.rb passes, but test_sndfile.rb fails everything with "RuntimeError: Invalid test wav"

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants