Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build issues (GDAL latest) with PROJ 9.2.0 Docker Image #3696

Closed
snowman2 opened this issue Apr 4, 2023 · 5 comments
Closed

CMake build issues (GDAL latest) with PROJ 9.2.0 Docker Image #3696

snowman2 opened this issue Apr 4, 2023 · 5 comments

Comments

@snowman2
Copy link
Contributor

snowman2 commented Apr 4, 2023

From: rasterio/rasterio#2788

Failed build with more detailed build logs: https://github.com/rasterio/rasterio/actions/runs/4603105992/jobs/8132791454?pr=2788

This seemed like the culprit, but could be something else:

CMake Error in /usr/lib/x86_64-linux-gnu/cmake/proj/proj-config.cmake:
  cmake_policy PUSH without matching POP
Call Stack (most recent call first):
  cmake/helpers/CheckDependentLibraries.cmake:348 (find_package)
  gdal.cmake:265 (include)
  CMakeLists.txt:246 (include)

Building GDAL latest worked fine on the PROJ 9.1.0 image, the only change was updating to 9.2.0.

If you need more details, please let me know and I would be happy to provide them.

Thanks!

@rouault
Copy link
Member

rouault commented Apr 4, 2023

Transfering as a PROJ issue

@rouault rouault transferred this issue from OSGeo/gdal Apr 4, 2023
rouault added a commit to rouault/PROJ that referenced this issue Apr 4, 2023
@rouault
Copy link
Member

rouault commented Apr 4, 2023

@snowman2 #3697 will fix the "cmake_policy PUSH without matching POP" error

But to fix your real issue you need to add "apt install libtiff-dev libcurl4-openssl-dev" in your recipee

@snowman2
Copy link
Contributor Author

snowman2 commented Apr 4, 2023

Thanks @rouault 👍

@snowman2 snowman2 closed this as completed Apr 4, 2023
rouault added a commit that referenced this issue Apr 6, 2023
CMake: avoid imbalanced cmake_policy push/pop if TIFF or CURL dependency cannot be found (fixes #3696)
rouault added a commit that referenced this issue Apr 6, 2023
rouault added a commit that referenced this issue Apr 7, 2023
[Backport 9.2] CMake: avoid imbalanced cmake_policy push/pop if TIFF or CURL dependency cannot be found (fixes #3696)
@rouault
Copy link
Member

rouault commented Apr 8, 2023

@snowman2 Fixing my above response, due to looking at your attempts in rasterio/rasterio@ffa50b9. It should read libtiff-dev, not libcurl-dev. Sorry.

==> you need to add "apt install libtiff-dev libcurl4-openssl-dev" in your recipee

@snowman2
Copy link
Contributor Author

snowman2 commented Apr 8, 2023

Thanks @rouault 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants