Skip to content

Commit 07be4e8

Browse files
committed
Merge pull request #2 from gijsbers/master
fix, extend, improve and update website to current situation (Many thanks, bert)
2 parents 0024be5 + 3e94b98 commit 07be4e8

File tree

3 files changed

+78
-25
lines changed

3 files changed

+78
-25
lines changed

README

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
WWW repos for snetdev
22
------------------------
33

4-
TBD
4+
This repository contains the content + markup for the S-Net
5+
repository website on Github. The content is written in Markdown.
6+
7+
In order to view this repository on a locally running webserver
8+
you need to install Jekyll. Jekyll will convert the Markdown files
9+
to HTML. Jekyll can be installed either from http://jekyllrb.com/
10+
or from the usual Linux software package installation resources.
11+
The latter option requires the packages "ruby" and "ruby-devel"
12+
to be installed first. Then continue with "gem install jekyll".
13+
14+
When Jekyll is installed it can be run in the toplevel
15+
directory of this repository with "jekyll1.9 --server --auto".
16+
This will give you a webserver for this repository
17+
on some TCP port number which is printed on stdout.
18+
For more help see https://github.com/mojombo/jekyll/wiki/Usage
19+

content/howtobuild.markdown

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,90 @@ layout: pages
33
title: Setting up and compiling
44
---
55

6-
1. Install libpcl - GNU Portable Coroutine Library, currently v1.12
7-
available at
6+
1. First define some handy environment variables for your
7+
preferred installation directory prefixes:
88

9-
[http://www.xmailserver.org/libpcl.html](http://www.xmailserver.org/libpcl.html)
9+
`export PCL_PREFIX=/your/PCL/prefix`
10+
`export LPEL_PREFIX=/your/LPEL/prefix`
11+
`export SNET_PREFIX=/your/SNET/prefix`
1012

13+
They may very well have the same prefix destinations
14+
such as "`/usr/local`". In the remainder of this page we will
15+
use these variables to install the PCL, LPEL and S-Net software to.
1116

12-
2. Extract the LPEL archive, then run:
1317

18+
2. Install
19+
[libPCL](http://www.xmailserver.org/libpcl.html)
20+
- the GNU Portable Coroutine Library, currently
21+
[version 1.12](http://www.xmailserver.org/pcl-1.12.tar.gz)
1422

15-
`./configure --with-pcl=<pcl_install_dir>`
16-
`--with-mctx=pcl`
17-
`--prefix=<lpel_install_dir>`
23+
`tar zxvf pcl-1.12.tar.gz`
24+
`cd pcl-1.12`
25+
`./configure --prefix=$PCL_PREFIX`
26+
`make`
27+
`make check`
28+
`make install`
29+
`cd ..`
30+
31+
32+
3. In case the PCL libraries have been installed into
33+
`$PCL_PREFIX/lib64` move them to `$PCL_PREFIX/lib`:
34+
35+
`mkdir -p $PCL_PREFIX/lib`
36+
`mv -f $PCL_PREFIX/lib64/libpcl* $PCL_PREFIX/lib/.`
37+
38+
39+
4. Use [Git](http://git-scm.com) to clone
40+
the LPEL repository from [Github](https://github.com),
41+
build and install it:
42+
43+
`git clone https://github.com/snetdev/lpel.git`
44+
`cd lpel`
45+
`./build-aux/bootstrap`
46+
47+
`./configure --with-pcl=$PCL_PREFIX \`
48+
` --with-mctx=pcl \`
49+
` --prefix=$LPEL_PREFIX`
1850

1951
`make`
2052
`make install`
53+
`cd ..`
2154

2255

23-
3. Extract the snet-runtime archive.
56+
5. Clone the snet-runtime repository from Github, build and install it:
2457

58+
`git clone https://github.com/snetdev/snet-rts.git`
2559

60+
`cd snet-rts`
61+
`./bootstrap`
2662

27-
4. At the top-level of the runtime tree, run:
63+
`./configure --with-lpel-includes=$LPEL_PREFIX/include \`
64+
` --with-lpel-libs=$LPEL_PREFIX/lib \`
65+
` --prefix=$SNET_PREFIX`
2866

67+
`make`
68+
`make install`
2969

30-
`./configure --with-lpel-includes=<lpel_install_dir>/include \`
31-
` --with-lpel-libs=<lpel_install_dir>/lib \`
32-
` --prefix=<my_snet_dir>`
3370

34-
`make # this builds the run-time system`
35-
`make install # moves files into place under <my_snet_dir>`
71+
6. Define S-Net environment variables in your personal startup files
72+
which are required to compile S-Net source code:
3673

37-
`export SNET_INCLUDES=<my_snet_dir>/include/snet`
38-
`export SNET_LIBS=<my_snet_dir>/lib/snet`
39-
`export SNET_MISC=<my_snet_dir>/share/snet`
74+
`export SNET_INCLUDES=$SNET_PREFIX/include/snet`
75+
`export SNET_LIBS=$SNET_PREFIX/lib/snet`
76+
`export SNET_MISC=$SNET_PREFIX/share/snet`
4077

4178

4279

43-
5. Set your library search path for S-Net and LPEL. On Linux:
80+
7. Set your library search path for S-Net and LPEL. On Linux:
4481

45-
`export LD_LIBRARY_PATH=$SNET_LIBS:<lpel_install_dir>:$LD_LIBRARY_PATH`
82+
`export LD_LIBRARY_PATH=$SNET_LIBS:$LPEL_PREFIX/lib:$LD_LIBRARY_PATH`
4683

4784
On OS X:
4885

4986
`# on OS X, include $SNET_LIBS and LPEL in your DYLD_LIBRARY_PATH:`
50-
`export DYLD_LIBRARY_PATH=$SNET_LIBS:<lpel_install_dir>:$DYLD_LIBRARY_PATH`
87+
`export DYLD_LIBRARY_PATH=$SNET_LIBS:$LPEL_PREFIX/lib:$DYLD_LIBRARY_PATH`
88+
5189

90+
8. Download the S-Net compiler archive and unpack it. The archive contains a compiled binary. For convenience you may want to consider placing the compiler binary into a directory in your $PATH.
5291

53-
6. Download the S-Net compiler archive and unpack it. The archive contains a compiled binary. For convenience you may want to consider placing the compiler binary into a directory in your $PATH.
5492

index.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
layout: pages
33
title: S-Net Dev // Downloads
44
---
5-
Here you can download all the individual parts to build the S-Net tool chain.
6-
Everything you need to get up and running with S-Net is listed on the right.
7-
All parts, except for the compiler for the time being, are available as sources
5+
Welcome to the S-Net project on Github!
6+
All S-Net software, except for the compiler for the time being,
7+
are available as sources
88
and are licensed under the LGPL.
99

1010
Have a look at the [How to Build Guide](content/howtobuild.html)

0 commit comments

Comments
 (0)