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

CMake Error #189

Open
MuazzezA opened this issue May 6, 2024 · 11 comments
Open

CMake Error #189

MuazzezA opened this issue May 6, 2024 · 11 comments

Comments

@MuazzezA
Copy link

MuazzezA commented May 6, 2024

Issue

Screenshot

I did all the operations like clearing the cache.

Device:

  • Device: emulator
  • OS: android

package.json file:

{
   "dependencies": {
    "react-native-vision-camera": "^3.9.2",
    "react-native-vision-camera-face-detector": "^1.6.3",
    "react-native-worklets-core": "^1.0.0",
  }
}

babel.congif.js

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    ['react-native-worklets-core/plugin'],
    ['react-native-reanimated/plugin'],
  ],
};

@LongNguyen2312
Copy link

I also have the same problem, does anyone have a solution?

@eisodev
Copy link

eisodev commented May 23, 2024

Had similar issues with worklets package:

Error: Invalid value for "PACKAGE_PATH": Directory "/Users/xxxx/xxxx/xxx/node_modules/react-native-worklets-core/android/build/intermediates/prefab_package/debug/prefab" is not readable.

I updated to the following versions released recently, and my problem was fixed:

"react-native-vision-camera": "^4.0.5"
"react-native-worklets-core": "1.3.3"

@sandeep36butte
Copy link

sandeep36butte commented Sep 3, 2024

Not sure whethere is's an issue with gradle version, filetree filter method seems not working
There's an prepare header task in the gradle file which copy all the cpp files to the rnworkletcore header dir in build which is not success.

Here's a patch which will copy the files individual, this fixed issue for me.
FileLocation: "../node_modules/react-native-worklets-core/android/build.gradle"

Screenshot 2024-09-03 at 12 08 19 PM

@devtyty
Copy link

devtyty commented Sep 12, 2024

Not sure whethere is's an issue with gradle version, filetree filter method seems not working There's an prepare header task in the gradle file which copy all the cpp files to the rnworkletcore header dir in build which is not success.

Here's a patch which will copy the files individual, this fixed issue for me. FileLocation: "../node_modules/react-native-worklets-core/android/build.gradle"

Screenshot 2024-09-03 at 12 08 19 PM

it worked for me.

react-native-worklets-core: 1.3.3

@dibakar-appinventiv
Copy link

Not sure whethere is's an issue with gradle version, filetree filter method seems not working There's an prepare header task in the gradle file which copy all the cpp files to the rnworkletcore header dir in build which is not success.

Here's a patch which will copy the files individual, this fixed issue for me. FileLocation: "../node_modules/react-native-worklets-core/android/build.gradle"

Screenshot 2024-09-03 at 12 08 19 PM

How did you arrived at this solution ?

@sandeep36butte
Copy link

@dibakar-appinventiv Just checked for the build script function which is responsible for copying the cpp files to header folder in build directory.
Since on running the build with stack-trace the error clearly states the files not present in the header folder inside the build directory.

@genesiscz
Copy link

@MuazzezA Why did you close this? Did you find a solution? I guess the issue should be still open if package did not solve the issue directly

@Rakedd
Copy link

Rakedd commented Feb 14, 2025

Easier to close than to fix

@MuazzezA
Copy link
Author

MuazzezA commented Feb 15, 2025

@genesiscz
No, I couldn't solve it, but I no longer need this development.
I suggest you change the versions and try.

@Rakedd You shouldn't be prejudiced, I have to deal with many problems and I closed it. Since I think it varies depending on the system, even if I solve it, it may not work for someone else. I opened it again for you, waiting for your solutions. Thanks.

@MuazzezA MuazzezA reopened this Feb 15, 2025
@Rakedd
Copy link

Rakedd commented Feb 15, 2025

@MuazzezA yesterday i spent all day trying to fix it and couldn't. At the end of the day i commented this out of anger . I apologize i should've been angry at myself because i did not manage to fix it.

@genesiscz
Copy link

genesiscz commented Feb 20, 2025

This solved that for some reason

expo/expo#28309 (comment)

Everything I tried, maybe it was a mix of things:

  • find ./ -type d -name '.cxx' -exec rm -rfv {} + (in project root where node_modules is)
  • cd android/ && ./gradlew clean && rm -rf ./.gradle ./.idea ./app/build ./build
  • Change the JDK
  • Re-build

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

8 participants