cosmo0920
null+****@clear*****
Sat Aug 30 17:24:54 JST 2014
cosmo0920 2014-08-30 17:24:54 +0900 (Sat, 30 Aug 2014) New Revision: 464d7aa0c200b3ab9a64fd583bf44e4f9f6f0229 https://github.com/ranguba/rroonga/commit/464d7aa0c200b3ab9a64fd583bf44e4f9f6f0229 Message: doc: add cross-compile document How to cross compile for Rroonga under Debian like environment. Added files: doc/text/cross-compile.md Added: doc/text/cross-compile.md (+55 -0) 100644 =================================================================== --- /dev/null +++ doc/text/cross-compile.md 2014-08-30 17:24:54 +0900 (0578c48) @@ -0,0 +1,55 @@ +How to Cross compile Rroonga +=== + +## apt + +* mingw-w64 +* build-essential + +## prepare ruby and rubygems + +```bash +$ rbenv install 1.9.3-p547 +$ gem install rubygems-update +$ gem install bundler +$ rbenv install 2.0.0-p353 +$ gem install bundler +$ rbenv install 2.1.2 +$ gem install bundler +``` + +## bundle install + +```bash +$ rbenv local 1.9.3-p547 +$ bundle install [--path vendor/bundle] +$ rbenv local 2.0.0-p353 +$ bundle install [--path vendor/bundle] +$ rbenv local 2.1.2 +$ bundle install [--path vendor/bundle] +``` + +## rake-compiler + +```bash +$ rbenv local 1.9.3-p547 +$ bundle exec rake-compiler cross-ruby HOST=i686-w64-mingw32 VERSION=1.9.3-p547 [EXTS=--without-extensions] +$ bundle exec rake-compiler cross-ruby HOST=x86_64-w64-mingw32 VERSION=1.9.3-p547 [EXTS=--without-extensions] +$ rbenv local 2.0.0-p353 +$ bundle exec rake-compiler cross-ruby HOST=i686-w64-mingw32 VERSION=2.0.0-p353 [EXTS=--without-extensions] +$ bundle exec rake-compiler cross-ruby HOST=x86_64-w64-mingw32 VERSION=2.0.0-p353 [EXTS=--without-extensions] +[$ rbenv local 2.1.2] +$ bundle exec rake-compiler cross-ruby HOST=i686-w64-mingw32 VERSION=2.1.2 [EXTS=--without-extensions] +$ bundle exec rake-compiler cross-ruby HOST=x86_64-w64-mingw32 VERSION=2.1.2 [EXTS=--without-extensions] +``` + +## cross compile + +```bash +$ rbenv local 1.9.3-p547 +$ bundle exec rake:build +$ bundle exec rake RUBY_CC_VERSION=1.9.3:2.0.0:2.1.2 cross clean native gem +$ make clean +$ bundle exec rake clean:groonga +$ bundle exec rake RUBY_CC_VERSION=1.9.3:2.0.0:2.1.2 cross RROONGA_USE_GROONGA_X64=true clean native gem +``` -------------- next part -------------- HTML����������������������������... Download