File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 12121 . Download OpenSSL sources and extract it in the "phpdesktop/php/" directory. See https://github.com/openssl/openssl/releases .
13131 . Download libiconv sources and extract in php/ directory. See https://www.gnu.org/software/libiconv/ .
14141 . Download libxml2 official distribution tarball (tar.xz) and extract in php/ directory. See https://gitlab.gnome.org/GNOME/libxml2/-/releases .
15- 1 . Download sqlite sources and extract in php/ directory. See https://www.sqlite.org/download.html .
16151 . Download zlib 1.3.1 sources and extract in php/ directory. See https://github.com/madler/zlib/releases .
16+ 1 . Download sqlite sources and extract in php/ directory. See https://www.sqlite.org/download.html .
17171 . Download PHP sources and extract it in the "phpdesktop/php/" directory. See https://www.php.net/downloads.php .
18181 . RUn ` buildopenssl.sh ` script.
19191 . Run ` buildiconv.sh ` script.
20201 . Run ` buildxml.sh ` script.
21- 1 . Run ` buildsqlite.sh ` script.
22211 . Run ` buildzlib.sh ` script.
22+ 1 . Run ` buildsqlite.sh ` script.
23231 . Run ` buildphp.sh ` script, but before running see the script comments to install requirements.
24241 . Run ` cleanbuild.sh ` script.
Original file line number Diff line number Diff line change @@ -18,13 +18,22 @@ if ! cd $root_dir/php/ ; then
1818fi
1919rm -f libsqlite3.dylib
2020
21+ if ! cd $root_dir /php/zlib-* / ; then
22+ echo " Can't find zlib directory"
23+ exit 1
24+ fi
25+ zlib_dir=$( realpath $( pwd) )
26+ echo " Found zlib: ${zlib_dir} "
27+
2128if ! cd $root_dir /php/sqlite-* / ; then
2229 echo " Can't find sqlite directory"
2330 exit 1
2431fi
2532sqlite_dir=$( realpath $( pwd) )
2633echo " Found sqlite: ${sqlite_dir} "
2734
35+ export CPPFLAGS=" -I${zlib_dir} /dist-install/include"
36+ export LDFLAGS=" -L${zlib_dir} /dist-install/lib"
2837echo " Configure sqlite..."
2938./configure \
3039 --prefix=${sqlite_dir} /dist-install \
@@ -35,5 +44,6 @@ make install
3544cp ./dist-install/lib/libsqlite3.dylib.3.* ./../libsqlite3.dylib
3645install_name_tool -id libsqlite3.dylib ./../libsqlite3.dylib
3746install_name_tool -delete_rpath $sqlite_dir /dist-install/lib ./../libsqlite3.dylib
47+ install_name_tool -change $zlib_dir /dist-install/lib/libz.1.dylib libz.1.3.1.dylib ./../libsqlite3.dylib
3848
3949echo " Done."
You can’t perform that action at this time.
0 commit comments