Open philiane opened 2 weeks ago
After investigations, I understood that the gdal compilation error came from the non-definition of the Parquet_VERSION variable in the ogr/ogrsf_frmts/parquet/CMakeLists.txt file (line 12). If we initialize this variable (set(Parquet_VERSION 11.0)), the gdal compilation is performed without error.
same error (linux, gcc), can you elaborate on how you fixed it? Setting "set(Parquet_VERSION 11.0)" in the top level cmake file didn't change anything.
@Luk0r @philiane I've created a PR which, in my opinion, fixes the root cause of this behavior: gdal doesn't know anything about Parquet version because find_package()
searches for Arrow and thus gdal "sees" only its main version variable.
Maybe it's a byproduct of replace-find-package
patch.
Description
Installing gdal/3.8.3 or 3.7.3 in both Release and Debug mode with default recipe/settings failed. My colleagues got the same error on their PC
Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.version=194 os=Windows
Steps to reproduce
conan install . --output-folder=build --build=missing
Logs
Click to expand log
``` -------- Installing package gdal/3.8.3 (31 of 31) -------- gdal/3.8.3: Building from source gdal/3.8.3: Package gdal/3.8.3:f94e8911f0aacf729ba5cfec32c8f0efe5a7e792 gdal/3.8.3: Copying sources to build folder gdal/3.8.3: Building your package in C:\Users\Philippe\.conan2\p\b\gdalbcb0db5894771\b gdal/3.8.3: Calling generate() gdal/3.8.3: Generators folder: C:\Users\Philippe\.conan2\p\b\gdalbcb0db5894771\b\build\generators gdal/3.8.3: CMakeToolchain generated: conan_toolchain.cmake gdal/3.8.3: CMakeToolchain generated: C:\Users\Philippe\.conan2\p\b\gdalbcb0db5894771\b\build\generators\CMakePresets.json gdal/3.8.3: CMakeToolchain generated: C:\Users\Philippe\.conan2\p\b\gdalbcb0db5894771\b\src\CMakeUserPresets.json gdal/3.8.3: Generating aggregated env files gdal/3.8.3: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] gdal/3.8.3: Calling build() gdal/3.8.3: Apply patch (conan): Use custom version of find_package() for Conan deps gdal/3.8.3: Apply patch (conan): Fix private linking not working for some Conan dependencies gdal/3.8.3: Apply patch (conan): Fix CMake failure due to cyclical dependencies in CMakeDeps targets gdal/3.8.3: WARN: deprecated: Use of 'source_path' is deprecated, please use 'source_folder' instead gdal/3.8.3: Running CMake.configure() gdal/3.8.3: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/Philippe/.conan2/p/b/gdalbcb0db5894771/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/Philippe/.conan2/p/b/gdalbcb0db5894771/b" -- Using Conan toolchain: C:/Users/Philippe/.conan2/p/b/gdalbcb0db5894771/b/build/generators/conan_toolchain.cmake -- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143 -- Conan toolchain: Setting CMAKE_MSVC_RUNTIME_LIBRARY=$<$