I use CLion IDE for a small TensorRT project. The project and related libraries (Cuda, TensorRT) are both located on a ssh server. One version of the project is cloned from the server and run locally. I managed to sync project between the server and local and build the project successfully (using command line cmake and make). One problem is CLion can not resolve header files (that are located remotely, for example NvInfer.h in TensorRT libraries), therefore code auto completion also does not work. I have tried flowing workarounds:
-
Include path to the header files to
CMakeLists.txtby usinginclude_directories() -
Tool->Resync with remote hosts. -
Create
toolchainand map remote host like in CLion official guide. -
I also referred to this question and other similar questions but it still does not work.
If you have successfully setup CLion for remote development, please help me. Thank you for reading.
More information:
A few days ago. I found that the header files are silently installed in .cache/JetBrains/CLion2020.3/.remote/MyHostName_PortNumber/usr/include/x86_64-linux-gnu/the_header_files.h. But now their aren't. How can i make CLion to install them again.
没有评论:
发表评论