|
23 | 23 | cmake -DLEMONADE_DIR=/path/to/LeMonADE/ .. |
24 | 24 | make |
25 | 25 |
|
| 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 | + |
26 | 34 | #after successful build |
27 | 35 | # rendering a test-bfm-file |
28 | 36 | cd build/ |
|
44 | 52 | cmake -DLEMONADE_DIR=/path/to/LeMonADE/ .. |
45 | 53 | make |
46 | 54 |
|
| 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 | + |
47 | 63 | #after successful build |
48 | 64 | # rendering a test-bfm-file |
49 | 65 | cd build/ |
50 | 66 | ./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 | + |
51 | 133 |
|
0 commit comments