[과제] 1주차) 프로젝트 작업환경 구축 채다희 #21
chae-dahee
started this conversation in
Blog
Replies: 1 comment 1 reply
|
안녕하세요! OpenMP 관련해서 이슈/PR 남겨보는 것도 좋을 것 같습니다. 현재 openmp는 기본 설정값이긴 하지만, 사용자가 명시적으로 설정할 수 있는 옵션이니 setup에서 fail 하는 게 맞아 보입니다. # 현재 meson.build
omp_dep = []
if openmp
omp_dep = dependency('openmp', required: false)
endif# 제안 (question or suggestion 이슈)
omp_dep = []
if openmp
omp_dep = dependency('openmp') # required 기본값 true → setup에서 에러
endif |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
과제 요구사항
ThorVg 프로젝트에 대한 개발 환경을 구성한다.
환경
OS: macOS Tahoe 26.5.2
아키텍처: Apple Silicon(aarch64)
컴파일러: Apple Clang 21.0.0
링커: ld64
빌드 시스템: Meson + Ninja
패키지 매니저: Homebrew
터미널: zsh
저장소 Fork 및 Clone
원본 저장소를 개인 레포지토리로 Fork 한다. Fork 한 개인 레포지토리 코드를 로컬 pc 에 clone 내려받는다.
git clone https://github.com/chae-dahee/thorvg.gitgit clone https://github.com/chae-dahee/thorvg.example.git빌드 환경 구성
튜토리얼에 따르면 ThroVG 는 Meson 빌드 시스템을 지원하기 때문에 Meson 과 Ninja 를 설치해야한다.
brew install meson ninja pkgconf sdl2 libompThorVG 빌드 및 설치
thorvg 루트폴더로 이동하여 아래 명령어로 설치한다.
OpenMP 관련 오류
ThorVG가 OpenMP 지원을 활성화한 상태인데 Apple Clang에서 omp.h를 찾지 못하고 있다.
macOS의 Apple Clang에서 OpenMP 활성화: Homebrew로 libomp를 설치하고 재실행하면, Meson이 OpenMP를 자동으로 감지한다.
thorvg-1 의존성
예제 빌드할때
Dependency "thorvg-1" not found에러가 발생한다.Mac 시스템 경로에 설치가 필요하다.
sudo ninja -C builddir installthorvg.example 구동
Animation 실행
./builddir/src/Animation애니메이션 예제가 SDL 새 창에서 실행된다.다른 예제 파일들도 동일한 방식으로 실행하면 된다.
All reactions