I would like to introduce NTL library to R-CarH3

Jump to: navigation, search

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


22:16, 28 January 2019

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

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

Thank you. Sorry for the late reply. I tried it, but the same error came out.

21:32, 5 February 2019