What I really wanted is to build GDal, but that requires PROJ, which requires SQLite3. None of these are particularly user friendly when it comes to building. After 4 hours, I'm stuck. What I did so far:
- download PROJ source
- Download SQLite
sqlite-amalgamation-3290000.zip
source - Download
sqlite-dll-win64-x64-3290000.zip
.exe and .dll - In PROJ directory
mkdir build
andcd build
Run CMAKE with preset paths to SQLite:
cmake -DSQLITE3_INCLUDE_DIR=D:\sqlite3\src -DSQLITE3_LIBRARY=D:\sqlite3\bin\sqlite3.dll ..
- Then run build:
cmake --build .
- Compilation suceeds but link fails
The error:
Building Custom Rule D:/proj-6.1.1/test/unit/CMakeLists.txt
main.cpp
proj_errno_string_test.cpp
Generating Code...
D:\sqlite3\bin\sqlite3.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x360 [
D:\proj-6.1.1\build\test\unit\proj_errno_string_test.vcxproj]
I don't know what the problem is. Maybe the .dll
is not compatible? Maybe it should be .lib
? None of that is documented in PROJ.