Android NDK-C ++库找不到原子

时间:2019-06-17 16:06:03

标签: android c++ gradle cmake android-ndk

我正在我的android项目中使用cocos2dx和OBOE库。当我从OBOE库导入C ++文件时,找不到某些#inclue库。如何解决?

screenshot: 1 screenshot: 2

我尝试设置cppFlags -std = c ++ 14。但这不起作用

这是我的成绩

    import numpy as np

    print("Resolving linear equations with unknown n:\n")
    m=int(input("Number of unknowns? \n"))
    n=m

    matrix_a=[]
    matrix_b=[]

    print("\n Enter the coefficients of Matrix[A]:\n")

    matrix_a=np.zeros((m,n),dtype=np.int)
    print(matrix_a)
    for i in range (0,m):
        for j in range (0,n):
            print (" Enter Coefficient [", i,",",j, "]?",end=" ")
            matrix_a[i][j] = eval(input())
    print(matrix_a)

    m=1
    print (" \n Enter the coefficients of Matrix [B] :\n")
    for i in range(0,n):
        matrix_b.append([])
    for i in range(0,n):
        for j in range(0,m):
            matrix_b[i].append(j)
            matrix_b[i][j]=0

    for i in range (0,n):
        for j in range (0,m):
            print (" Enter Coefficient [", i,",",j, "]?",end=" ")
            matrix_b[i][j] = eval(input())

    x = np.linalg.solve(matrix_a,matrix_b)
    print("Missing linear equation values:\n",x)

NDK版本-r16b

要重现此问题

  1. 在cocos2dx中为Android https://www.youtube.com/watch?v=Rfr4iI0B4jY创建一个新项目
  2. 克隆双簧管库存储库https://github.com/google/oboe
  3. 在cmake中添加Oboe库
  4. 在双簧管存储库中获取 io18codelab 分支
  5. 复制 cpp / native-lib /...下的所有文件,并将其粘贴到 cpp / MyGame / hellocpp /...中的cocos2dx android项目中。 li>
  6. 引用c ++链接文件
  7. 现在您可以找到问题了!

0 个答案:

没有答案