프라우드넷의 가장 기초가 되는 예제 프로그램입니다.
ttp://guide.nettention.com/tutorial_ko#27779d3bf33f02aa의 예제입니다.
해당 예제는 이미 제공되고 있으며, 이 페이지에선 그것을 리눅스에서 실행하는 방법에 대해 설명합니다.
3.1simple 예제를 visual studio와 visual GDB를 이용해 실행해보기
Common project를 빌드하기
그림 3-1빈 프로젝트 생성
1빈 프로젝트를 생성합니다.
그림 3-2리눅스용 visual gdb 프로젝트를 추가
Sample\Simple\Common\Common-linux.vcxproj
Sample\Simple\Client\Client-linux.vcxproj
Sample\Simple\Server\Server-linux.vcxproj
2위 경로에서 리눅스용 vcxproj를 추가합니다. common, client, server의 3개 모두 추가합니다.
그림 3-3Common project의 VisualGDB Project Properties 설정 변경
3프로젝트 속성을 변경합니다. 먼저, common-linux의 속성 변경창으로 들어갑니다.
그림 3-4include directories 설정
4스크린샷과 같이 속성의 include directories를 설정합니다.
그림 3-5actions before building에 내용 추가
그림 3-6actions before building에 추가할 내용
5스크린샷과 같이 속성의 Custom build steps를 추가합니다.
6Common project를 빌드합니다.
Server project를 빌드하기
그림 3-7Server project의 Makefile settings
1VisualGDB Project Properties의 Makefile 속성을 위와 같이 맞춰줍니다.
그림 3-8server project의 custom build steps
2VisualGDB Project Properties의 Custom build steps 속성을 위와 같이 맞춰줍니다.
3server project를 빌드합니다.
Client project를 빌드하기
server와 동일하게 설정해줍니다.