# Remote Work
# CLion
# Server
- Machine:TOSHIBA
- CPU:2 Core
- Memory:8G
- Env: ubuntu18.04
- Kernel:5.4
#编译器安装 | |
$ sudo apt install gcc g++ #最主要的两个编译器 | |
$ sudo apt install make #Makefile 管理编译工具 |
Download CMake
- Note: Need to fix the version with Host CMake
- Web:www.github.com/kitware/CMake/Release
Unzip
Build
$ cd cmake-x.xx.x
$ ./bootstrap # 编译预准备
$ make #开始编译
$ sudo make install # 安装
# Host
- Machine:Lenovo
- CPU:2 Core
- Memory:4G
- Env:window10
- Version:1904
Need List:
- Clion
- MinGW
- SSH
Setting
File -> Setting-> Buid, Execution,Deployment ->Toolchains
Click + (Option Remote Work)
- Name:Server
- Credentials:
- Host:xxx.xxx.x.xxx
- Port:22
- User Name: xxx
- Password:xxx
CMake: auto fix
Other:auto fix
File -> Setting-> Buid,Execution,Deployment ->CMake
- Click +
- Buid Type:Debug
- toolchain:Server
- Other:No change
File -> Setting-> Buid,Execution,Deployment ->Deployment
- Click + (Option SFTP)
- Other:Like Toolchains
- Mapping:
- Local Path:your project Path
- Deployment Path:your Deployment Path
sync
右键同步的工程 -> Deployment -> upload to Server
build
后面可选工具也就是配置成功