Build internal muparser more simply
[alexxy/gromacs.git] / src / external / muparser / Install.txt
1
2      _____  __ _____________ _______  ______ ___________
3     /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
4    |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
5    |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
6          \/      |__|       \/           \/     \/
7     Copyright (C) 2004 - 2020 Ingo Berg
8
9 =======================================================================
10     https://muparser.beltoforion.de
11 =======================================================================
12
13  Installation
14  ============
15
16  muParser can be installed just extracting the sources somewhere
17  and then, from a terminal, typing:
18
19    cd [path to muParser]
20    cmake . [-DENABLE_SAMPLES=ON/OFF] [-DENABLE_OPENMP=OFF/ON]
21            [-DBUILD_SHARED_LIBS=ON/OFF]
22    make
23    [sudo*] make install
24    [sudo*] ldconfig
25    cd samples/example1
26    ./example1
27
28  * = this command must be executed with root permissions and thus
29      you have to use 'sudo' or just 'su' to gain root access.
30      Note that installation and ldconfig are not strictly required unless
31      you built in shared mode.
32
33  The "make" step will create the muParser library in 'lib' and the
34  sample binary in samples/example1.
35  The samples/example2 is win32-specific and thus won't be built.
36
37
38
39  Other miscellaneous info Unix-specific
40  ======================================
41
42  If you don't like to have your muParser folder filled by temporary
43  files created by GCC, then you can do the following:
44
45     mkdir mybuild && cd mybuild && cmake .. && make
46
47  to put all object files in the "mybuild" directory.
48
49  If you want to use muParser library in your programs, you can use
50  the pkg-config program (this works only if muParser was installed
51  with 'make install' !). The commands:
52
53    pkg-config muparser --cflags
54    pkg-config muparser --libs
55
56  will return all useful info you need to build your programs against
57  muParser !
58
59
60
61  3. Where to ask for help
62  ========================
63
64  Please report any bugs or issues at the muparser project page at GitHub:
65
66   https://github.com/beltoforion/muparser/issues
67
68