见网页:http://openpowerlink.sourceforge.net/doc/2.6/2.6.1/page_zynq_hybrid.html
在ubuntu 16.10 x64:
安装Xilinx Vivado 2016.2和Xilinx SDK 2016.2,默认安装在/opt/Xilinx/Vivado/2016.2和/opt/Xilinx/SDK/2016.2目录下。
然后运行以下命令:
#/opt/Xilinx/Vivado/2016.2/settings64.sh
#/opt/Xilinx/SDK/2016.2/settings64.sh
#export SWT_GTK3=0 #这句很关键,否则Xilinx xsdk启动出错
#export PATH=$PATH:/opt/Xilinx/Vivado/2016.2/bin:/opt/Xilinx/SDK/2016.2/bin:/opt/Xilinx/SDK/2016.2/gnu/microblaze/lin/bin
#apt install lsb-core #如果你的是32位linux,则这步不需要
#apt install libstdc++6:i386 #如果你的是32位linux,则这步不需要
#cd <openPOWERLINK_dir>/hardware/build/xilinx-microblaze
#cmake -GUnix\ Makefiles -DCMAKE_TOOLCHAIN_FILE=../../../cmake/toolchain-xilinx-microblaze-gnu.cmake ../..
#cmake ../.. -DCMAKE_BUILD_TYPE=Release -DSKIP_BITSTREAM=OFF -DDEMO_Z702_MN_DUAL_SHMEM_GPIO=ON
#或cmake ../.. -DCMAKE_BUILD_TYPE=Debug -DSKIP_BITSTREAM=OFF -DDEMO_Z702_MN_DUAL_SHMEM_GPIO=ON
#make
#make install