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.
작업 환경
처음에는 윈도우에서 설치 및 빌드를 진행했으나, 의존성 관리가 더 편한 wsl로 환경을 바꿔서 설치를 다시 진행했다.
의존성 설치
아래의 명령어들을 실행해서 우선 개발에 필요한 도구를 설치했다.
Thorvg 설치 및 빌드
Thorvg와 Thorvg 예제를 설치하길 원하는 폴더로 이동한 다음
git clone을 통해 프로젝트를 설치하였다.cd 설치폴더 git clone https://github.com/thorvg/thorvg.git git clone https://github.com/thorvg/thorvg.example.git그 후 thorvg 폴더로 이동한 다음 meson과 ninja를 사용해 빌드를 하였고, 설치된 thorvg를 다른 폴더에서도 이용하기 위해 ninja를 사용해 설치 또한 해주었다.
cd thorvg meson setup builddir ninja -C builddir sudo ninja -C builddir install그리고 thorvg 예제 폴더로 이동한 다음 마찬가지로 소스코드를 빌드해주었다.
cd ../thorvg.example meson setup builddir ninja -C builddir그렇게 빌드된 결과물을 실행하면 gui가 뜨면서 thorvg 예제들을 확인할 수 있다.
추가사항
wsl에서 gui가 되는지 확인하고 싶은 경우에는 아래 명령어를 실행한 다음, 간단한 gui 윈도우가 뜨는지 확인하면 된다.
또한 OpenGL을 통해서 렌더링을 하고 싶은 경우에는 빌드시 플래그로 gl을 넣어주면 된다.
TODO
윈도우 환경에서도 빌드해보기
wgpu native를 리눅스에 설치한 다음 wgpu로도 렌더링 해보기
All reactions