2021. 3. 11. 15:52ㆍComputer Graphics
이 글은 2021년 1학기 아주대학교 소프트웨어학과 이환용 교수님의 컴퓨터 그래픽스 수업 내용 정리를 위해 작성되었습니다.
macOS Big Sur Version 11.2.2를 탑재한 MacBook Pro (16-inch, 2019) 환경 기준으로 작성했습니다.
1. GhostScript 설치
GhostScript는 PostScript 및 PDF용 인터프리터다. GhostScript로 개발을 진행하기 위해 터미널에서 brew를 이용해 GhostScript를 설치해보자.
Homebrew Formulae: formulae.brew.sh/formula/ghostscript
ghostscript
Homebrew’s package index
formulae.brew.sh
아래 커맨드를 통해 설치하자.
$ brew install ghostscript
내 화면과 다를 수 있지만, 중요한건 에러가 없으면 정상적으로 설치된 것이다.
2. xQuartz 설치
3번에서 설치할 MacGhostView를 위해 xQuartz라는 친구를 먼저 설치해줘야 한다.
xQuartz 홈페이지: www.xquartz.org
XQuartz
The XQuartz project is an open-source effort to develop a version of the X.Org X Window System that runs on OS X. Together with supporting libraries and applications, it forms the X11.app that Apple shipped with OS X versions 10.5 through 10.7. Quick Downl
www.xquartz.org
3. MacGhostView 설치
Windows와는 다르게 macOS에서는 MacGhostView라는 친구를 이용해 PostScript로 작성한 그래픽 결과를 봐야 한다.
MacGhostView 홈페이지: www.math.tamu.edu/~tkiffe/macghostview.html
MacGhostView
MacGhostView 6.1 MacGhostView is a application for previewing Postscript and encapsulated Postscript files and converting them to other formats. It implements the command line tools gv (ghostview 3.7.2) and gs (ghostscript 9.18). Multiple files can be prev
www.math.tamu.edu
밑줄 그어진 파란색 here를 눌러 DMG 파일을 받아서 실행하면 바탕 화면에 아래와 같은 친구가 생긴다.
저기 화려한 존재감을 자랑하는 MacGhostView.app을 끌어다 Applications 폴더에 Drag & Drop 해주면 Launchpad에서 발견할 수 있게 된다.
마무리
1, 2, 3의 순서로 모두 설치했다면 본격적으로 PostScript를 사용할 수 있다.
'Computer Graphics' 카테고리의 다른 글
MacGhostView 사용법 (0) | 2021.03.13 |
---|