non-numeric second argument to `wordlist' function
来源:互联网 发布:今年最流行的网络语 编辑:程序博客网 时间:2024/05/01 18:28
用ndk编译一些c项目的时候,有时会出这个error
- non-numeric second argument to `wordlist' function:
错误指向 __gmsl文件的第512行
网上有一些说法如下:
修改文件android-ndk-r8c/build/gmsl/__gmsl第512行
- int_encode = $(__gmsl_tr1)$(wordlist 1,$1,$(__gmsl_input_int))
修改为
- int_encode = $(__gmsl_tr1)$(wordlist 1,$(words $1),$(__gmsl_input_int))
这样就可以了
不过偶总觉得这个不靠谱,后来在google官方论坛上看到另外一个解决办法
首先需要在AndroidManifest.xml里面添加sdk版本(感觉至少要设置minSdkVersion)
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.test.ndk"
- android:versionCode="1"
- android:versionName="1.0" >
- <uses-sdk android:minSdkVersion="8"/>
- </manifest>
然后一般都可以了,如果出现以下error
- Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /Android.mk
这个一般是环境变量的问题,可以修改下jni/Application.mk文件,添加APP_BUILD_SCRIPT 属性
- LOCAL_PATH := $(call my-dir)
- APP_BUILD_SCRIPT := $(LOCAL_PATH)/../Android.mk
- non-numeric second argument to `wordlist' function: '
- non-numeric second argument to `wordlist' function
- non-numeric second argument to `wordlist' function
- __gmsl:512: *** non-numeric second argument to `wordlist' function: ''
- *** non-numeric second argument to `wordlist' function: ''. Stop.
- *** non-numeric second argument to `wordlist' function: ''. Stop错误解决办法
- jni工程出现 non-numeric second argument to `wordlist' function
- jni编译non-numeric second argument to `wordlist' function错误
- NDK问题:non-numeric second argument to `wordlist' function:
- *** non-numeric second argument to `wordlist' function: ''. Stop错误解决办法
- Ubuntu下ndk-build编译C++出错:non-numeric second argument to `wordlist' function: '
- Ubuntu下ndk-build编译C++出错:non-numeric second argument to `wordlist' function: '
- Invalid attribute name: package non-numeric second argument to `wordlist' function: ''. Stop.
- android-ndk-r8e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''.
- Ubuntu下ndk-build编译C++出错:non-numeric second argument to `wordlist' function: '
- android-ndk-r8e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''.
- /android-ndk/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop
- NDK编译时出现错误"non-numeric second argument to 'wordlist' function"
- HDU 1856 并查集
- C语言新体会
- 2013 多校第七场 hdu 4667 Building Fence(计算几何、凸包)
- MongoDB 应用点滴
- c++面向对象编程的一个例子(书店)
- non-numeric second argument to `wordlist' function
- 树莓派Raspberry Pi搭建Hadoop集群
- 关于”点九” PNG的一种
- 大话设计模式之命令模式
- vector的内部实现
- 谁说Vim不是IDE?(一)
- 谁说Vim不是IDE?(二)
- 跟我一起玩转A870省电内核、超频内核
- HDU 1272 并查集