You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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 Example 빌드 환경설정 (Windows / MSVC / Meson)
환경
1. 환경설정 Step
1) 필요한 패키지 설치 확인
thorvg는 pkg-config(.pc)도, CMake config(.cmake)도 생성하지 않음 → meson의dependency()가 못 찾음sdl2는 CMake config(SDL2Config.cmake)는 제공 → cmake 방식으로는 인식 가능2) thorvg를 별도로 소스에서 meson으로 빌드 & 설치 (pkg-config 지원 위해)
vcpkg의 thorvg 대신, thorvg 공식 소스를 meson으로 직접 빌드하면
.pc파일이 생성되어 meson에서 바로 인식 가능.결과물:
C:\thorvg-install\bin\thorvg-1.dllC:\thorvg-install\lib\thorvg-1.libC:\thorvg-install\lib\pkgconfig\thorvg-1.pcC:\thorvg-install\include\thorvg-1\thorvg.h3) 환경변수 설정
이렇게 영구설정
4) meson setup 시 SDL2용 cmake_prefix_path 지정
thorvg-1→ PKG_CONFIG_PATH에서 pkg-config로 탐색sdl2→ cmake_prefix_path에서 CMake config로 탐색정상 출력 확인:
5) 빌드
meson compile -C builddir6) 실행 (DLL 복사)
빌드된 실행 파일들은
builddir\src안에 생성됨. 실행에 필요한 dll을 같은 폴더로 복사:실행:
.\Shapes.exe실행 결과
LottieExpressions
Stroke
Beta Was this translation helpful? Give feedback.
All reactions