Hi there. I just installed raycloudtools and treetools under a custom conda environment.
raycloudtools installed and tested fine after I compiled all necessary dependencies adding -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX to all cmake calls.
However, when trying to compile treetools I had issues linking to the PROJ and GeoTIFF libraries.
To solve the PROJ issue I just added a find_package(PROJ REQUIRED CONFIG) directive to the CMakeLists.txt
In the GeoTIFF case I had alter the raycloudtools-targets.cmake file manually after building raycloudtools, replacing geotiff_library by the full path to the libgeotiff.so file in the INTERFACE_LINK_LIBRARIES variable.
Those steps solved the issue and I'm able to run treetools inside my conda environment, but I couldn't track the source of the GeoTIFF issue to fix it. I checked the raycloudtools-targets.cmake in my local Docker image and the libgeotiff.so path was correctly listed in INTERFACE_LINK_LIBRARIES, so the issue seems to occur when building raycloudtools in a custom environment not using the system's default paths.
Any ideas on the origin of the GeoTIFF linking issue and how to solve it?
Best regards,
Tiago
Hi there. I just installed raycloudtools and treetools under a custom conda environment.
raycloudtools installed and tested fine after I compiled all necessary dependencies adding
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIXto allcmakecalls.However, when trying to compile treetools I had issues linking to the PROJ and GeoTIFF libraries.
To solve the PROJ issue I just added a
find_package(PROJ REQUIRED CONFIG)directive to the CMakeLists.txtIn the GeoTIFF case I had alter the
raycloudtools-targets.cmakefile manually after building raycloudtools, replacinggeotiff_libraryby the full path to thelibgeotiff.sofile in theINTERFACE_LINK_LIBRARIESvariable.Those steps solved the issue and I'm able to run treetools inside my conda environment, but I couldn't track the source of the GeoTIFF issue to fix it. I checked the
raycloudtools-targets.cmakein my local Docker image and thelibgeotiff.sopath was correctly listed inINTERFACE_LINK_LIBRARIES, so the issue seems to occur when building raycloudtools in a custom environment not using the system's default paths.Any ideas on the origin of the GeoTIFF linking issue and how to solve it?
Best regards,
Tiago