Xilinx / HLS

Vitis HLS LLVM source code and examples
Other
379 stars 57 forks source link

Usage of this front-end #11

Closed HahaLan97 closed 1 year ago

HahaLan97 commented 1 year ago

Can we use this front-end indenpendently? Such as using the clang tool in the build/bin folder to generate the LLVM IR. With this appraoch I always get an error saying:

/somewhere/HLS/hls-build/bin/clang++: error while loading shared libraries: libsqlite3.28.0.so: cannot open shared object file: No such file or directory

Even if I specify the library directory using -L/somewhere/HLS/ext/sqlite-3.28.0/lib/lnx64/ the error is still there.

HahaLan97 commented 1 year ago

You need to use $LD_LIBRARY_LIB environment variable to specify the absolute path to libsqlite. Also add -S -emit-llvm flags because this is only a front-end.