![]() |
|
|
#1 |
|
Dec 2014
458 Posts |
First, I have been a Debian user since New Year. I always want to package some software but was too busy to do so. I think it is the right time now.
Previously, I needed able to build and install libcurl from source to compile mprime because mprime won't compile with the Debian libcurl package (gcc throws errors about undefined references). Then I need to change the Makefile by a bit, linking against the freshly built dynamic library instead of static library to get mprime compiled. However, I noticed that mprime was not able to connect primenet. I guess it is because some security code relating issues. Perhaps? So I decide to compile mprime without primenet support since it makes no sense to link against something not working. I am able to done it just now! To compile mprime without libcurl. Here is my patch.diff generated by git. HOW TO COMPILE: 1. extract p95v285.source.zip to p95v285.source/ 2. goto p95v285.source/gwnum/ and type Code:
$ make -f make64 4. goto p95v285.source/ and type Code:
$ patch -p1 < noprimenet.diff Code:
$ make -f makenoprimenet (I just find out mersenneforum does not support xz yet) Last fiddled with by alexvong1995 on 2015-05-08 at 08:17 |
|
|
|
|
|
#2 |
|
"Mike"
Aug 2002
25·257 Posts |
|
|
|
|
|
|
#3 |
|
Dec 2014
37 Posts |
Thanks! Do you mean the restrictive award agreement violates DFSG? Does mprime fit in contrib or non-free? Nevermind, I will also be glad to package Mlucas and Glucas. I was able to compile Mlucas according to instruction and Glucas by
Code:
$ ./configure && make HOW TO COMPILE: 1. extract p95v285.source.zip to p95v285.source/ 2. Download and decompress noprimenet2.diff.bz2 and put it inside p95v285.source/ 3. goto p95v285.source/ and type Code:
$ patch -p1 < noprimenet2.diff Code:
$ make -f make64 'COFLAGS = -march=native -O3 -pipe' 'CXXOFLAGS = $(COFLAGS)' Code:
$ make -f makenoprimenet 'COFLAGS = -march=native -O3 -pipe -flto' 'CXXOFLAGS = $(COFLAGS)' Let me know if it builds and runs! I will not be connected to the Internet for about 2-3 days so I will not be replying until I come back from the rural area. |
|
|
|
|
|
#4 |
|
Dec 2014
37 Posts |
Currently, Mlucas uses no makefile because it is relatively simple to build. But since I want to package it for Debian, we need some sort of build system. So I decided to use autotools (autoconf and automake) to build Mlucas.
The tough part is to learn the basics, but thanks to the tutorials (Autotools Mythbuster and video tutorial), I kind of understand them now. The GNU manuals for autoconf and automake are useful but you need to learn the basics first. HOW TO BUILD: OK. So actually I have made 3 files, configure.ac, Makefile.am and m4/sources_list.m4 (configure.ac is actually made by using the template created by autoscan after it scans the source code) Other files are created by running autoreconf -i 1. Fetch the code from git, Code:
$ git clone https://gitorious.org/mlucas/mlucas.git Code:
$ cd mlucas && mkdir build && cd build && ../configure && make Code:
$ ./mlucas -h 2>&1 | less FEATURE: (to be added later) TODO: (to be added later) Last fiddled with by alexvong1995 on 2015-05-13 at 13:36 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Howto start mprime automically for (Debian) Linux | joblack | Software | 26 | 2018-11-05 11:18 |
| Packaging Mlucas for Debian | ewmayer | Linux | 7 | 2015-05-28 06:14 |
| Debian package of mprime | Matt | Linux | 1 | 2007-02-22 22:36 |
| Four heat seeking missiles | mfgoode | Puzzles | 51 | 2007-01-10 10:02 |
| Are you seeking higher education? | R.D. Silverman | Lounge | 35 | 2007-01-03 22:59 |