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

'SkStream.h' file not found #55

Closed
SpaghettiC0des opened this issue Dec 19, 2021 · 16 comments
Closed

'SkStream.h' file not found #55

SpaghettiC0des opened this issue Dec 19, 2021 · 16 comments

Comments

@SpaghettiC0des
Copy link

I tried running the example, using the link to .../package and installing the alpha release but I'm getting this error.

react-native-skia/package/cpp/rnskia/RNSkPlatformContext.h:12:10: fatal error: 'SkStream.h' file not found
@bolshoytoster
Copy link

If you're on linux, you should just have to install the libskstream-0.3-dev package on whatever package manager you use (i.e. apt, pacman)

@SpaghettiC0des
Copy link
Author

@bolshoytoster I'm on MacOS. Let me try installing it using brew.

@SpaghettiC0des
Copy link
Author

NVM. I just did cd ios && pod install --repo-update for the second time, and somehow this fixed it. I don't know why.

@SpaghettiC0des
Copy link
Author

IIRC, I also did this.

cd ios && rm -fr Pods && pod install --repo-update

@vedatbozkurt
Copy link

Hi, i got same error on M1 Mac. ('SkStream.h' file not found). These commands does not solve my problem. Do you have any other ideas?

@SpaghettiC0des
Copy link
Author

SpaghettiC0des commented Dec 21, 2021

@vedatbozkurt Can you try wiping ios/Pods and then delete Podfile.lock. I'm not sure exactly what I did, it just worked on the 2nd or 3rd rebuild.

@Chasty
Copy link
Contributor

Chasty commented Dec 23, 2021

still getting the same issue with the solution provided here, any idea?

@TomWq
Copy link

TomWq commented Dec 23, 2021

Faced with the same problem, the solution you provided did not work

@SpaghettiC0des
Copy link
Author

@Chasty @wq13718048209 are you still experiencing this issue?

@iamn1ck
Copy link

iamn1ck commented Dec 30, 2021

Is there any progress on this? I'm still get this problem after removing pods and podfile lock and also doing the repo-update

@Chasty
Copy link
Contributor

Chasty commented Dec 30, 2021

@karlmarxlopez @iamn1ck @wq13718048209 I temporally use this hack. in example/package.json

"@shopify/react-native-skia": "https://github.com/Shopify/react-native-skia/releases/download/v0.1.43-alpha/shopify-react-native-skia-0.1.43.tgz"

then just

cd ios && rm -fr Pods && pod install --repo-update

you can change it to whatever version u want.

@ChrisJamesC
Copy link
Contributor

I also face this issue on a mac M1.
I also tried to build the whole skia project, but it didn't help.

With @Chasty hack, it works but can lead to inconsistencies since the examples may use features not yet released.

@ChrisJamesC
Copy link
Contributor

Following a bit more digging, what works for me is to do all the steps to build the project locally.
This ends up with (once the repo config is done according to the build section of the readme):

  • yarn build
  • (cd examples/ios && pod install)

@TomWq
Copy link

TomWq commented Mar 4, 2022

Now my latest is still such a mistake, how to solve it

@iamn1ck
Copy link

iamn1ck commented Mar 4, 2022

I am also having the same issue again, or if I change my ndk dir I get this error

ninja: error: '../../../../../libs/android/armeabi-v7a/libsvg.a', needed by '../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libreactskia.so', missing and no known rule to make it```

@iamn1ck
Copy link

iamn1ck commented Mar 4, 2022

Now my latest is still such a mistake, how to solve it

I fixed my issue by running the commands

yarn build-skia
yarn copy-skia-headers

I also had to add this to the app/build.gradle #119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants