-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
43 lines (27 loc) · 1.24 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
====Dependencies ====
- scons (http://www.scons.org/)
Compile-time libraries for precomputed table of Fresnel Integrals:
- MPFR (http://www.mpfr.org/)
- GMP (https://gmplib.org/)
For test programs (will be ignored if missing):
- cairo (http://cairographics.org/)
- vxl (http://vxl.sourceforge.net/)
All can be install on Debian/Ubuntu with:
sudo apt-get install scons libgmp-dev libmpfr-dev libcairo2-dev libvxl1-dev
==== Building ====
libcornu can be build by running the `scons` command in the root directory of
this distribution. The computation of the Fresnel table may take some time,
e.g. 71 minutes on 7 threads on a Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz.
==== Running ====
If cairo is available, a test program will be built to 'bin/test-cornu'. It
optionally takes an integer as argument to be used as a random seed. The
following calls are valid:
./bin/test-cornu
./bin/test-cornu 24
./bin/test-cornu time
The last call uses the current UNIX time as the integer. It will plot the
resulting cornu spiral completion and the input constraints to 'cornu.pdf'
in the current directory.
==== Linking ====
Static and shared libraries will be built in the 'lib/' directory.
Necessary include files will be placed in 'include/vptree/'