Issue making CC with LAS plugin

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
pflani
Posts: 7
Joined: Tue Aug 24, 2021 4:22 pm

Issue making CC with LAS plugin

Post by pflani »

Hello,
I successfully built and installed cloudcompare v2.13.alpha on WIndows 11 last week so that I could adjust some CSF plugin source code.
However, I discovered on Friday that the default build does not include LAS support. I have no need for full waveform processing. All I need is the ability to import LAS files.

I have attempted cmake just with PDAL:

Code: Select all

cmake -DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64 -DPLUGIN_IO_QPDAL=ON -DPLUGIN_STANDARD_QCSF=ON -DPLUGIN_STANDARD_QRANSAC_SD=ON ..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
-- OpenMP found
-- Install shared library: CCAppCommon
-- Install shared library: CC_FBO_LIB
-- Install shared library: CCPluginAPI
-- Install shared library: CCCoreLib
-- Install shared library: QCC_DB_LIB
-- Install shared library: QCC_GL_LIB
-- Install shared library: QCC_IO_LIB
-- Added io plugin: QCORE_IO_PLUGIN
-- Added io plugin: QLAS_FWF_IO_PLUGIN
CMake Error at plugins/core/IO/qLASFWFIO/cmake/LASLibSupport.cmake:12 (message):
  No LASLib or LASZip include directories specified (LASLIB_INCLUDE_DIR /
  LASZIP_LASTOOLS_INCLUDE_DIR)
Call Stack (most recent call first):
  plugins/core/IO/qLASFWFIO/CMakeLists.txt:21 (include)


-- Added io plugin: QPDAL_IO_PLUGIN
-- Files: C:/Users/pfast/miniconda3/Library/lib/../bin/pdal_util.dll;C:/Users/pfast/miniconda3/Library/lib/../bin/pdalcpp.dll will be installed in CloudCompare
-- Files: C:/Users/pfast/miniconda3/Library/lib/../bin/pdal_util.dll;C:/Users/pfast/miniconda3/Library/lib/../bin/pdalcpp.dll will be installed in ccViewer
-- Added standard plugin: QCSF_PLUGIN
-- Added standard plugin: QRANSAC_SD_PLUGIN
-- Found submodule plugin: D:/CloudCompare/CloudCompare/plugins/core/Standard/qColorimetricSegmenter
-- Found submodule plugin: D:/CloudCompare/CloudCompare/plugins/core/Standard/qMasonry
-- Found submodule plugin: D:/CloudCompare/CloudCompare/plugins/core/Standard/qMPlane
-- Found submodule plugin: D:/CloudCompare/CloudCompare/plugins/core/Standard/qJSonRPCPlugin
-- Installing CloudCompare to CloudCompare
-- Install plugins
--  Types: gl;io;standard
--  Destination: CloudCompare/plugins
--  Shader Destination: CloudCompare/shaders
--  Install QCORE_IO_PLUGIN (io)
--  Install QLAS_FWF_IO_PLUGIN (io)
--  Install QPDAL_IO_PLUGIN (io)
--  Install QCSF_PLUGIN (standard)
--  Install QRANSAC_SD_PLUGIN (standard)
-- Installing ccViewer to ccViewer
-- Install plugins
--  Types: gl;io
--  Destination: ccViewer/plugins
--  Shader Destination: ccViewer/shaders
--  Install QCORE_IO_PLUGIN (io)
--  Install QLAS_FWF_IO_PLUGIN (io)
--  Install QPDAL_IO_PLUGIN (io)
-- Configuring incomplete, errors occurred!
See also "D:/CloudCompare/CloudCompare/build/CMakeFiles/CMakeOutput.log".
See also "D:/CloudCompare/CloudCompare/build/CMakeFiles/CMakeError.log".
Since it appeared that the build was still searching for qLASFWFIO, I set -DPLUGIN_IO_QLAS_FWF=OFF and got a successful cmake. But building in Visual Studio 2019 resulted in 7 errors:
Screenshot 2022-10-24 112217.png
Screenshot 2022-10-24 112217.png (63.74 KiB) Viewed 2224 times
So I tried including compiling the LAStools plugin:

Code: Select all

cmake -DLASLIB_INCLUDE_DIR="LAStools-master/LASlib/inc" -DLASZIP_INCLUDE_DIR="LAStools-master/LASzip/src" -DLASLIB_RELEASE_LIBRARY="LAStools-master/LASlib/VC14/lib/x64/LASlibVC14.lib"
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
-- Configuring done
-- Generating done
-- Build files have been written to: D:/CloudCompare/LAStools-master
Followed by:

Code: Select all

cmake --build .
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  LASlib.vcxproj -> D:\CloudCompare\LAStools-master\LASlib\lib\Debug\LASlib.lib
  las2las.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\las2las64.exe
  las2txt.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\las2txt64.exe
  lasdiff.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\lasdiff64.exe
  lasindex.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\lasindex64.exe
  lasinfo.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\lasinfo64.exe
  lasmerge.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\lasmerge64.exe
  lasprecision.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\lasprecision64.exe
  laszip.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\laszip64.exe
  txt2las.vcxproj -> D:\CloudCompare\LAStools-master\bin64\Debug\txt2las64.exe
Installing in the admin command prompt indicates an issue with MinSizeRel:

Code: Select all

D:\CloudCompare\LAStools-master>cmake --install .
-- Install configuration: "Release"
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasdefinitions.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasfilter.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasignore.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laskdtree.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_asc.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_bil.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_bin.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_dtm.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_las.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_ply.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_qfit.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_shp.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreader_txt.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaderbuffered.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreadermerged.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaderpipeon.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaderstored.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lastransform.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasutility.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasvlrpayload.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswaveform13reader.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswaveform13writer.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriter.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriter_bin.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriter_las.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriter_qfit.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriter_txt.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriter_wrl.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswritercompatible.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/arithmeticdecoder.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/arithmeticencoder.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/arithmeticmodel.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamin.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamin_array.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamin_file.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamin_istream.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreaminout.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreaminout_file.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamout.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamout_array.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamout_file.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamout_nil.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/bytestreamout_ostream.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/integercompressor.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasattributer.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasindex.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasinterval.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laspoint.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasquadtree.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasquantizer.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaditem.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaditemcompressed_v1.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaditemcompressed_v2.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaditemcompressed_v3.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaditemcompressed_v4.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreaditemraw.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasreadpoint.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/lasunzipper.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriteitem.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriteitemcompressed_v1.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriteitemcompressed_v2.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriteitemcompressed_v3.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriteitemcompressed_v4.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswriteitemraw.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laswritepoint.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laszip.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laszip_common_v1.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laszip_common_v2.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laszip_common_v3.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laszip_decompress_selective_v3.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/laszipper.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/include/LASlib/mydefs.hpp
-- Up-to-date: C:/Program Files (x86)/LAStools/lib/LASlib/Debug
-- Up-to-date: C:/Program Files (x86)/LAStools/lib/LASlib/Debug/LASlib.lib
-- Up-to-date: C:/Program Files (x86)/LAStools/lib/LASlib/Debug/LASlib.pdb
-- Up-to-date: C:/Program Files (x86)/LAStools/lib/LASlib/Release
-- Up-to-date: C:/Program Files (x86)/LAStools/lib/LASlib/Release/LASlib.lib
-- Up-to-date: C:/Program Files (x86)/LAStools/lib/LASlib/Release/LASlib.pdb
CMake Error at LASlib/src/cmake_install.cmake:122 (file):
  file INSTALL cannot find
  "D:/CloudCompare/LAStools-master/LASlib/src/../lib/MinSizeRel": No such
  file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:37 (include)
I gather MinSizeRel is related to the Debug or Release installation type, but that is honestly over my head. I've tried building in Visual Studio separately with the Release configuration (since build in VS code seems to default to Debug). Both configurations result in the same CMake error.

Thanks in advance for any insight!
Paul
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Issue making CC with LAS plugin

Post by daniel »

Where did you find this version of LASTools?

I don't have the same structure on my side (I got mine from github, and I compile it with an upgraded/converted version of the Visual Studio solution:
https://github.com/LAStools/LAStools/bl ... LASlib.dsw
Daniel, CloudCompare admin
pflani
Posts: 7
Joined: Tue Aug 24, 2021 4:22 pm

Re: Issue making CC with LAS plugin

Post by pflani »

Daniel,
I found a workaround.
I will keep that version of LASTools in my notes to try if/when the workaround stops working!

Thanks as always for your time!
Paul
Post Reply