Deployment path - remote toolchain

Answered

I have a build system on RPi. My cLion is on Window machine. I am setting remote toolchain to RPi. 

Next I am pointing "Root path" from Deployment menu to one of my created folders on RPi in my /home folder.

Now I am looking at Mappings tab. It is written it is relative to server root path. Great.

 

So let's do a reload of the project. 

"/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/avr-gcc -DCMAKE_CXX_COMPILER=/usr/bin/avr-g++ -G "CodeBlocks - Unix Makefiles" /tmp/tmp.PWhC5NQASD

CMake Error: The source directory "/tmp/tmp.PWhC5NQASD" does not appear to contain CMakeLists.txt."

CMake searches CMakeLists.txt under /tmp/tmpXXXX not /home/...../tmp/tmpXXXX where it was uploaded by... cLion:

"Upload file 'D:\....\CMakeLists.txt' to '/home/..../Deployment/tmp/tmp.PWhC5NQASD/CMakeLists.txt'"

2
2 comments

Hello!

Looks like https://youtrack.jetbrains.com/issue/CPP-14185. Currently, if Root path is different from default value, changing deployment path leads to the error. Sorry for the inconvenience.

Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0
Avatar
Permanently deleted user

I had the same problem and I just modified the CmakeList.txt, save, and when it was updated, I compile again and the issue was solved.

0

Please sign in to leave a comment.