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

main
Chris Riccomini 10 years ago
parent 4e735bb7f9
commit b8e26615aa
  1. 4
      java/RELEASE.md
  2. 1
      java/crossbuild/Vagrantfile
  3. 2
      java/crossbuild/build-linux.sh

@ -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:

@ -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

@ -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

Loading…
Cancel
Save