← 과제 목록

[과제] 1주차) 프로젝트 작업 환경 구성 김민찬

@mnchnk
  • #과제
목차
  • OS: Windows 11
  • 사용 도구: MSYS2, Git, Meson, Ninja

1. 사전 준비물

  • Git , MSYS2

2. MSYS2로 툴체인 준비

MSYS2 설치 후 시작 메뉴에서 “MSYS2 MinGW64” 셸을 실행

# 패키지 데이터베이스 갱신
pacman -Syu

# 컴파일러, 빌드 도구, SDL2, pkg-config 설치
pacman -S --needed \
  mingw-w64-x86_64-toolchain \
  mingw-w64-x86_64-meson \
  mingw-w64-x86_64-ninja \
  mingw-w64-x86_64-SDL2 \
  mingw-w64-x86_64-pkg-config \
  git

설치 후 버전 확인:

gcc --version
meson --version
ninja --version
image ## 3. ThorVG 본체 클론 & 빌드
git clone https://github.com/thorvg/thorvg.git
cd thorvg

# MSYS2 MinGW64 환경에 설치되도록 prefix를 /mingw64로 지정
# (지정하지 않으면 기본 prefix(/usr/local)에 설치되어 pkg-config가 못 찾는 경우가 있습니다)
meson setup builddir --prefix=/mingw64

ninja -C builddir install
image

4. ThorVG Example 클론 & 빌드

git clone https://github.com/thorvg/thorvg.example.git
cd thorvg.example

meson setup builddir
ninja -C builddir

5. 예제 실행으로 환경 검증

./builddir/src/Shapes        # 소프트웨어 렌더러 (기본)
./builddir/src/Shapes gl     # OpenGL/ES 렌더러
image

댓글

Discussion 원문