Porting the library to Android

小宝 jxiaobao at gmail.com
Fri May 28 13:42:19 CEST 2010


Firstly, I use the cross compiler arm-eabi-gcc-4.4.0 contained by the NDK.($(android-ndk)\build\prebuilt\windows\arm-eabi-4.4.0);
configure like this:
./configure --host=arm-eabi CC="$(compilee path)/arm-eabi-gcc"
CPP="$(compilee path)/arm-eabi-gcc -E" LD="$(compilee path)/arm-eabi-ld" 
 but get the "could not found a working compiler."error.
Next,I try to use arm-none-linux-gnueabi-gcc to compile the library,like:
./configure --build=athlon64-pc-linux-gnu --host=arm-none-linux-gnueabi CC="/home/xiaobao/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc" CPP="/home/xiaobao/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -E" LD="/home/xiaobao/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ld" AR="/home/xiaobao/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ar" RANLIB="/home/xiaobao/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ranlib"


BUT ,when make check,get the error:
make  check-TESTS
make[4]: 正在进入目录 `/home/xiaobao/下载/gmp-5.0.1/tests'
./t-bswap: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-bswap:无法执行二进制文件
./t-bswap: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-bswap: 成功
FAIL: t-bswap
./t-constants: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-constants:无法执行二进制文件
./t-constants: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-constants: 成功
FAIL: t-constants
./t-count_zeros: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-count_zeros:无法执行二进制文件
./t-count_zeros: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-count_zeros: 成功
FAIL: t-count_zeros
./t-gmpmax: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-gmpmax:无法执行二进制文件
./t-gmpmax: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-gmpmax: 成功
FAIL: t-gmpmax
./t-hightomask: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-hightomask:无法执行二进制文件
./t-hightomask: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-hightomask: 成功
FAIL: t-hightomask
./t-modlinv: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-modlinv:无法执行二进制文件
./t-modlinv: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-modlinv: 成功
FAIL: t-modlinv
./t-popc: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-popc:无法执行二进制文件
./t-popc: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-popc: 成功
FAIL: t-popc
./t-parity: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-parity:无法执行二进制文件
./t-parity: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-parity: 成功
FAIL: t-parity
./t-sub: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-sub:无法执行二进制文件
./t-sub: line 136: /home/xiaobao/下载/gmp-5.0.1/tests/.libs/lt-t-sub: 成功
FAIL: t-sub
====================================
9 of 9 tests failed
Please report to gmp-bugs at gmplib.org
====================================
make[4]: *** [check-TESTS] 错误 1
make[4]:正在离开目录 `/home/xiaobao/下载/gmp-5.0.1/tests'
make[3]: *** [check-am] 错误 2
make[3]:正在离开目录 `/home/xiaobao/下载/gmp-5.0.1/tests'
make[2]: *** [check-recursive] 错误 1
make[2]:正在离开目录 `/home/xiaobao/下载/gmp-5.0.1/tests'
make[1]: *** [check-recursive] 错误 1
make[1]:正在离开目录 `/home/xiaobao/下载/gmp-5.0.1'
make: *** [check] 错误 2
I don not know how to solve it.






 
------------------ Original ------------------
From:  "gmp-discuss-request"<gmp-discuss-request at gmplib.org>;
Date:  Fri, May 28, 2010 06:00 PM
To:  "gmp-discuss"<gmp-discuss at gmplib.org>; 

Subject:  gmp-discuss Digest, Vol 81, Issue 17

 
 Send gmp-discuss mailing list submissions to
	gmp-discuss at gmplib.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://gmplib.org/mailman/listinfo/gmp-discuss
or, via email, send a message with subject or body 'help' to
	gmp-discuss-request at gmplib.org

You can reach the person managing the list at
	gmp-discuss-owner at gmplib.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gmp-discuss digest..."


Today's Topics:

   1. Porting the library to Android ( ?? )
   2. C# Language Binding for GMP (Michael Gray)
   3. Re: Porting the library to Android (Sam Rawlins)
   4. Re: C# Language Binding for GMP (Joerg Arndt)
   5. Re: C# Language Binding for GMP (Torbjorn Granlund)
   6. Re: C# Language Binding for GMP (Marc Glisse)


----------------------------------------------------------------------

Message: 1
Date: Thu, 27 May 2010 23:59:03 +0800
From: " ?? " <812773326 at qq.com>
Subject: Porting the library to Android
To: " gmp-discuss " <gmp-discuss at gmplib.org>
Message-ID: <tencent_67F14EA9080C138A4F8376DE at qq.com>
Content-Type: text/plain;	charset="gbk"

Hello,
I am working on how to porting the GMP library to Android.
 If I can get some help from here?
If any body have ever done that before?
I need some help.
Any one can help me?
Thanks.

------------------------------

Message: 2
Date: Thu, 27 May 2010 09:08:14 -0700
From: "Michael Gray" <mgray at nwdevs.com>
Subject: C# Language Binding for GMP
To: <gmp-discuss at gmplib.org>
Message-ID: <001f01cafdb6$d067a8d0$7136fa70$@com>
Content-Type: text/plain;	charset="us-ascii"

There is a binding for GNU MP which has not been listed on the website yet,
and it is for a language which has yet to be mentioned. It can be found
here: http://mpcli.codeplex.com/



------------------------------

Message: 3
Date: Thu, 27 May 2010 10:47:10 -0700
From: Sam Rawlins <sam.rawlins at gmail.com>
Subject: Re: Porting the library to Android
To: gmp-discuss <gmp-discuss at gmplib.org>
Message-ID:
	<AANLkTilSbWWDMHkKp8p9cQy4SkZW6fuCj45EIlQdAb-_ at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Well, how much progress have you made so far? :)
What problems have you run into?

On Thu, May 27, 2010 at 8:59 AM, ?? <812773326 at qq.com> wrote:

> Hello,
> I am working on how to porting the GMP library to Android.
>  If I can get some help from here?
> If any body have ever done that before?
> I need some help.
> Any one can help me?
> Thanks.
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>



-- 
Sam Rawlins


------------------------------

Message: 4
Date: Fri, 28 May 2010 09:55:51 +0200
From: Joerg Arndt <arndt at jjj.de>
Subject: Re: C# Language Binding for GMP
To: Michael Gray <mgray at nwdevs.com>
Cc: gmp-discuss at gmplib.org
Message-ID: <20100528075551.GC9244 at jjj.de>
Content-Type: text/plain; charset=us-ascii

On the referenced site you have
"CLS-compliant languages such as C#, F#, and Visual Basic"
which I do not understand.

What is "CLS-compliant"?

cheers,   jj

P.S.: without a single line of code for download
you cannot reasonably expect to receive a link
from gmplib.org (IMHO).


* Michael Gray <mgray at nwdevs.com> [May 28. 2010 09:28]:
> There is a binding for GNU MP which has not been listed on the website yet,
> and it is for a language which has yet to be mentioned. It can be found
> here: http://mpcli.codeplex.com/
> 
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss


------------------------------

Message: 5
Date: Fri, 28 May 2010 10:35:35 +0200
From: Torbjorn Granlund <tg at gmplib.org>
Subject: Re: C# Language Binding for GMP
To: Michael Gray <mgray at nwdevs.com>,  gmp-discuss at gmplib.org
Message-ID: <86d3wgjueg.fsf at shell.gmplib.org>
Content-Type: text/plain; charset=iso-8859-1

Joerg Arndt <arndt at jjj.de> writes:

  On the referenced site you have
  "CLS-compliant languages such as C#, F#, and Visual Basic"
  which I do not understand.
  
  What is "CLS-compliant"?
  
  cheers,   jj

  P.S.: without a single line of code for download
  you cannot reasonably expect to receive a link
  from gmplib.org (IMHO).

We also restructured the gmplib.org entry page to make it easier to
overview, so there is no more section about projects using GMP.
Language bindings are, however, something we have in the manual, see
http://gmplib.org/manual/Language-Bindings.html.

(We do require these bindings to be available as free software.)

-- 
Torbj?rn


------------------------------

Message: 6
Date: Fri, 28 May 2010 11:13:40 +0200 (CEST)
From: Marc Glisse <marc.glisse at inria.fr>
Subject: Re: C# Language Binding for GMP
To: Joerg Arndt <arndt at jjj.de>
Cc: gmp-discuss at gmplib.org, Michael Gray <mgray at nwdevs.com>
Message-ID:
	<alpine.DEB.2.00.1005281106540.8245 at stedding.saclay.inria.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 28 May 2010, Joerg Arndt wrote:

> On the referenced site you have
> "CLS-compliant languages such as C#, F#, and Visual Basic"
> which I do not understand.
>
> What is "CLS-compliant"?

Microsoft terminology for .Net integration of languages, so they can 
interoperate.

> P.S.: without a single line of code for download
> you cannot reasonably expect to receive a link
> from gmplib.org (IMHO).

The website can be confusing, but there do seem to be a few files in 
"source code" (not under "downloads" though, maybe a link can wait until 
an official release).

> * Michael Gray <mgray at nwdevs.com> [May 28. 2010 09:28]:
>> There is a binding for GNU MP which has not been listed on the website yet,
>> and it is for a language which has yet to be mentioned. It can be found
>> here: http://mpcli.codeplex.com/

Wikipedia also mentions:
http://www.emilstefanov.net/Projects/GnuMpDotNet/
(only for bigint)

-- 
Marc Glisse


------------------------------

_______________________________________________
gmp-discuss mailing list
gmp-discuss at gmplib.org
https://gmplib.org/mailman/listinfo/gmp-discuss


End of gmp-discuss Digest, Vol 81, Issue 17
*******************************************


More information about the gmp-discuss mailing list