Difference between revisions of "Atlas 2.0용 C 프로젝트 설정"

From AtlasWiki
Jump to: navigation, search
(Created page with "The steps below detail how to configure a C Project to be mapped with Atlas 2.0. This process has been improved in Atlas 3.0. If you are using Atlas 3.0 or later, please see...")
 
Line 25: Line 25:
 
<br>
 
<br>
  
'''일반 C 프로젝트는 추가적인 설정이 필요하지 않습니다.''' 하지만 Linux 커널과 같이 대규모 프로젝트의 경우 Atlas가 코드를 정확히 매핑할 수 있게 하려면 Atlas가 복잡한 빌드 시스템을 이해할 수 있게 해야 합니다. 그러기 위해서 Atlas가 프로젝트 빌드에 사용된 빌드 명령어를 분석할 것입니다. 아래의 절차는 make file로 빌드된 파일만 매핑할 때 필요한 변경 사항을 자세하게 설명합니다.
+
#Enable the Atlas Error Parser:
 
+
#컴파일러 빌드 명령어를 추가하기:
+
 
#*패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 '''속성을(Properties)''' 선택하십시오.
 
#*패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 '''속성을(Properties)''' 선택하십시오.
#*'''Atlas C/C++ 빌드(Build)''' 아래의 '''빌드 명령어에(Build Commands)''' 프로젝트에 사용되는 컴파일러 이름을 추가하십시오. Atlas가 해당 컴파일러에 전송된 명령어를 확인하고 프로젝트의 makefile 출력을 분석합니다.
+
#*Under '''Atlas C/C++ Build''', click the button '''Enable Atlas Error Parser''' (if it is not grayed out already) and click '''OK'''.
#*'''확인을(OK)''' 클릭하십시오.
+
 
#빌드 명령어 정보 사용하기
 
#빌드 명령어 정보 사용하기
 
#*패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 '''속성을(Properties)''' 선택하십시오.
 
#*패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 '''속성을(Properties)''' 선택하십시오.
#*'''매핑할 소스 파일 선택(Source files to map)''' 아래에서 '''현재 빌드에 있는 파일만 매핑하기(Map only files in current build)'''를 선택하십시오.
+
#* Under '''Atlas C/C++ Build''', add the compiler command to the '''Build Commands'''. These are the commands that will be parsed from the output of the project's makefile.
#*'''파일 설정(File Settings)''' 아래에서 '''현재 빌드의 파일에 확인된 설정 사용(Use discovered configuration for files in the current build)'''을 선택하십시오.
+
 
#*'''확인을(OK)''' 클릭하십시오.
 
#*'''확인을(OK)''' 클릭하십시오.
 +
#Choose the project to be indexed:
 +
#*Open the '''Atlas''' menu and select '''Manage Project Settings'''.
 +
#*Select the project to be indexed, click the '''Add''' button, and click '''OK'''.
 +
#*An index can be run by selecting '''Index Workspace''' under the '''Atlas''' menu.
  
 
<br>
 
<br>

Revision as of 15:42, 18 May 2017

The steps below detail how to configure a C Project to be mapped with Atlas 2.0. This process has been improved in Atlas 3.0.

If you are using Atlas 3.0 or later, please see C 프로젝트 설정하기.


Eclipse에서 C 프로젝트 불러오기

  1. 프로젝트가 Makefile이 있는 경우에 불러오기:
    • 패키지 익스플로러에서 마우스 오른쪽 클릭하십시오.
    • 불러오기를(Import) 선택하십시오.
    • 팝업 대화창에서 C/C++를 펼쳐 기존 코드를 Makefile 프로젝트로(Existing Code as Makefile Project)를 선택한 후 다음을(Next) 클릭하십시오.
    • 프로젝트 이름을 입력한 후 불러올 디렉토리를 지정하십시오.
    • 완료를(Finish) 클릭하십시오.
  2. 프로젝트가 Makefile이 없는 경우에 불러오기:
    • 패키지 익스플로러에서 마우스 오른쪽 클릭하십시오.
    • 신규 > 프로젝트를(New > Project) 선택하십시오.
    • 팝업 대화창에서 일반 > 프로젝트를(General > Project) 선택하고 다음을(Next) 클릭하십시오.
    • 프로젝트 이름을 입력하고 완료를(Finish) 클릭하십시오.
    • 프로젝트에 마우스 오른쪽 클릭하고 불러오기를(Import) 선택하십시오.
    • 상위 디렉토리를 입력하고 불러올 파일을 선택한 후 완료를(Finish) 클릭하십시오.


Setting up C projects for Atlas

  1. Enable the Atlas Error Parser:
    • 패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 속성을(Properties) 선택하십시오.
    • Under Atlas C/C++ Build, click the button Enable Atlas Error Parser (if it is not grayed out already) and click OK.
  2. 빌드 명령어 정보 사용하기
    • 패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 속성을(Properties) 선택하십시오.
    • Under Atlas C/C++ Build, add the compiler command to the Build Commands. These are the commands that will be parsed from the output of the project's makefile.
    • 확인을(OK) 클릭하십시오.
  3. Choose the project to be indexed:
    • Open the Atlas menu and select Manage Project Settings.
    • Select the project to be indexed, click the Add button, and click OK.
    • An index can be run by selecting Index Workspace under the Atlas menu.


문제 해결: If Atlas is unable to properly index the project, try the following fixes:

  1. 프로젝트를 정리하여 빌드하고 빌드 출력이 정확히 분석되었는지 확인하기:
    • 패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 속성을(Properties) 선택하십시오.
    • Atlas C/C++ 빌드 > 빌드 설정 파일을(Atlas C/C++ Build > Build Configuration File) 확인하십시오.
    • 빌드 설정 파일(Build Configuration File) 밑의 열기(Open) 버튼이 회색이거나, 파일을 찾을 수 없었다고 나오면 Atlas가 빌드 설정을 감지하지 못한 것입니다. C/C++ 빌드를(Build) 선택하고 ‘기본 빌드 명령어 사용(Use default build command)’의 체크를 해제하십시오.
    • 출력 verbose를 만들려면 명령어를 조정하십시오. 필요한 플래그는 상황에 따라 다릅니다. 일반적으로 ‘V=1’나 ‘VERBOSE=1’이 사용됩니다.
    • 프로젝트를 정리하고 빌드하여 빌드 설정 파일이(Build Configuration File) 0개가 아닌지 확인하십시오.
  2. If Atlas’ index is still empty, it may be that the Makefile is improperly reporting changing directories.
    • 패키지 익스플로러에서 프로젝트를 마우스 오른쪽 클릭한 후 속성을(Properties) 선택하십시오.
    • C/C++ 빌드를(Build) 선택하고 ‘기본 빌드 명령어 사용(Use default build command)’의 체크를 해제하십시오.
    • ‘--Print-directory’ 플래그를 추가하십시오.
    • 프로젝트를 정리하고 빌드하십시오.


Atlas 설정에 어려움을 겪고 계시다면 [email protected]에 지원을 요청하십시오.