c42f / displaz

A hackable lidar viewer
http://c42f.github.io/displaz
Other
235 stars 84 forks source link

Build broken for Ubuntu 18.04 due to QRandomGenerator #232

Closed nigels-com closed 6 months ago

nigels-com commented 6 months ago
[ 97%] Building CXX object src/CMakeFiles/displaz.dir/render/moc_GeometryMutator.cpp.o
/scratch/repo/src/las_io.cpp:8:10: fatal error: QRandomGenerator: No such file or directory
 #include <QRandomGenerator>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
src/CMakeFiles/displaz.dir/build.make:594: recipe for target 'src/CMakeFiles/displaz.dir/las_io.cpp.o' failed
make[2]: *** [src/CMakeFiles/displaz.dir/las_io.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 98%] Linking CXX executable ../bin/unit_tests
[ 98%] Built target unit_tests
CMakeFiles/Makefile2:159: recipe for target 'src/CMakeFiles/displaz.dir/all' failed
make[1]: *** [src/CMakeFiles/displaz.dir/all] Error 2
make: *** [all] Error 2

Ubuntu 16.04 also fails. Debian buster is OK. Debian stretch is expired June 2022. Fedora 34 is OK.

https://www.debian.org/releases/stretch/

Could use std RNG?

nigels-com commented 6 months ago

Fixed.