Neper软件安装

时间:2018-10-01 15:41:07

标签: cmake

我正在尝试安装Neper-3.3.0,但遇到了一些问题。

说明说:

  1. 创建一个构建目录,例如作为Neper src目录的子目录, $ mkdir build

    • 我使用 cd 将目录更改为src,然后键入mkdir build,并且名为build的文件夹出现在src文件夹中
  2. 从构建目录中运行CMake,指向Neper的src目录,
    $ cd build
    $ cmake ..

    • 然后我再次使用cd将目录更改为build文件夹,但是我不知道从那里去哪里。
  3. 构建Neper,
    $ make 使用选项-j使用多线程编译。

  4. 在系统上(以root用户身份)安装Neper,
    $ make install

1 个答案:

答案 0 :(得分:0)

build文件夹应与src文件夹处于同一级别(即,您可以使用tst = [1,3,4,6,8,22,24,25,26,67,68,70,72] # considering this as already sorted. else use tst.sort() il = [] ol = [] for k, v in enumerate(tst): # enumerate is used give index to list element if k > 0: # to avoid tst[-1] which will get the last element of the list if abs(tst[k] - tst[k-1]) < 3: # check if differnce is less than 3 if tst[k-1] not in il: # insert to inner list "il" only if it doesn't already exist il.append(tst[k-1]) if tst[k] not in il: # insert to inner list "il" only if it doesn't already exist il.append(tst[k]) else: ol.append(list(il)) # if difference is greater than 2 then append it to outer list "ol" il = [] # clear the inner list "il" ol.append(list(il)) # finaly append the last "il" to "ol" which didnt went in else for our case "[67, 68, 70, 72]" print (ol) #Result: [[1, 3, 4, 6, 8], [22, 24, 25, 26], [67, 68, 70, 72]] 查看它)。因此,转到下载的neper文件夹,然后:

ls

mkdir build cd build cmake ../src make 二进制文件将在那里。如果要指定安装路径等,请在neper步骤

中添加标准cmake命令。