Created
January 12, 2023 21:28
-
-
Save glw/1a8ca2fc0bba4081ec0a1b71e01cdc95 to your computer and use it in GitHub Desktop.
Lidar software installs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://help.ubuntu.com/community/CompilingEasyHowTo | |
sudo checkinstall << which puts the program in the package manager for clean, easy removal later. This replaces the old sudo make install command. | |
# gdal | |
# las-perf | |
git clone https://github.com/hobu/laz-perf.git \ | |
cd laz-perf \ | |
mkdir build \ | |
cd build \ | |
cmake .. \ | |
make \ | |
sudo make install \ | |
# laszip | |
git clone https://github.com/LASzip/LASzip.git | |
cd LASzip | |
git checkout 3.1.0 | |
cmake . | |
make | |
sudo make install | |
# lastools | |
wget http://lastools.org/download/LAStools.zip | |
unzip LAStools.zip | |
cd LAStools | |
make | |
sudo cp bin/laszip /usr/local/bin | |
sudo ln -s /usr/local/bin/laszip /usr/local/bin/laszip-cli | |
# pcl | |
# dependencies: boost 1.47, eigen 3.0, flann 1.7.1 | |
# sudo apt-get install libeigen3-dev libflann-dev \ | |
libboost-filesystem1.65-dev \ | |
libboost-iostreams1.65-dev \ | |
libboost-program-options1.65-dev \ | |
libboost-system1.65-dev \ | |
libboost-thread1.65-dev \ | |
wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.9.1.tar.gz | |
tar xvfj pcl-1.9.1.tar.gz | |
cd pcl-1.9.1 && mkdir build && cd build | |
cmake .. | |
make -j2 | |
sudo make -j2 install | |
# pdal | |
# dependencies: GDAL, libgeotiff-dev, LASZip, las-perf, PCL, (Hexer no longer, its included with latest build) | |
cd PDAL | |
mkdir makefiles | |
cd makefiles | |
cmake -G "Unix Makefiles" ../ | |
-DBUILD_PLUGIN_CPD=ON \ | |
-DBUILD_PLUGIN_MBIO=OFF \ | |
-DBUILD_PLUGIN_GREYHOUND=ON \ | |
-DBUILD_PLUGIN_I3S=ON \ | |
-DBUILD_PLUGIN_HEXBIN=ON \ | |
-DBUILD_PLUGIN_ICEBRIDGE=OFF \ | |
-DBUILD_PLUGIN_MRSID=OFF \ | |
-DBUILD_PLUGIN_NITF=OFF \ | |
-DBUILD_PLUGIN_OCI=OFF \ | |
-DBUILD_PLUGIN_PCL=ON \ | |
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \ | |
-DBUILD_PLUGIN_SQLITE=ON \ | |
-DBUILD_PLUGIN_RIVLIB=OFF \ | |
-DBUILD_PLUGIN_PYTHON=ON \ | |
-DENABLE_CTEST=OFF \ | |
-DWITH_LAZPERF=ON \ | |
-DWITH_LASZIP=ON \ | |
-DWITH_ZSTD=ON \ | |
-DWITH_ZLIB=ON \ | |
-DWITH_TESTS=OFF \ | |
-DWITH_PDAL_JNI=OFF \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
sudo make install | |
# laspy | |
# dependencies: numpy | |
pip install laspy | |
# gippy | |
# dependencies: | |
# sudo apt-get install libgdal-dev python-setuptools g++ python-dev | |
# sudo pip install numpy | |
pip install gippy | |
# las2dem https://applied-geosolutions.github.io/lidar2dems/doc/installation.html | |
# grass https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#Current_stable_Ubuntu_version | |
wget https://grass.osgeo.org/grass74/source/grass-7.4.4.tar.gz | |
tar xvfj grass-7.4.4.tar.gz | |
cd grass-7.4.4 | |
MYLDFLAGS='-Wl,--no-undefined -Wl,-z,now' | |
MYCFLAGS='-O2 -fPIC -fno-common -fexceptions -march=native -std=gnu99 -fstack-protector -m64' | |
LDFLAGS="$MYLDFLAGS" CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure \ | |
--with-cxx \ | |
--enable-largefile \ | |
--with-proj \ | |
--with-proj-share=/usr/share/proj \ | |
--with-gdal=/usr/bin/gdal-config \ | |
--with-python \ | |
--with-geos \ | |
--with-sqlite \ | |
--with-nls \ | |
--with-liblas \ | |
--with-pdal \ | |
--with-cairo \ | |
--with-cairo-ldflags=-lfontconfig \ | |
--with-freetype=yes \ | |
--with-freetype-includes="/usr/include/freetype2/" \ | |
--with-wxwidgets \ | |
--with-fftw \ | |
--with-motif \ | |
--with-opengl-libs=/usr/include/GL \ | |
--with-postgres=yes \ | |
--with-postgres-includes="/usr/include/postgresql" \ | |
--without-netcdf \ | |
--without-mysql \ | |
--without-odbc \ | |
--without-openmp \ | |
--without-ffmpeg | |
make -j2 | |
sudo make -j2 install | |
# gdal_to_grass_plugin | |
wget http://download.osgeo.org/gdal/CURRENT/gdal-grass-2.4.0.tar.gz | |
tar xvfj gdal-grass-2.4.0.tar.gz | |
cd gdal-grass-2.4.0 | |
./configure \ | |
--with-gdal=/usr/local/gdal/bin/gdal-config \ | |
--with-grass=/usr/local/grass7/grass-7.1 \ | |
--with-postgres-includes=/usr/include/postgresql | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment