Hello!
I have wrapped a c library I have made into ruby using swig
now I want to use it in a rails project
I have already tested my library with a ruby script and it worked well
I added the path to the swig generated library in my script and it recognized my library
but when I tired to call my library in my rails project, it did not recognize any of the generated files even when I added their path (using "$: << “path/to/swig/library”)
have anyone an Idea on how to do that
thank you
Please, I need a solution quickly
Hello!
I have wrapped a c library I have made into ruby using swig
now I want to use it in a rails project
I have already tested my library with a ruby script and it worked well
I added the path to the swig generated library in my script and it
recognized my library
but when I tired to call my library in my rails project, it did not
recognize any of the generated files even when I added their path (using "$:
<< "path/to/swig/library")
So what happens when you require your library ?
Fred
Hello!
It is all clear now
I have put the .so file generated by swig in the “#{RAILS_ROOT}/lib” directory, now it recognizes it and every thing works fine
thank you