# 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 管理编译工具
  1. Download CMake

    • Note: Need to fix the version with Host CMake
    • Web:www.github.com/kitware/CMake/Release
  2. Unzip

  3. 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:

  1. Clion
  2. MinGW
  3. SSH

Setting

  1. 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

  2. File -> Setting-> Buid,Execution,Deployment ->CMake

    • Click +
    • Buid Type:Debug
    • toolchain:Server
    • Other:No change
  3. File -> Setting-> Buid,Execution,Deployment ->Deployment

    • Click + (Option SFTP)
    • Other:Like Toolchains
    • Mapping:
      • Local Path:your project Path
      • Deployment Path:your Deployment Path
  4. sync

    右键同步的工程 -> Deployment -> upload to Server

  5. build

    image-20200919145959898

后面可选工具也就是配置成功

更新于

请我喝[茶]~( ̄▽ ̄)~*

Junwide Xiao 微信支付

微信支付

Junwide Xiao 支付宝

支付宝