Skip to content

Commit ada0bda

Browse files
committed
[WIP] build sqlite3
- [x] Linux/macOS - [ ] Windows
1 parent 0b835bd commit ada0bda

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

library_builders.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,32 @@ function build_blosc2 {
171171
touch blosc-stamp2
172172
}
173173

174+
function build_sqlite {
175+
if [ -e sqlite-stamp ]; then return; fi
176+
177+
SQLITE_VERSION="3510200" # "3.51.2"
178+
179+
curl -sLO https://www.sqlite.org/2026/sqlite-autoconf-${SQLITE_VERSION}.tar.gz
180+
file sqlite-autoconf*.tar.gz
181+
tar xzf sqlite-autoconf-${SQLITE_VERSION}.tar.gz
182+
rm sqlite-autoconf*.tar.gz
183+
184+
cd sqlite-autoconf-${SQLITE_VERSION}
185+
186+
./configure \
187+
--disable-shared \
188+
--prefix=${BUILD_PREFIX} \
189+
--all \
190+
--disable-readline
191+
make
192+
sudo make install
193+
194+
cd -
195+
rm -rf sqlite-autoconf*
196+
197+
touch sqlite-stamp
198+
}
199+
174200
function build_zfp {
175201
if [ -e zfp-stamp ]; then return; fi
176202

@@ -314,6 +340,7 @@ fi
314340

315341
install_buildessentials
316342
build_zlib
343+
build_sqlite
317344
build_zfp
318345
build_blosc2
319346
build_hdf5

0 commit comments

Comments
 (0)