반응형

준비물 :

 - Cmake download : https://cmake.org/download/

  linux .sh 다운로드

 

설치

1
2
3
4
5
6
7
8
9
10
11
$> cmake-3.13.0-rc1-Linux-x86_64.sh --prefix={install_path}
    ….
   Do you accept the license? [yN]: y
   ## license 동의 ? ㅇㅇ
   By default the CMake will be installed in:
        "{install_path}/cmake-3.13.0-rc1-Linux-x86_64"
   Do you want to include the subdirectory cmake-3.13.0-rc1-Linux-x86_64?
        Saying no will install in: "{install_path}" [Yn]: y
   ## cmake-3.13.0-rc1-Linux-x86_64 폴더 생성 하위에 설치할까?
     아니면 install_path 에 바로 설치 할까? Y={install_path}/cmake-3.13.0-rc1-Linux-x86_64 에 설치
                                          N={install_path}/ 에 설치
cs

사용

1
$>{install_path}/cmake-3.13.0-rc1-Linux-x86_64/bin/cmake
cs



반응형

'IT > OS' 카테고리의 다른 글

Windows 10 잠금 화면 절전 시간 설정  (6) 2017.03.27
반응형

Visual Studio Code 에서 ftp-sync : local to remote 를 사용하면 visual studio code 가 죽는 현상이 발견하는데


나같은 경우 sync 설정 파일에 uploadOnSave 를 true 로 해놨기 때문에 파일 저장때마다 자동으로 업로드 되기 때문에


해당 명령어를 사용하면 이미 ftp 를 통해 sync 가 이뤄진 상황에서 ftp-sync 가 업데이트 할 내용이 없을때 죽는것 같다.


결론 : sync 설정 파일에 uploadOnSave 를 true 로 해놨으면 ftp-sync : local to remote 를 안해도 알아서 업로드 되니 해당 명령어를 안쓰면 된다.

반응형

'IDE' 카테고리의 다른 글

Intellij JDK 구버전 실행 문제  (0) 2024.04.11
Intellij spring boot gradle project 오류  (0) 2020.01.02
AsciiDoc Plugin 오류  (1) 2019.05.07
Spring Project 생성 실패  (0) 2017.02.16
Visual Studio Code FTP 연동  (0) 2016.09.03
반응형

윈도우에서 Linux 컴파일 작업이 필요한 경우

ex) linux 용 c/c++ 개발시 linux or putty 에서 vim or emacs 개발하는 경우


윈도우에서  VisualStudio Code 설치 

공식 홈페이지 : https://www.visualstudio.com/ko-kr/products/code-vs.aspx


설치 후 ctrl+p 를 누르면 작업을 수행할수 있는데 여기서 ext install ftp-sync 입력 후 엔터





혹은 좌측의 확장 버튼을 눌러 ftp-sync 검색 후 설치



이제 VisualStudioCode 에서 작업할 폴더 생성 (C:\c_exam 폴더를 선택한 화면)


간단하게 chap5 폴더를 생성 후 5_13.c 라는 파일을 생성



그리고 f1 을 눌러 ftp 까지 입력하면 아래 같이 메뉴가 나오는데 처음엔 ftp 에 등록을 해야 하니  ftp-sync: Init 선택



그럼 아래와 같이 기본 ftp 접근 설정이 나오는데


(현재 vm 의 centos7 에 vsftpd 를 설치 후 방화벽 설정까지 마친 상태)


아래와 같이 host, username, password, port, protocol 을 맞춰준다.


(uploadOnSave 가 기본이 false 인데 true 로 바꿔주면 작업중 ctrl+s 를 눌러 파일을 저장하면 자동으로 ftp 로 올라간다.


주의 할점은 true 인 상태에서 ftp-sync : Local to Remote 작업을 하면 visualstudiocode 가 죽는다)







설정이 끝났다면 처음 한번 f1 을 눌러 ftp-sync : Local to Remote 를 실행해준다. 

(간혹 첫 등록때도 visual studio code 가 죽는경우도 있는데 이때 기다렸다가 알림 메시지에서 visualstudiocode 를 끄거나, 작업관리자(ctrl+shift+esc) 를열어 visual studio code 를 끈 후 다시 키고 파일에 아무거나 적었다가 지우고 저장을 누르면 알아서 ftp 와 연동이 되어있다.)


아래는 linux 로 파일이 올라간 상태




위와 같은 방법으로 Makefile 까지 작성하면 terminal 에서 make 명령어만 입력 해주면  된다.

반응형

+ Recent posts