From b8e26615aac81f85046380c3420cd823009d0941 Mon Sep 17 00:00:00 2001 From: Chris Riccomini Date: Fri, 26 Sep 2014 18:27:32 -0700 Subject: [PATCH] since we're not sharing folders with the vm, copy built .so files and jars back to host system. --- java/RELEASE.md | 4 ++-- java/crossbuild/Vagrantfile | 1 + java/crossbuild/build-linux.sh | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java/RELEASE.md b/java/RELEASE.md index 5df6ad353..6b5eaf5af 100644 --- a/java/RELEASE.md +++ b/java/RELEASE.md @@ -1,12 +1,12 @@ ## 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: * [Vagrant](https://www.vagrantup.com/) * [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: diff --git a/java/crossbuild/Vagrantfile b/java/crossbuild/Vagrantfile index 634271dc3..ed591be71 100644 --- a/java/crossbuild/Vagrantfile +++ b/java/crossbuild/Vagrantfile @@ -21,5 +21,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| v.cpus = 4 end + config.vm.synced_folder "../", "/rocksdb-build" config.vm.synced_folder "../..", "/rocksdb", type: "rsync" end diff --git a/java/crossbuild/build-linux.sh b/java/crossbuild/build-linux.sh index 7d5831510..75edac526 100755 --- a/java/crossbuild/build-linux.sh +++ b/java/crossbuild/build-linux.sh @@ -8,5 +8,7 @@ export JAVA_HOME=$(echo /usr/lib/jvm/java-7-openjdk*) cd /rocksdb make jclean clean make -j 4 rocksdbjavastatic +cp /rocksdb/java/librocksdbjni-* /rocksdb-build +cp /rocksdb/java/rocksdbjni-* /rocksdb-build sudo shutdown -h now