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 installing Android NDK Windows MAX_PATH #405

Open
4 tasks done
bdovaz opened this issue Jul 26, 2020 · 0 comments
Open
4 tasks done

Error installing Android NDK Windows MAX_PATH #405

bdovaz opened this issue Jul 26, 2020 · 0 comments

Comments

@bdovaz
Copy link

bdovaz commented Jul 26, 2020

Issue Checklist

  • I'm using the latest u3d version
  • I ran u3d --help
  • I read the README
  • I made sure that a similar issue doesn't exit

Issue Description

I think the problem has to do with that.

268 characters

D:/Unity_2019.4.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_until_deadlock_bug.pass.cpp

However, if I decompress it by hand, it does work. That is, I take the downloaded zip with u3d and unzip it into:

D:/Unity_2019.4.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/

So I understand that the MAX_PATH problem has to do with u3d directly.

In a .NET application it is enabled in the following way, I don't know in Ruby what it will be:

https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later

I tried enabling "Enable Win32 long paths" option but it still doesn't work with u3d

I don't know if this would help:

https://stackoverflow.com/questions/57317695/writing-to-an-external-file-with-long-file-name-with-ruby-file-open#comment101133540_57317980

https://www.ruby-forum.com/t/no-such-file-or-directory-bug-due-to-filepath-length/126851/4

In the section "Maximum Path Length Limitation" they also speak in the official documentation of the workaround with Unicode

https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN

Installing with H:/Unity_Downloads/2019.4.0f1/android-ndk-r19-windows-x86_64.zip
error: No such file or directory @ rb_sysopen - D:/Unity_2019.4.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_until_deadlock_bug.pass.cpp. Use --trace to view backtrace
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

1 participant