Thread:Talk:R-Car/Boards/Yocto-Gen3/I would like to introduce NTL library to R-CarH3

Hello.

I wanted to use the NTL library with R-CarH3, but I tried to introduce it, but I am in trouble because it does not work well.

Would you please point out any problems with the environment or procedures?

I would be pleased if you could lend us your wisdom.

【usage environment】

ubuntu 18.04 (LTS)

【compiler】

gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu 1 ~ 18.04)

aarch64-linux-gnu-gcc (gcc version 7.3.0 (Ubuntu / Linaro 7.3.0-27ubuntu 1 to 18.04))

aarch64-linux-gnu-g ++

【Library and version you want to install】

gmp-6.1.2

ntl - 10.5.0

【procedure】

① Get gcc cross compiler with apt install (aarch64-linux-gnu-gcc, aarch64-linux-gnu-g ++)

② Create working directory, get gmp inside ~ install (gmp introduction succeeded)

mkdir / home / user / work

cd / home / user / work

sudo wget ftp://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.xz

tar xvf gmp - 6.1.2.tar.xz

cd gmp - 6.1.2

./configure - prefix = / home / user / work / gmp --build = x86_64 - linux - gnu - host = aarch64 - linux - gnu - disable - shared

make

make check

make install

③ Obtaining ~ ntnt

cd / home / user / work

sudo wget http://www.shoup.net/ntl/ntl-10.5.0.tar.gz

tar xvf ntl-10.5.0.tar.gz

cd ntl - 10.5.0 / src

CXX = aarch64 - linux - gnu - g ++ "CXXFLAGS = - O 2 - march = armv 8 - a"

make

-- make setup1

make [1]: Enter directory '/usr/aarch64-linux-gnu/src/ntl-10.5.0/src'

aarch64 - linux - gnu - g ++ - I .. / include - I. - g - O 2 - march = armv 8 - a - c MakeDescAux.cpp

aarch64 - linux - gnu - g ++ - I .. / include - I. - g - O 2 - march = armv 8 - a - o MakeDesc MakeDesc.cpp MakeDescAux.o - lm

./MakeDesc

./MakeDesc: 1: ./MakeDesc: Syntax error: word unexpected (expecting ")")

makefile: 309: recipe for target 'setup1' failed

make [1]: *** [setup1] Error 2

make [1]: Exit the directory '/usr/aarch64-linux-gnu/src/ntl-10.5.0/src'

makefile: 298: recipe for target 'all' failed

make: *** [all] Error 2

--