Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing ap_int.h #56

Open
ahamilton57 opened this issue Nov 4, 2022 · 2 comments
Open

missing ap_int.h #56

ahamilton57 opened this issue Nov 4, 2022 · 2 comments

Comments

@ahamilton57
Copy link

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 <ap_int.h>
^
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 <ap_int.h>
^
compilation terminated.
make: *** [build_sw_emu/host.exe] Error 1

@Shelby-dotcom
Copy link

Same issue. How did you resolve it?

@ThomasXilinx
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants