その先にあるもの…

eclipse output directory 변경 본문

Tip

eclipse output directory 변경

specialJ 2018. 2. 21. 19:48

Ubuntu 18

eclipse Version: 2019-12 (4.14.0)

Project Properties -> Run/Debug Settings 

select Project Debug -> Edit button


Main tab

C/C++ Application: 실행파일 선택

Arguments tab

Working directory: 실행파일 작업폴더





Ubuntu 16.04

eclipse Oxygen.2 Release(4.7.2)


Project Properties>C/C++ Build

Tool Chain Editor / Current Builder / Gnu Make Builder.Tool Chain Editor

Project Properties>C/C++ Build/Builder Type / External Builder


Project Properties>C/C++ Build>Settings

Build Steps tab / Post-build steps

cp ${BuildArtifactFilePrefix}${BuildArtifactFileName} "복사 경로";


Project Properties>C/C++ Build>Settings

Tool Settings tab / GCC C++ Linker 

${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX} ${OUTPUT} ${INPUTS}

-> 

${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX} 경로 ${OUTPUT} ${INPUTS}

(경로는 절대경로나 macro로 작성해도 된다)


빌드 후 postbuild에서 cp 명령 실패라고 나오는데 바이러너리 파일이라 그런지 expert setting에서 성공



참고 : 

https://code.i-harness.com/ko/q/4a7f37

https://stackoverflow.com/questions/4882231/set-build-output-directory-in-eclipse-c

'Tip' 카테고리의 다른 글

우분투 svn diff tool  (0) 2018.03.30
eclipse build 순서 변경  (0) 2018.02.21
FTP Active, Passive  (0) 2016.04.25
Windows 7에서 exFAT포맷 read-only  (0) 2016.04.20
클립 활용 (동영상)  (0) 2016.04.06
Comments