1 |
mocchiut |
1.3 |
How to compile with 32bit arch on 32bit machine: |
2 |
|
|
|
3 |
|
|
1) set the PAMELA environment |
4 |
|
|
|
5 |
|
|
2) source set_env_comp.sh |
6 |
|
|
|
7 |
|
|
3) make distclean all install |
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
mocchiut |
1.1 |
How to compile with 32bit arch on 64bit machine: |
13 |
|
|
|
14 |
mocchiut |
1.3 |
1) set the PAMELA environment |
15 |
|
|
|
16 |
|
|
2) source set_env_comp.sh |
17 |
|
|
|
18 |
|
|
3) set the PAM_BIT environmental variable to "-m32" |
19 |
mocchiut |
1.1 |
|
20 |
mocchiut |
1.3 |
4) enter the directory "event" |
21 |
mocchiut |
1.1 |
|
22 |
mocchiut |
1.3 |
5) mv Makefile Makefile.orig |
23 |
mocchiut |
1.1 |
|
24 |
mocchiut |
1.3 |
6) mv Makefile.compile32biton64bitarch Makefile |
25 |
mocchiut |
1.1 |
|
26 |
mocchiut |
1.3 |
7) edit Makefile and set the correct path for these two lines, repeated twice on lines 103/104 and 117/118 |
27 |
mocchiut |
1.1 |
|
28 |
|
|
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtbeginS.o \ |
29 |
|
|
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtendS.o \ |
30 |
|
|
|
31 |
|
|
the correct path depends on your setup. |
32 |
|
|
|
33 |
mocchiut |
1.3 |
8) make distclean all install |
34 |
mocchiut |
1.1 |
|
35 |
|
|
|
36 |
|
|
|
37 |
mocchiut |
1.2 |
|
38 |
mocchiut |
1.1 |
How to compile with 64bit arch on 64bit machine: |
39 |
|
|
|
40 |
mocchiut |
1.3 |
1) set the PAMELA environment #### remember to use 64bit external software (ROOT, MySQL, etc.) #### |
41 |
mocchiut |
1.1 |
|
42 |
mocchiut |
1.3 |
2) source set_env_comp.sh |
43 |
mocchiut |
1.2 |
|
44 |
mocchiut |
1.3 |
3) set the PAM_BIT environmental variable to "-m64" |
45 |
mocchiut |
1.2 |
|
46 |
mocchiut |
1.3 |
4) enter the directory "event" |
47 |
mocchiut |
1.2 |
|
48 |
mocchiut |
1.3 |
5) mv Makefile Makefile.orig |
49 |
|
|
|
50 |
|
|
6) mv Makefile.compileon64bitarch Makefile |
51 |
|
|
|
52 |
|
|
7) edit Makefile and set the correct path for these two lines, repeated twice on lines 103/104 and 117/118 |
53 |
mocchiut |
1.2 |
|
54 |
|
|
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtbeginS.o \ |
55 |
|
|
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtendS.o \ |
56 |
|
|
|
57 |
|
|
the correct path depends on your setup. |
58 |
|
|
|
59 |
mocchiut |
1.3 |
8) make distclean all install |
60 |
|
|
|