Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ ubuntu 12.04中android-ndk-r9d-linux-x86的ndk gdb出错_C++_Linux_Ubuntu_Android Ndk_Ndk Gdb - Fatal编程技术网

C++ ubuntu 12.04中android-ndk-r9d-linux-x86的ndk gdb出错

C++ ubuntu 12.04中android-ndk-r9d-linux-x86的ndk gdb出错,c++,linux,ubuntu,android-ndk,ndk-gdb,C++,Linux,Ubuntu,Android Ndk,Ndk Gdb,我在Ubuntu12.04中使用android-ndk-r9d-linux-x86的ndk gdb调试android本机应用程序“hello jni”,但它收到此错误 WARNING: The shell running this script isn't bash. Although we try to avoid bashism in scripts, things can happen. .../adt-bundle-linux-x86-2014032

我在Ubuntu12.04中使用android-ndk-r9d-linux-x86的ndk gdb调试android本机应用程序“hello jni”,但它收到此错误

  WARNING: The shell running this script isn't bash.  Although we try to avoid bashism in               scripts, things can happen.
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 143: .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: Bad substitution
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 555: [: 1: unexpected operator
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 771: [: armeabi-v7a: unexpected operator

但是android-ndk-r8e-linux-x86还可以,我想知道为什么?谢谢。

我相信“ndk gdb”已经被弃用,取而代之的是“ndk gdb.py”(虽然我没有广泛宣传,但我认为这一点)。使用r9d时,我遇到了与您上面报告的相同的问题,但python版本没有问题。

警告:运行此脚本的shell不是bash。尽管我们试图避免脚本中的巴什主义,但事情还是会发生的。
——这意味着您正在使用类似dash的东西

将/bin/sh更改为/bin/bash将解决警告和“错误替换”问题