[PROJ] Support request for using PROJ in CMake projects

CODETYMPAN codetympan at edf.fr
Wed Mar 6 08:20:51 PST 2024


Thank you very much for your quick reply.
Yes I've installed PROJ using miniconda, as I already had it installed on my computer, it was easier.
But unfortunately, I got the same error message.

And I am a bit annoyed having to install PROJ, I just want to use some features of PROJ in our opensource project.
I have QGIS installed on my computer, so PROJ is already installed.

Moreover, we're using appveyor for our CI, and PROJ does not seem to be pre-installed on appveyor windows images :
https://www.appveyor.com/docs/windows-images-software/

Does it mean we'll have to install PROJ on appveyor machine for every build of the CI ?

If you have an example of an opensource project using PROJ with CMake and CI, I'm interesting to have its reference.
And if not, I can push on an experimental branch in order to reproduce behaviour.

Thank in advance for your help.
Sincerely,
Jean.

De : erixen_cruz at earthbrain.com <erixen_cruz at earthbrain.com>
Envoyé : mercredi 6 mars 2024 16:25
À : proj at lists.osgeo.org; CODETYMPAN <codetympan at edf.fr>
Objet : Re: Support request for using PROJ in CMake projects

Did you install PROJ? https://proj.org/en/9.3/install.html#install

Other options are using vcpkg or conan to handle downloading, building, caching PROJ for you.
https://vcpkg.io/en/
https://conan.io/

Sincerely, Erixen
________________________________
From: PROJ <proj-bounces at lists.osgeo.org<mailto:proj-bounces at lists.osgeo.org>> on behalf of CODETYMPAN via PROJ <proj at lists.osgeo.org<mailto:proj at lists.osgeo.org>>
Sent: Wednesday, March 6, 2024 9:27 AM
To: proj at lists.osgeo.org<mailto:proj at lists.osgeo.org> <proj at lists.osgeo.org<mailto:proj at lists.osgeo.org>>
Subject: [PROJ] Support request for using PROJ in CMake projects


"I apologize, I had sent this message with email jean.ripolles at edf.fr<mailto:jean.ripolles at edf.fr> by mistake".



Hello,



We're trying to integrate PROJ in an opensource project using CMake.



Following strictly this page :

https://proj.org/en/9.3/development/cmake.html



CMake does find PROJ but we fall on this error message :



"CMake Error: File C:/projects/poc-ign-geopf/cmake/proj_config.cmake.in does not exist.

CMake Error at C:/dev/PROJ/cmake/ProjConfig.cmake:54 (configure_file):

  configure_file Problem configuring file"



Are we missing something ?



We attach the CMakeLists.txt file to this mail.



If necessary, we can push this project on an experimental branch, knowing that it depends on Qt5.15.2 MSVC2019.



Thanks in advance for your help.

Kind regards,

Jean.





Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.



Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20240306/2afbbab2/attachment-0001.htm>


More information about the PROJ mailing list