← 블로그 목록

「과제」 1주차)프로젝트 작업환경 구축 박태춘

@tcpark11
  • #과제

Windows11 환경에서 ThorVGThorVG Examples작업 환경을 구축합니다.

0. Dependencies 설치

ThorVG 사용에 필요한 Dependencies 는 아래와 같습니다.

빌드 도구

  • meson
  • ninja
  • pkgconf

외부 라이브러리

  • SDL ( 크로스플랫폼 멀티미디어 지원 )

프로젝트간 의존성

ThorVG.Exmaple 는 ThorVG 를 참조

이들 Dependencies 는 MSYS64 UCRT64 환경에서 아래 커맨드 대로 설치하였습니다.

pacman -Syu pacman -S mingw-w64-ucrt-x86_64-meson pacman -S mingw-w64-ucrt-x86_64-ninja pacman -S mingw-w64-ucrt-x86_64-pkgconf pacman -S mingw-w64-ucrt-x86_64-SDL2

2. ThorVG 설치

https://github.com/thorvg/thorvg#installation 리포지토리를 Clone 합니다.

이후, Installation 가이드 대로

Root Dircetory 에서

meson setup builddir

ninja -C builddir install

을 차례로 수행하여 ThorVG 설치를 완료합니다.

3. ThorVG.Example 설치

https://github.com/thorvg/thorvg.example 리포지토리를 Clone 합니다.

이후, Installation 가이드 대로

Root Dircetory 에서

meson setup builddir

ninja -C builddir

을 차례로 수행하여 ThorVG.Example 설치를 완료합니다.

4. 예제 실행

thorvg.example 리포지토리에서 모든 빌드 결과물이 담기는 builddir 디렉터리 내의 예제 파일을 실행 시킵니다.

e.g.

/builddir/src/Animation

결과

https://github.com/user-attachments/assets/823a8926-e1e0-4cfa-b00e-7bbafed8ca44

댓글

Discussion 원문