I want to learn graphics programming, and I want to use Skia as the library.
How do I begin with it on Ubuntu?
I want to learn graphics programming, and I want to use Skia as the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the r1236 version. Newer versions of skia have issues on Linux.
Skia has font paths hard coded, so you want to change that.
Edit
src/ports/SkFontHost_linux.cppSearch “SK_FONT_FILE_PREFIX”
Change “/usr/share/fonts/truetype/msttcorefonts/” to “/usr/share/fonts/TTF/”
You should now have libskia.a.
Here is an SFML2 and Skia example: