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

Windows support long path in installed packages #34174

Closed
aleluiah opened this issue Jul 11, 2022 · 1 comment
Closed

Windows support long path in installed packages #34174

aleluiah opened this issue Jul 11, 2022 · 1 comment
Labels
Platform: Windows Building on Windows. Resolution: Answered When the issue is resolved with a simple answer

Comments

@aleluiah
Copy link

aleluiah commented Jul 11, 2022

Description

Although by using a pr fix in react.gradle (hermes.exe) seem to solve the hermes.exe not found issue on windows and the build is successful. but after installing react-native-gesture-handler with new architecture the build fails due to windows long path limit.

Task :react-native-gesture-handler:buildNdkBuildDebug[arm64-v8a][rngesturehandler_modules]
C/C++: C:/android-ndk-r21e/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find C:\Cliqueon\node_modules\react-native-gesture-handler\android\build\intermediates\cxx\Debug\3x5p2864/obj/local/arm64-v8a/objs-debug/rngesturehandler_modules/C_/Cliqueon/node_modules/react-native-gesture-handler/android/src/main/jni/RNGestureHandlerComponentsRegistry.o: No such file or directory
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
C/C++: make: *** [C:/android-ndk-r21e/build//../build/core/build-binary.mk:725: C:\Cliqueon\node_modules\react-native-gesture-handler\android\build\intermediates\cxx\Debug\3x5p2864/obj/local/arm64-v8a/librngesturehandler_modules.so] Error

Version

0.69.1

Output of npx react-native info

Task :react-native-gesture-handler:buildNdkBuildDebug[arm64-v8a][rngesturehandler_modules]
C/C++: C:/android-ndk-r21e/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find C:\Cliqueon\node_modules\react-native-gesture-handler\android\build\intermediates\cxx\Debug\3x5p2864/obj/local/arm64-v8a/objs-debug/rngesturehandler_modules/C_/Cliqueon/node_modules/react-native-gesture-handler/android/src/main/jni/RNGestureHandlerComponentsRegistry.o: No such file or directory
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
C/C++: make: *** [C:/android-ndk-r21e/build//../build/core/build-binary.mk:725: C:\Cliqueon\node_modules\react-native-gesture-handler\android\build\intermediates\cxx\Debug\3x5p2864/obj/local/arm64-v8a/librngesturehandler_modules.so] Error

Steps to reproduce

kk

Snack, code example, screenshot, or link to a repository

https://stackoverflow.com/questions/51226596/gradle-file-paths-too-long-for-windows

@kelset kelset added the Platform: Windows Building on Windows. label Jul 22, 2022
@cortinico
Copy link
Contributor

You should open this issue against https://github.com/software-mansion/react-native-gesture-handler/

The issue is in this file: https://github.com/software-mansion/react-native-gesture-handler/blob/main/android/src/main/jni/Android.mk

They should either:

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Triage 🔍 labels Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Building on Windows. Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests

3 participants