Diary/2019-5-18
OpenJFX
Ubuntu 18.04だと,
apt install openjfx
で必要なものをインストールして,
export PATH_TO_FX=/usr/share/openjfx/lib javac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java java --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX
とかして,コンパイルと実行ができた.
サンプルは https://github.com/openjfx/samples あたりを参考に.
組み込みARMボード向けにTensorFlowをビルド
Bazelのビルド
https://docs.bazel.build/versions/master/install-compile-source.html
sudo apt-get install build-essential openjdk-8-jdk python zip unzip sudo apt install pkg-config zip g++ zlib1g-dev unzip wget https://github.com/bazelbuild/bazel/releases/download/0.16.1/bazel-0.16.1-dist.zip unzip -d bazel bazel-0.16.1-dist.zip cd bazel export BAZEL_JAVAC_OPTS="-J-Xmx512M" export EXTRA_BAZEL_ARGS='--jobs=1' ./compile.sh
sudo apt install python3-all-dev sudo apt install libatlas-base-dev git clone https://github.com/tensorflow/tensorflow cd tensorflow git checkout r1.12 ./configure bazel build --jobs 1 --local_resources 1024,1.0,1.0 --verbose_failures -c opt --copt="-march=native" --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" tensorflow/tools/pip_package:build_pip_package
./configureで,pythonは/usr/bin/python3を指定.