我正在尝试使用Android NDK构建应用。 编译成功,但在链接步骤中失败,错误如下:
import csv
import numpy as np
def change_month(filename):
with open(data_file3, 'r') as f_in:
# set up csv reader object
reader = csv.reader(f_in)
data1 = []
data2 = []
for i,row in reader:
# Assuming that first row is the header
if i==0:
data1.append(row)
# Assuming that all following rows contain data
else:
data2.append(row)
# Convert data to float
data2=np.array(data2).astype(float)
return data1, data2
data1, data2 = change_month(data_file1)
plt.bar(data1, data2, 0.8)
plt.show()
我正在使用
1> /usr/bin/ld: this linker was not configured to use sysroots
clang50++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
并且
--sysroot=<MyNDKPath>/sysroot
编译时
有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
对我来说,这是通往ld的缺失之路。我将其添加到Eclipse内部的PATH环境变量中,并且可以正常工作:
${ANDROID_NDK}\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin