blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Incorrect build error with linking [Blocker] #63

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: Ghouly-The-Ghost

File doesn't exist in build - but it does

Error Message

....
error: error opening './obj/local/armeabi-v7a/objs-debug/mx2_main/__/__/__/__/__/__/__/Monkey2-vGIT/monkey2/modules/stb-vorbis/stb-vorbis.buildv1.1.10/android_debug/include/_r.o.d': No such file or directory

1 error generated.

make: *** [obj/local/armeabi-v7a/objs-debug/mx2_main/__/__/__/__/__/__/__/Monkey2-vGIT/monkey2/modules/stb-vorbis/stb-vorbis.buildv1.1.10/android_debug/include/_r.o] Error 1

....

Why it is happening:

  1. The module which is reportedly missing is not actually missing
  2. The code can compile in one folder, but not the other
  3. Shorter paths did not generate this error, longer paths did

Problem: Long filenames are the problem. When the build process attempts to copy module files with long names, the OS fails to copy and thus this error persists.

Semi-related to #341