cocos 编译LOCAL_SRC_FILES points to a missing file
2016-09-20 09:59
2516 查看
The following directory exists:
$NDK\sources\cxx-stl\gnu-libstdc++\4.8
while the following doesn't:
$NDK\sources\cxx-stl\gnu-libstdc++\4.9
leading to the following error when I try to compile with APP_STL=gnustl_static and NDK_TOOLCHAIN_VERSION = 4.9 in Application.mk:
Android NDK: ERROR:C:/AndroidNDK/sources/cxx-stl/gnu-libstdc++/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/thumb/libgnustl_static.a exists or that its path is correct
==================================================================================
当使用这条命令cocos compile -p android --ap android-21编译cocos android时会出现上述问题
需要制定toolchain版本,然后就可以顺利编译了~
cocos compile --android-studio --target android-21 --ap android-21 --ndk-mode debug
--ndk-toolchain arm-linux-androideabi-4.8 --platform android --app-abi armeabi --src D:\DevProject\cocos2dx_workspacecos2dx_workspace\mygame
具体原因是对应目录下没有4.9版本目录找不到路径。
$NDK\sources\cxx-stl\gnu-libstdc++\4.8
while the following doesn't:
$NDK\sources\cxx-stl\gnu-libstdc++\4.9
leading to the following error when I try to compile with APP_STL=gnustl_static and NDK_TOOLCHAIN_VERSION = 4.9 in Application.mk:
Android NDK: ERROR:C:/AndroidNDK/sources/cxx-stl/gnu-libstdc++/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/thumb/libgnustl_static.a exists or that its path is correct
==================================================================================
当使用这条命令cocos compile -p android --ap android-21编译cocos android时会出现上述问题
需要制定toolchain版本,然后就可以顺利编译了~
cocos compile --android-studio --target android-21 --ap android-21 --ndk-mode debug
--ndk-toolchain arm-linux-androideabi-4.8 --platform android --app-abi armeabi --src D:\DevProject\cocos2dx_workspacecos2dx_workspace\mygame
具体原因是对应目录下没有4.9版本目录找不到路径。
相关文章推荐
- cocos编译android时出现LOCAL_SRC_FILES points to a missing file
- cocos2dx-3.13.1编译android报错/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file
- Cygwin编译自定义OpenCV库报错:opencv_contrib: LOCAL_SRC_FILES points to a missing file
- Cygwin编译自己定义OpenCV库报错:opencv_contrib: LOCAL_SRC_FILES points to a missing file
- Cocos2d-x 3.12 ndk r12b ERROR: cocos_freet ype2_static:LOCAL_SRC_FILES points to a missing file
- 【Cocos2dx-lua 3.11.1】打包错误——LOCAL_SRC_FILES points to a missing file
- Local IIS 7.0 - CS0016: Could not write to output file / Microsoft.Net > Framework > v4.0.30319 > Temporary ASP.NET Files
- VC编译错误:The source files "*\A.cpp " and "*\A.cpp " are both configured to produce the output file "*\
- [整理]VC编译程序时出现the source files are both configured to produce the output file....
- Check for missing files failed:Insufficient permissions to access the file
- copyToLocalFile(Path src, Path dst) 报空指针 问题分析
- Windows编译Nodejs时遇到 File "configure", line 313 SyntaxError: invalid syntax Failed to create vc project files. 时的解决方法
- FlatPress 0.804-0.812.1 Local File Inclusion to Remote Command Execution
- 【解决方案】VC++—>add files to folder失效,open-file弹出msdev.exe应用程序错误
- How to add or replace files within MSI file.
- How to Copy Archivelog Files From ASM to Filesystem and vice versa
- How to download Android SDK files via bat file (curl)
- iis, Could not write to output file,Temporary ASP.NET Files
- ADS编译出错“Error : (Fatal) L6015U: Could not find any input files to link.”
- Broadcasting video with Android - without writing to local files