File tree 3 files changed +24
-5
lines changed
3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 16
16
17
17
FROM gcr.io/oss-fuzz-base/base-builder
18
18
MAINTAINER even.rouault@spatialys.com
19
- RUN apt-get update && apt-get install -y make autoconf automake libtool g++ zlib1g-dev libsqlite3-dev libexpat-dev liblzma-dev libxerces-c-dev libpng12-dev libgif-dev libwebp-dev libicu-dev libnetcdf-dev curl cmake libssl-dev sqlite3
20
- # libgeos-dev libjpeg-dev libcurl4-gnutls-dev libxml2-dev netcdf-bin libpoppler-dev libspatialite-dev libhdf4-alt-dev libhdf5-serial-dev poppler-utils libfreexl-dev unixodbc-dev libepsilon-dev libpcre3-dev
21
- # libpodofo-dev libcrypto++-dev
19
+ RUN dpkg --add-architecture i386 && \
20
+ apt-get update && \
21
+ apt-get install -y make autoconf automake libtool g++ curl cmake sqlite3
22
22
RUN git clone --depth 1 https://github.com/OSGeo/gdal gdal
23
23
24
24
RUN git clone --depth 1 https://github.com/OSGeo/proj.4 gdal/proj
Original file line number Diff line number Diff line change 15
15
#
16
16
# ###############################################################################
17
17
18
+ I386_PACKAGES=" zlib1g-dev:i386 libexpat-dev:i386 liblzma-dev:i386 \
19
+ libxerces-c-dev:i386 libpng12-dev:i386 libgif-dev:i386 \
20
+ libwebp-dev:i386 libicu-dev:i386 libnetcdf-dev:i386 \
21
+ libssl-dev:i386 libsqlite3-dev:i386"
22
+ X64_PACKAGES=" zlib1g-dev libexpat-dev liblzma-dev \
23
+ libxerces-c-dev libpng12-dev libgif-dev \
24
+ libwebp-dev libicu-dev libnetcdf-dev \
25
+ libssl-dev libsqlite3-dev"
26
+
27
+ if [ " $ARCHITECTURE " = " i386" ]; then
28
+ apt-get install -y $I386_PACKAGES automake libtool autoconf
29
+ else
30
+ apt-get install -y $X64_PACKAGES
31
+ fi
32
+
33
+
18
34
# build libproj.a (proj master required)
19
35
cd proj
20
36
./autogen.sh
21
- ./configure --disable-shared --prefix=$SRC /install
37
+ SQLITE3_CFLAGS=-I/usr/include SQLITE3_LIBS=-lsqlite3 ./configure --disable-shared --prefix=$SRC /install
22
38
make clean -s
23
39
make -j$( nproc) -s
24
40
make install
@@ -46,7 +62,7 @@ cd ../..
46
62
# build gdal
47
63
cd gdal
48
64
export LDFLAGS=${CXXFLAGS}
49
- ./configure --without-libtool --with-liblzma --with-expat --with-sqlite3 --with-xerces --with-webp --with-netcdf=$SRC /install --with-curl=$SRC /install --without-hdf5 --with-jpeg=internal --with-proj=$SRC /install
65
+ ./configure --without-libtool --with-liblzma --with-expat --with-sqlite3 --with-xerces --with-webp --with-netcdf=$SRC /install --with-curl=$SRC /install/bin/curl-config --without-hdf5 --with-jpeg=internal --with-proj=$SRC /install
50
66
make clean -s
51
67
make -j$( nproc) -s static-lib
52
68
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ auto_ccs:
7
7
- " juergen.fischer@gmail.com"
8
8
- " athomas@thinkspatial.com.au"
9
9
- " ari.jolma@gmail.com"
10
+ architectures :
11
+ - x86_64
12
+ - i386
You can’t perform that action at this time.
0 commit comments