diff options
author | Dominic Steinitz <dominic@steinitz.org> | 2018-03-15 16:37:14 +0000 |
---|---|---|
committer | Dominic Steinitz <dominic@steinitz.org> | 2018-03-15 16:37:14 +0000 |
commit | 7b98f43f6ddca22ec0581e1a48e0626e2a8bc3de (patch) | |
tree | 42e9faeb2d241ef6c70f824885cda1e1611ae73e /packages | |
parent | 2cb51cd3cbc111a0251560516e772b6cece5446d (diff) |
Build instructions
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sundials/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/sundials/README.md b/packages/sundials/README.md new file mode 100644 index 0000000..400b36f --- /dev/null +++ b/packages/sundials/README.md | |||
@@ -0,0 +1,16 @@ | |||
1 | I think this builds the executable. I haven't tried cleaning | ||
2 | everything yet to double check. | ||
3 | |||
4 | ``` | ||
5 | cabal install | ||
6 | cd src | ||
7 | /nix/store/qrwfai93qhdaj5d4xd34n9bq58slzfxw-gcc-wrapper-6.4.0/bin/gcc -c helpers.c -I/nix/store/dr0yrlmscybjs5ifzw1m063g6xgw5imq-ghc-8.2.2-with-packages/lib/ghc-8.2.2/include | ||
8 | cd .. | ||
9 | ghc src/Main.hs src/helpers.o -lsundials_arkode -o Main | ||
10 | ``` | ||
11 | |||
12 | To run you will (on MACos) also need | ||
13 | |||
14 | ``` | ||
15 | export DYLD_LIBRARY_PATH=~/.cabal/bin:/nix/store/dr0yrlmscybjs5ifzw1m063g6xgw5imq-ghc-8.2.2-with-packages/lib/ghc-8.2.2/rts | ||
16 | ``` \ No newline at end of file | ||