[PROJ] Building PROJ with SQLite3 in archive

Nathan Sizemore nathanrsizemore at gmail.com
Tue Jul 23 17:41:17 PDT 2024


Hello,

I am wanting to build libproj as a static lib, with sqlite included. It
appears even though I am setting the sqlite paths, shared libs off, all
sqlite refs in the static lib are undefined. I do not have any other sqlite
installs on my system, only the custom one and no shared libs of it, only
the .a.

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/nate/dev/tmp/proj \
      -DCMAKE_BUILD_TYPE=Release \
      -DBUILD_APPS=OFF \
      -DBUILD_TESTING=OFF \
      -DBUILD_SHARED_LIBS=OFF \
      -DENABLE_CURL=OFF \
      -DENABLE_TIFF=OFF \
      -DEXE_SQLITE3=/home/nate/dev/tmp/sqlite/bin/sqlite3 \
      -DSQLite3_INCLUDE_DIR=/home/nate/dev/tmp/sqlite/include \
      -DSQLite3_LIBRARY=/home/nate/dev/tmp/sqlite/lib/libsqlite3.a \
      ..
cmake --build . --parallel 10
cmake --install .

~/dev/tmp$ nm -u proj/lib/libproj.a | grep sqlite
                 U _Z21pj_clear_sqlite_cachev
                 U sqlite3_vsnprintf
                 U sqlite3_bind_blob
                 U sqlite3_bind_int64
                 U sqlite3_bind_null
                 U sqlite3_bind_text
                 U sqlite3_close
... and so on

Am I missing anything or is sqlite forced as a shared dep?

- nate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20240723/d9b93052/attachment.htm>


More information about the PROJ mailing list