Open ahamilton57 opened 2 years ago
Same issue. How did you resolve it?
Your issue is most likely due to the fact that the ap_int.h file is not in your g++ include path.
Which version of the Xilinx tools are you using? What is the XILINX_VIVADO env var set to?
Following instructions for building IDCT example, I have a build issue:
$ make run TARGET=sw_emu
Makefile:90: [WARNING]: g++ version older. Using g++ provided by the tool : /opt/Xilinx/Vivado/2021.2/tps/lnx64/gcc-6.2.0/bin/g++ mkdir -p ./build_sw_emu /opt/Xilinx/Vivado/2021.2/tps/lnx64/gcc-6.2.0/bin/g++ -I./includes/xcl2 -I/opt/xilinx/xrt/include/ -I/opt/Xilinx/Vivado/2021.2/include/ -I./src -O0 -g -Wall -fmessage-length=0 -std=c++11 ./includes/xcl2/xcl2.cpp -o build_sw_emu/host.exe ./src/host.cpp ./src/idct.cpp -L/opt/xilinx/xrt/lib/ -lOpenCL -lpthread -lrt -lstdc++ -lxilinxopencl In file included from ./src/host.cpp:39:0: ./src/types.hpp:35:20: fatal error: ap_int.h: No such file or directory
include
compilation terminated. In file included from ./src/idct.hpp:45:0, from ./src/idct.cpp:40: ./src/types.hpp:35:20: fatal error: ap_int.h: No such file or directory
include
compilation terminated. make: *** [build_sw_emu/host.exe] Error 1