since we're not sharing folders with the vm, copy built .so files and jars back to host system.

This commit is contained in:
Chris Riccomini 2014-09-26 18:27:32 -07:00
parent 4e735bb7f9
commit b8e26615aa
3 changed files with 5 additions and 2 deletions

View File

@ -1,12 +1,12 @@
## Cross-building ## Cross-building
To build RocksDB as a single self contained cross-platform JAR. The cross-platform jar can be usd on any 64-bit OSX system, 32-bit Linux system, or 64-bit Linux system. RocksDB can be built as a single self contained cross-platform JAR. The cross-platform jar can be usd on any 64-bit OSX system, 32-bit Linux system, or 64-bit Linux system.
Building a cross-platform JAR requires: Building a cross-platform JAR requires:
* [Vagrant](https://www.vagrantup.com/) * [Vagrant](https://www.vagrantup.com/)
* [Virtualbox](https://www.virtualbox.org/) * [Virtualbox](https://www.virtualbox.org/)
* A Mac OSX machine * A Mac OSX machine that can compile RocksDB.
Once you have these items, run this make command from RocksDB's root source directory: Once you have these items, run this make command from RocksDB's root source directory:

View File

@ -21,5 +21,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.cpus = 4 v.cpus = 4
end end
config.vm.synced_folder "../", "/rocksdb-build"
config.vm.synced_folder "../..", "/rocksdb", type: "rsync" config.vm.synced_folder "../..", "/rocksdb", type: "rsync"
end end

View File

@ -8,5 +8,7 @@ export JAVA_HOME=$(echo /usr/lib/jvm/java-7-openjdk*)
cd /rocksdb cd /rocksdb
make jclean clean make jclean clean
make -j 4 rocksdbjavastatic make -j 4 rocksdbjavastatic
cp /rocksdb/java/librocksdbjni-* /rocksdb-build
cp /rocksdb/java/rocksdbjni-* /rocksdb-build
sudo shutdown -h now sudo shutdown -h now