cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,486 Views
Registered: ‎05-23-2017

xcl2.hpp cannpt be found

Jump to solution

There are three files in my folder.

main.cpp

kernel.cpp

params.h

 

The main file includs the params.h file.

In the params.h file it includes

"#include "xcl2.hpp"
#include <CL/cl.h>
#include <CL/opencl.h>
"

When compiling it says

params.h:6:10: fatal error: 'xcl2.hpp' file not found
#include "xcl2.hpp"

But from the out put of the make I can see the -I includes the "

../../../libs/xcl2

", where is the xcl2.hpp located.

 

/opt/Xilinx/SDx/2018.2.EA2236721/bin/xcpp -Wall -O0 -g -std=c++14 -I ./include -I ../../../libs/xcl2/ -I../../../libs/xcl2 -I/opt/Xilinx/SDx/2018.2.EA2236721/runtime/include/1_2 -O0 -g -Wall -fmessage-length=0 -fopenmp  ./src/main.cpp src/k_nn.cpp src/pca_index.cpp  src/common.cpp src/csv_parser.cpp ../../../libs/xcl2/xcl2.cpp -o pcaf_host -lOpenCL -lpthread -lrt -lstdc++ -lflann -lgsl -L/opt/Xilinx/SDx/2018.2.EA2236721/runtime/lib/x86_64 -L./lib -L/opt/Xilinx/SDx/2018.2.EA2236721/runtime/lib/x86_64 -L/opt/Xilinx/SDx/2018.2.EA2236721/lib/lnx64.o -lOpenCL -pthread 

Why?

Please help.

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
1,449 Views
Registered: ‎06-17-2008

Could you try using absolute path in -I and see if it works?

View solution in original post

0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
1,450 Views
Registered: ‎06-17-2008

Could you try using absolute path in -I and see if it works?

View solution in original post

0 Kudos
Highlighted
Moderator
Moderator
1,303 Views
Registered: ‎11-04-2010

Hi, @mathmaxsean ,

Does the absolute path method suggested by yunl work for you?

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos