I have a remote server with C++ code and Makefile
, and I want to use Clion's remote development + Makefile plugin to develop a Makefile project in remote.
I have mostly been following this guide from Jetbrains to set up remote development.
I have followed all the instructions:
After following all the instructions, I have two issues:
My local project and remote repository are out of sync. My local contains dummy files created on project initialization: cmake-build-debug
directory, CMakeLists.txt
, and main.cpp
, while my remote contains code and Makefile
.
There is no configuration created for me to run and build. In the top-right corner where there is run
, debug
and build
buttons, no pre-created configuration is shown:
Instead, there is Add Configuration
button. When I click Add Configuration
and navigate to create new Makefile configuration, there is no option for me to set up project in remote.
So my question is:
cmake-build-debug
directory and CMakeLists.txt
even if I am only going to use the Makefile plugin to build and run? If not, how should I sink my files with remote?Several things here:
Full remote mode in CLion works only with CMake projects for now.
Makefile plugin doesn't provide Makefiles project model support in CLion (and you can't work w/o a project model in CLion, the code won't be resolved), it's for syntax highlighting in such files mostly and for Makefiles run/debug configuration. To work with makefiles in CLion, you need a workaround through the compilation database. Please check here: https://www.jetbrains.com/help/clion/managing-makefile-projects.html. But again this works only for local projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With