Remote Development
2 minute read
-
In the
Main Menu
openFile → Settings
underBuild, Execution, Deployment
you will find theToolchains
menu. -
Add a new toolchain by pressing the
Remote Host
. -
In the
Credentials:
press theSSH Configurations
menu. Add a new configuration by pressing the- Host:
192.168.2.100
- Port:
22
- User name:
admin
- Password:
vectioneer
- Host:
-
Press the
Test Connection
button to make sure your connection isOK
. If not, re-check your controller connection. -
If the connection is good you can press
OK
to close theSSH Configurations
menu. -
Wait for
Cmake
and theC/C++ Compiler
to be detected:- CMake:
Remote host CMake
- Build Tool: Default,
Detected: make
- C Compiler: Default,
Detected: cc
- C++ Compiler: Default,
Detected: c++
- Debugger:
Remote Host GDB
Press the
Apply
button to save theToolchain
settings. - CMake:
-
Under
Build, Execution, Deployment
open theCmake
menu, setToolChain
, toRemote Host
withdropdown
function. Set other parameters to (default):- Build type:
Debug
- Generator:
Use default Unix Makefiles
- Cmake options:
-G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
- Build directory:
cmake-build-debug-remote-host
- Build options:
-- -j 9
- Build type:
-
Press the
OK
button to save theCMake
settings and close theSettings
window. -
Wait for a couple of seconds while remote and local systems are synchronized.
-
Make sure that your controller is not running a Motorcortex application. Open the
Terminal
inCLion
and run the following command:
ssh admin@192.168.2.100 'echo vectioneer | sudo -S motorcortex stop'
-
In
CLion
set yourRun/Debug Configuration
toDebug-Remote Host
. -
Press
play
tobuild
andrun
the application. -
To compile code with the latest modifications press
Rebuild Project
. -
Congratulations you are now ready to start remote developing your Motorcortex application.