repackaging a compiled gem as a binary

M

Martin DeMello

I've installed the qtbindings gem in an ARM emulator environment
(scratchbox). I'd now like to repackage the compiled code as a
"binary" gem that I can just install in my N900 without having to
compile the C extensions again. How do I go about doing this?

martin
 
L

Luis Lavena

I've installed the qtbindings gem in an ARM emulator environment
(scratchbox). I'd now like to repackage the compiled code as a
"binary" gem that I can just install in my N900 without having to
compile the C extensions again. How do I go about doing this?

Generate a newer gemspec, remove the extension definitions and include
the resulting .so into the Gem::Specification.

Then, "gem build my.gemspec"

Don't forget to adjust the gem specification platform to the ARM one
so it clearly identifies as binary.

Read RubyGems Specification documentation for more details.
 
M

Martin DeMello

Generate a newer gemspec, remove the extension definitions and include
the resulting .so into the Gem::Specification.

Then, "gem build my.gemspec"

Don't forget to adjust the gem specification platform to the ARM one
so it clearly identifies as binary.

Read RubyGems Specification documentation for more details.

Thanks! When I went to look for the gemspec I noticed that alongside
it was already a qtbindingsnative.gemspec for that very purpose.

martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top