Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while compiling .so file on CentOS 7: SkTypes.h: No such file or directory #452

Closed
jcyuan opened this issue Feb 21, 2018 · 4 comments

Comments

@jcyuan
Copy link

jcyuan commented Feb 21, 2018

I just download the whole project from github and tried commands:
1, cd /folder/native-builds/libSkiaSharp_linux/
2, make

and error promps:
Building ../src/sk_managedpixelserializer.cpp...
In file included from ../src/sk_managedpixelserializer.cpp:8:0:
../src/SkManagedPixelSerializer.h:11:21: fatal error: SkTypes.h: No such file or directory
#include "SkTypes.h"
^
compilation terminated.
make: *** [obj/x64/sk_managedpixelserializer.cpp.o] Error 1

what's the problem and how to get a proper .so file for my CentOS 7?
excellent lib anyway as I tried on Win.

@jcyuan jcyuan changed the title error whiling compiling Linux .so: SkTypes.h: No such file or directory error while compiling Linux .so: SkTypes.h: No such file or directory Feb 21, 2018
@jcyuan jcyuan changed the title error while compiling Linux .so: SkTypes.h: No such file or directory error while compiling .so file on CentOS 7: SkTypes.h: No such file or directory Feb 21, 2018
@mattleibow
Copy link
Contributor

mattleibow commented Feb 21, 2018

I think you may be missing the sub-modules - namely the skia module. I would recommend a clone rather than the zip download.

I still have yet to create the perfect system for building on Linux, but you still have to go through the cake process at this time.
https://github.com/mono/SkiaSharp/wiki/Building-on-Linux

I am looking to create a pure make-only build for Linux.

I do want to point out that there is a pre-built binary for linux here:
https://github.com/mono/SkiaSharp/releases/tag/v1.59.3

@mattleibow
Copy link
Contributor

@jcyuan
Copy link
Author

jcyuan commented Feb 21, 2018

oh my, I love you bro!!
It does make sense.
thank you very much for you reply.

@mattleibow
Copy link
Contributor

Closing this as I think this issue is addressed. Feel free to open a new issue for any other issues.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants