forked from LeMonADE-project/LeMonADE-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
133 lines (81 loc) · 3.28 KB
/
INSTALL
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
== INSTALL ==
1.) Windows
2.) Mac OS X
3.) Linux
The executable "LeMonADE-Viewer" is located in the folder "build" after installation.
== Windows ==
?
== Mac OS X ==
Standard compilation (LeMonADE-Viewer):
----------------------------------------------------
./configure -DLEMONADE_DIR=/path/to/LeMonADE/
make
or
mkdir build
cd build
cmake -DLEMONADE_DIR=/path/to/LeMonADE/ ..
make
----------------------------------------------------
The option -DLEMONADE_DIR is necessary only if the
LeMonADE library was installed to a non standard
location.
See https://github.com/LeMonADE-project/LeMonADE
for instructions on installing LeMonADE library.
----------------------------------------------------
#after successful build
# rendering a test-bfm-file
cd build/
./LeMonADE-Viewer ../test.bfm
== Linux ==
Standard compilation (LeMonADE-Viewer):
----------------------------------------------------
./configure -DLEMONADE_DIR=/path/to/LeMonADE/
make
or
mkdir build
cd build
cmake -DLEMONADE_DIR=/path/to/LeMonADE/ ..
make
----------------------------------------------------
The option -DLEMONADE_DIR is necessary only if the
LeMonADE library was installed to a non-standard
location.
See https://github.com/LeMonADE-project/LeMonADE
for instructions on installing LeMonADE library.
----------------------------------------------------
#after successful build
# rendering a test-bfm-file
cd build/
./LeMonADE-Viewer ../test.bfm
== Troubleshooting ==
* Problem: Build fails with linker error:
/usr/bin/ld: cannot find -lLeMonADE
Solution:
LeMonADE is not properly installed, or the option -DLEMONADE_DIR was set incorrectly.
(a) Install the LeMonADE library to a default system path
(b) Install the LeMonADE library to a custom path and hand this path
to the configure script, or cmake, depending on your choice of build method
./configure -DLEMONADE_DIR=/custom/install/path/to/LeMonADE
make
For installation instructions to the LeMonADE library see https://github.com/LeMonADE-project/LeMonADE
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
/usr/bin/ld: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
Solution: Add the following to src/LeMonADE-Viewer/CMakeLists.txt:
Original line:
target_link_libraries(${APPLICATION_NAME} ${OPENGL_LIBRARIES} ${FLTK_LIBRARIES} Camera LineParser LeMonADE)
Changed line:
target_link_libraries(${APPLICATION_NAME} ${OPENGL_LIBRARIES} ${FLTK_LIBRARIES} Camera LineParser LeMonADE dl)
Then, re-run the build instructions.
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
/usr/bin/ld: cannot find -lpng
Solution: Install development package for libpng12
sudo apt-get install libpng12-dev
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
/usr/bin/ld: cannot find -lz
Solution: Install development package for zlib1g
sudo apt-get install zlib1g-dev
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
/usr/bin/ld: cannot find -lSOME_LIBRARY_NAME
where SOME_LIBRARY_NAME one of (jpeg,Xft,fontconfig,Xinerama)
Solution: Install development package for libSOME_LIBRARY_NAME
sudo apt-get install libSOME_LIBRARY_NAME-dev