forked from OSGeo/PROJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Misc Linux building
Mike Taves edited this page Feb 11, 2020
·
1 revision
export PREFIX=/amp/gw/sw/
wget -O cmake-linux.sh https://cmake.org/files/v3.13/cmake-3.13.5-Linux-x86_64.sh
sh cmake-linux.sh -- --skip-license --prefix=$PREFIX
export PREFIX=/amp/gw/sw/
wget https://www.sqlite.org/2020/sqlite-amalgamation-3310100.zip
unzip sqlite-amalgamation-3310100.zip
cd sqlite-amalgamation-3310100
cp -v sqlite3.h $PREFIX/include/
gcc shell.c sqlite3.c -lpthread -ldl -o sqlite3
mv sqlite3 $PREFIX/bin/
gcc -c -fPIC sqlite3.c -o sqlite3.o
gcc sqlite3.o -shared -o libsqlite3.so
mv libsqlite3.so $PREFIX/lib/
export PREFIX=/amp/gw/sw/
wget https://download.osgeo.org/libtiff/tiff-4.1.0.zip
unzip tiff-4.1.0.zip
cd tiff-4.1.0/build
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ..
make
ctest
make install
export PREFIX=/amp/gw/sw/
cmake -B build -DBUILD_TESTING=OFF -DCMAKE_PREFIX_PATH=/amp/gw/sw