forked from mp-bull/qme-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
How_to_use_qme-ng_on_OSX
55 lines (28 loc) · 2.81 KB
/
How_to_use_qme-ng_on_OSX
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
44
45
46
47
48
49
50
51
52
53
54
55
I have recently figured the fact that it is possible to get qme-ng to compile, link and execute successfully under MacOSX. I know this is anything but an achievement for computer science professionals but…I as well as most people who do get interested in qme-ng, are not CS professionals.
The trick here is that you need to download and install several programs correctly to get the program to work. You also need to modify the Makefile Dr.M Perotin gave you.
Here are the steps:
1.Get qme-ng.
You can download qme-ng from github: https://github.com/mp-bull/qme-ng
You then need to unzip it. You can not get it to work right now though since you do not have these two programs: GNU GMP and Boost without which qme-ng does not compile and hence not work.
2.Get and install GNU GMP.
Here the website of GNU GMP to download the latest version: https://gmplib.org/
Please include C++ support in the configuration. (This is important since it is by default NOT included). Please write down where you installed GMP since you will need the information later.
3.Get and install Boost.
Here is the website of Boost to download it: http://www.boost.org/
In essence Boost looks like a collection of packages that do not necessarily have too much to do with each other. You need to install Boost, or at least Boost:programming_options which is used by qme-ng. Please write down where you installed Boost since you will need the information later.
4.Modify your DYLD_LIBRARY_PATH
Please see http://www.boost.org/doc/libs/1_60_0/more/getting_started/unix-variants.html#test-your-program
5.Modify the Makefile
Please use my Makefile which is different from Perotin's.
Notes:
a) Please do not use any whitespace between -L and the path.
b) Please do use one whitespace to separate different parts in INC and LDFLAGS.
c) Please keep the indentation as it is since wrong indentation is likely to lead to errors.
6.Compile and link qme-ng.
Finally you can make the program. You need to go to the correct folder in Terminal and type “make”. This is enough since all necessary instructions are in your Makefile. There will be a bunch of warnings but it is fine.
7.Now qme-ng works!
Please type in ./qme-ng to see the help instructions. Then you can use it to calculate the number of maximal green sequences of different quivers.
Notes:
a) Prof Keller’s .qmu files are supported.When you have some weird quiver that does not fit into any type please draw it on Keller’s program and then put it into qme-ng.
b) These guys call framed quivers “principal extension”. Yes framed quivers, not coframed quivers. That’s straight from their program.
c) If your quiver is not of finite type and you want to get all maximal green sequences your program probably will never stop. At least I have never observed it ever stops when a quiver of infinite type is entered.