source: project/wiki/eggref/4/proccpuinfo @ 25827

Last change on this file since 25827 was 25827, checked in by svnwiki, 9 years ago

Anonymous wiki edit for IP [69.117.234.22]: Wikified the egg's README.

File size: 2.3 KB
Line 
1[[tags: egg binding library]]
2
3== proccpuinfo
4
5A binding for the libproccpuinfo library
6
7[[toc:]]
8
9=== Usage
10
11  (use proccpuinfo)
12
13=== Requirements
14
15* [[https://savannah.nongnu.org/projects/proccpuinfo/|libproccpuinfo]] (version 0.0.8)
16
17=== Synopsis
18
19
20This egg contains thoroughly commented Chicken code (mainly in the
21{{"proccpuinfo.scm"}} file) which is intended to be an example of how
22a basic Chicken binding of a simple C library can be created.
23
24=== Installation
25
26
27This binding is distributed as a Chicken egg.  To compile and
28install this egg, you must first download and install libproccpuinfo.
29
30libproccpuinfo can be downloaded from [[https://savannah.nongnu.org/projects/proccpuinfo/|here]].
31
32Its documentation can be found [[http://www.nongnu.org/proccpuinfo/libproccpuinfo-guide.html|here]].
33
34Once you've installed libproccpuinfo, you can compile and install
35this egg by typing:
36
37  chicken-install proccpuinfo
38
39==== Note
40
41  This egg has only been tested with libproccpuinfo version 0.0.8
42
43
44=== Troubleshooting tips
45
46If you receive an error from chicken-install about not being able to find
47{{"proccpuinfo.h"}} or about not being able to find {{"-lproccpuinfo"}},
48try passing the locations of libproccpuinfo's header and library files to
49chicken-install via your shell's {{CFLAGS}} and {{LDFLAGS}} environment variables.
50
51For example, you could try running something like the following
52from your shell:
53
54  CFLAGS=-I/usr/local/libproccpuinfo/include LDFLAGS=-L/usr/local/libproccpuinfo/lib chicken-install proccpuinfo
55
56Substitute the path you've installed libproccpuinfo to
57in place of {{"/usr/local/libproccpuinfo"}}
58
59=== License
60
61Copyright (C) 2012 - Sergey Goldgaber, Moritz Heidkamp, Christian Kellermann
62
63This program is free software: you can redistribute it and/or modify
64it under the terms of the GNU Affero General Public License as published by
65the Free Software Foundation, either version 3 of the License, or
66(at your option) any later version.
67
68This program is distributed in the hope that it will be useful,
69but WITHOUT ANY WARRANTY; without even the implied warranty of
70MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
71GNU Affero General Public License for more details.
72
73You should have received a copy of the GNU Affero General Public License
74along with this program.  If not, see [[http://www.gnu.org/licenses/]]
Note: See TracBrowser for help on using the repository browser.