[PROJ] Anyone have success using cmake to build proj.4 version 6.1.0 with visual studio 2017

Kristian Evers kristianevers at gmail.com
Wed May 29 12:37:12 PDT 2019


Try having a look at Mateusz’ howto: https://github.com/OSGeo/proj.4/wiki/Building-with-VS-and-vcpkg <https://github.com/OSGeo/proj.4/wiki/Building-with-VS-and-vcpkg>

/Kristian

> On 29 May 2019, at 21:31, A <resistance_is_futile at hotmail.com> wrote:
> 
> In an effort to reduce our software licensing costs, I have been tasked into looking at the level of effort required to remove our dependency on a commercial vendor's SDK and replace it with something else. Preliminary investigations indicate that PROJ.4 version 6.x may fit the bill. However, I have been struggling to get PROJ.4 to build successfully. We are a Windows shop and our custom built applications run in this OS environment. Unfortunately we do not have the luxury of porting all our apps to Linux at this time.
> 
> Has anyone successfully built PROJ v6.1.0 using cmake and visual studio 2017 on Windows 10? I have followed the instructions on the PROJ.4 website, but with no luck. After installing sqlite3 and extracting the proj-6.1.0.tar archive, I ran cmake. This is my command line.
> 
> cmake -DSQLITE3_INCLUDE_DIR=C:\temp\sqlite3 -DSQLITE3_LIBARARY=C:\temp\sqlite3\sqlite3.dll -G "Visual Studio 15 2017 Win64" ..
> 
> There are several fatal errors. Here are a few of them from the CMakeError.log.
> 
> fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory
> fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
> fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
> 
> These are the versions of the tools I am using.
> 
> Windows 10 Enterprise v10.0.17134 Build 17134
> cmake version 3.14.4
> sqlite3 version 3.29.0
> Visual Studio 2017 v15.9.12
> 
> In fact, v6.0.0 and v5.2.0 also reported the same cmake errors. I even tried Visual Studio 2013 (also with no luck)
> 
> However, I was able to build PROJ.4 v4.9.3 successfully. Unfortunately to continue my evaluation, I need to test the WKT string capabilities of the proj_create function. Only version 6.x supports this WKT functionality.
> 
> Further, I did read through the mail archives and came across a thread posted by a.furieri, but the replier's answer was to use MinGW64 and MYSY2. I would prefer to stick with cmake and VS2017.
> 
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org <mailto:PROJ at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/proj <https://lists.osgeo.org/mailman/listinfo/proj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20190529/ea5c91c6/attachment-0001.html>


More information about the PROJ mailing list