Skip to content

Add --with-sqlite3-lib configure arg #1835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Add --with-sqlite3-lib configure arg #1835

merged 1 commit into from
Nov 24, 2021

Conversation

drkrynstrng
Copy link
Contributor

This adds an --with-sqlite3-lib configure argument to specify a non-standard location for sqlite3 libraries. It provides a basic fix for #1471 and #1513.

I'm not sure why runstatedir was removed from configure, so feel free to fix it directly or let me know how I can fix it. I generated configure with autoconf/2.69.

@robsalasco
Copy link

hope this change gets merged soon!

@edzer edzer merged commit d4a1345 into r-spatial:main Nov 24, 2021
@edzer
Copy link
Member

edzer commented Nov 24, 2021

Thanks, looks useful!

@drkrynstrng drkrynstrng deleted the sqlite3 branch November 24, 2021 23:35
@harryprince
Copy link

seems the same issue on my project.

the sf-maiin was downloaded from github after this MR.

Sys.setenv(SQLITE3_LIBS = "/opt/packages/sqlite3/build/lib")

install.packages("/docker/opt/packages/R/centos7/sf-main/",configure.args = '--with-gdal-lib=/opt/packages/gdal/build/lib/ 
--with-sqlite3-lib=/opt/packages/sqlite3/build/lib/ 
--with-gdal-config=/opt/packages/gdal/build/bin/gdal-config 
--with-proj-share=/opt/packages/proj/build/share/ 
--with-proj-lib=/opt/packages/proj/build/ 
--with-proj-include=/opt/packages/proj/build/include/
--with-proj-data=/opt/packages/proj/build/', type = 'source',repos=NULL)

error:

checking GDAL: /opt/packages/gdal/build/share/gdal/pcs.csv readable... no
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available fur running:... yes
configure: GDAL: 3.4.0
configure: pkg-config proj exists, will use it
configure: using proj.h.
checking PROJ: checking whether PROJ and sqlite3 are available for linking:... no
configure: error: libproj or sqlite3 not found in standard or given locations.
ERROR: configuration failed for package ‘sf’
* removing ‘/usr/lib64/R/library/sf’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants