Visual studio 2017 Linux C++ 개발환경

2019. 1. 16. 17:03IT-개발/Linux-CentOS

반응형


괜찮은 Link만 잔득 달아놓음.



Window7 - Visual Studio 2017 설치 : 

https://blog.naver.com/tipsware/220954222979

http://studyc.tistory.com/24




Visual Studio 2017- Linux컴파일할 수 있게 설치 및 연동(중요) : 

http://blog.naver.com/PostView.nhn?blogId=tipsware&logNo=220991849234&categoryNo=52&parentCategoryNo=0&viewDate=&currentPage=1&postListTopCurrentPage=1&from=postView


http://www.gamecodi.com/board/zboard.php?id=GAMECODI_Talkdev&no=5010



WMware 에 CentOS 설치 : 


http://cionman.tistory.com/category/CodeLab/Linux




WMware 에 CentOS IP 설정 : 


http://blog.iotinfra.net/?p=1926


고정IP : http://horisit.blogspot.com/2016/04/centos-7-ip.html



vmware centos ssh 접속 :


http://hdgnote.tistory.com/entry/vmware-centos7-%EC%84%A4%EC%B9%98%ED%9B%84-%EA%B8%B0%EB%B3%B8%EC%84%B8%ED%8C%85


>> 위 Link 대로 설정후 내PC의 "VMware Network Adapter VMnet8" 을 vmware의 ip subnet 으로 설정해야 통신이 가능해짐.


vmware 의 CENTOS의 IP : 192.168.100.100 이면, VMnet8의 IP를 192.168.100.101 정도로 변경해줘야 

ping / ssh .. 기타 등등 모든 접속 가능해짐..


VMnet8의 GateWay도 그렇고 CENTOS의 Network에 넣어야 모든게 가능해짐... 아~ 한참 노가다 했다~ ㅠㅠ



서버접속하니 아래같은 메세지가 나옴

The remote SSH server rejected X11 forwarding request : 



yum install xorg-x11-xauth

yum install xorg-x11-fonts-*

yum install xorg-x11-utils


요렇게 3가지 다운로드 설치하니 별말 없네요.



캬~~ 드뎌 Visual Studio2017로 Linux CentOS에서 돌아가는 "Hellow world!"를 보내요~ ㅠㅠ



근데~ 원격 debugging을 하려니 또 gdbserver 가 뭔지~ 시작할수 없답니다. 알아보니, Linux에 GdbServer가 설치되어 있어야 한다나요~


yum install openssh-server g++ gdb gdbserver


이렇게 한방에 필요한거 다 설치해준다고 생각했는데~... gdbserver가 계속 설치가 않되어 VS2017 에서 gdbserver 설치하라고 한다.


난 위의 yum 으로 설치실행한 후에 별 ERROR 메세지 없길래 설치 다된줄 알았는데... ㅠㅠ.. 뭘까?


gdbserver 가 CentOS에 설치 안되었었다.


yum install gdb-gdbserver


요렇게 해주니 이제야 설치된다. ㅠㅠ. 구글링해보니... 패키지 이름이 gdb-gdbserver-7.6.1-114.el7.x86_64.rpm 이니 설치가 않되었나보나... ㅎㅎ 

Find 개념이 아니구나~


Visual Studio 2017 띄워놓고 디버그 > Linux콘솔 창 실행해놓고 Debuging하니 잘된다.~


gdbserver를 CentOS 상에서 따로 실행해주거나 할 필요는 없고, VS2017이 디버깅보드들어가니 Remote로 연결해서 


실행해주나보다






'IT-개발 > Linux-CentOS' 카테고리의 다른 글

make와 Makefile (펌) (1)  (0) 2019.02.21
CentOS - C/C++ 개발용으로 Eclipse 를 설치 (펌)  (0) 2019.01.30
gcc 사용법 (2) - makefile  (0) 2019.01.28
gcc 사용법 (1)  (0) 2019.01.28
(펌) Linux C/C++ 개발환경 구축(Cygwin)  (1) 2019.01.08