docs/glsl-fuzz-develop.md中介绍的mvn(maven)打包的方法中需要使用jdk,以及得知构建方法
mvn package -DskipTests=true 2>&1 | tee mvn.log
通过docs/glsl-fuzz-walkthrough.md 得知需要安装一些依赖
sudo apt-get install openjdk-8-jdk python3
使用update-alternative命令用来列出和设置多个可用版本的java, javac,以及选择使用哪一个。
10404 sudo update-alternatives --list javac
10405 sudo update-alternatives --list java
10406 sudo update-alternatives --config java # 选 java-8-openjdk
10407 sudo update-alternatives --config javac # 选javac-8-openjdk
编译结果位于graphicsfuzz/target/graphicsfuzz.zip位置。
docs/glsl-fuzz-walkthrough.md中提到:
We can create some shader families from our provided sample shader jobs as follows, assuming you have extracted the graphicsfuzz.zip file to get graphicsfuzz/:
即这个得到的graphicsfuzz.zip需要解压后进入并运行
Release zip and workers
We will be using the latest release zip graphicsfuzz.zip and worker applications.
You can download these from the releases page
or build them from source.
If you want to use the Android worker you will also need an Android device
or the Android device emulator.
Add the following directories to your path:
graphicsfuzz/python/drivers- One of:
graphicsfuzz/bin/Linuxgraphicsfuzz/bin/Macgraphicsfuzz/bin/Windows