Skip to content

Commit 0476f90

Browse files
committed
Merge branch 'release-1.2.2'
2 parents a46fe72 + eb64374 commit 0476f90

3 files changed

Lines changed: 88 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SET (APPLICATION_CODENAME "${PROJECT_NAME}")
3434
SET (APPLICATION_COPYRIGHT_YEARS "2015")
3535
SET (APPLICATION_VERSION_MAJOR 1)
3636
SET (APPLICATION_VERSION_MINOR 2)
37-
SET (APPLICATION_VERSION_PATCH 1)
37+
SET (APPLICATION_VERSION_PATCH 2)
3838
SET (APPLICATION_VERSION_TYPE SNAPSHOT)
3939
SET (APPLICATION_VERSION_STRING "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}-${APPLICATION_VERSION_TYPE}")
4040
SET (APPLICATION_ID "${APPLICATION_VENDOR_ID}.${PROJECT_NAME}")
@@ -49,9 +49,9 @@ SET (CMAKE_VERBOSE_MAKEFILE 0) # Use 1 for debugging, 0 for release
4949
# Check if LEMONADE_DIR is given
5050
#
5151
if (DEFINED LEMONADE_DIR)
52-
message("LEMONADE_DIR set to "${LEMONADE_DIR})
52+
message("LEMONADE_DIR set to " ${LEMONADE_DIR})
5353
else()
54-
message(FATAL_ERROR "LEMONADE_DIR no set! Use -DLEMONADE_DIR=/path/to/LeMonADE/")
54+
message( WARNING "LEMONADE_DIR no set! If the LeMonADE library was installed to a custom directory, use -DLEMONADE_DIR=/path/to/LeMonADE/ to set the correct search path")
5555
endif()
5656

5757
#

INSTALL

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
cmake -DLEMONADE_DIR=/path/to/LeMonADE/ ..
2424
make
2525

26+
----------------------------------------------------
27+
The option -DLEMONADE_DIR is necessary only if the
28+
LeMonADE library was installed to a non standard
29+
location.
30+
See https://github.com/LeMonADE-project/LeMonADE
31+
for instructions on installing LeMonADE library.
32+
----------------------------------------------------
33+
2634
#after successful build
2735
# rendering a test-bfm-file
2836
cd build/
@@ -44,8 +52,82 @@
4452
cmake -DLEMONADE_DIR=/path/to/LeMonADE/ ..
4553
make
4654

55+
----------------------------------------------------
56+
The option -DLEMONADE_DIR is necessary only if the
57+
LeMonADE library was installed to a non-standard
58+
location.
59+
See https://github.com/LeMonADE-project/LeMonADE
60+
for instructions on installing LeMonADE library.
61+
----------------------------------------------------
62+
4763
#after successful build
4864
# rendering a test-bfm-file
4965
cd build/
5066
./LeMonADE-Viewer ../test.bfm
67+
68+
69+
== Troubleshooting ==
70+
71+
* Problem: Build fails with linker error:
72+
73+
/usr/bin/ld: cannot find -lLeMonADE
74+
75+
Solution:
76+
LeMonADE is not properly installed, or the option -DLEMONADE_DIR was set incorrectly.
77+
(a) Install the LeMonADE library to a default system path
78+
(b) Install the LeMonADE library to a custom path and hand this path
79+
to the configure script, or cmake, depending on your choice of build method
80+
81+
./configure -DLEMONADE_DIR=/custom/install/path/to/LeMonADE
82+
make
83+
84+
For installation instructions to the LeMonADE library see https://github.com/LeMonADE-project/LeMonADE
85+
86+
87+
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
88+
89+
/usr/bin/ld: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
90+
91+
Solution: Add the following to src/LeMonADE-Viewer/CMakeLists.txt:
92+
93+
Original line:
94+
95+
target_link_libraries(${APPLICATION_NAME} ${OPENGL_LIBRARIES} ${FLTK_LIBRARIES} Camera LineParser LeMonADE)
96+
97+
Changed line:
98+
99+
target_link_libraries(${APPLICATION_NAME} ${OPENGL_LIBRARIES} ${FLTK_LIBRARIES} Camera LineParser LeMonADE dl)
100+
101+
Then, re-run the build instructions.
102+
103+
104+
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
105+
106+
/usr/bin/ld: cannot find -lpng
107+
108+
Solution: Install development package for libpng12
109+
110+
sudo apt-get install libpng12-dev
111+
112+
113+
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
114+
115+
/usr/bin/ld: cannot find -lz
116+
117+
Solution: Install development package for zlib1g
118+
119+
sudo apt-get install zlib1g-dev
120+
121+
122+
* Problem: On Ubuntu (tested with Ubuntu 14.04), build fails with linker error:
123+
124+
/usr/bin/ld: cannot find -lSOME_LIBRARY_NAME
125+
126+
where SOME_LIBRARY_NAME one of (jpeg,Xft,fontconfig,Xinerama)
127+
128+
Solution: Install development package for libSOME_LIBRARY_NAME
129+
130+
sudo apt-get install libSOME_LIBRARY_NAME-dev
131+
132+
51133

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ For further details of LeMonADE-project see: [LeMonADE-project]
4848
cd build/
4949
./LeMonADE-Viewer ../test.bfm
5050
````
51+
## Troubleshooting
52+
53+
* see INSTALL for solution of known issues
5154

5255

5356
## License

0 commit comments

Comments
 (0)