<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
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.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
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.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
cmake -DSQLITE3_INCLUDE_DIR=C:\temp\sqlite3 -DSQLITE3_LIBARARY=C:\temp\sqlite3\sqlite3.dll -G "Visual Studio 15 2017 Win64" ..</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
There are several fatal errors. Here are a few of them from the CMakeError.log.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
fatal error C1083: Cannot open include file: 'jni.h': No such file or directory</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
These are the versions of the tools I am using.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Windows 10 Enterprise v10.0.17134 Build 17134</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
cmake version 3.14.4</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
sqlite3 version 3.29.0</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Visual Studio 2017 v15.9.12</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
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)</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
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.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
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.
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
</body>
</html>