You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build_scripts/README.md
+44-1Lines changed: 44 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Scripts building php-firebird extension on Windows
1
+
# Scripts building php-firebird extension (Windows + Linux)
2
2
3
3
## How it works
4
4
@@ -21,3 +21,46 @@ Make sure ``git`` is in you PATH
21
21
PFB_SOURCE_DIR=D:\php-firebird\ then your source should reside in D:\php-firebird\php-firebird\
22
22
``
23
23
6. cd into php-sdk and from there run ``<path_to>\php-fb-build-all.bat`` to build for all PHP versions or run ``php-fb-build.bat 7.4 vc15`` to build for particular version.
24
+
25
+
---
26
+
27
+
# Build on Linux
28
+
29
+
Linux builds are handled by `php-fb-build-linux.sh`. It clones the extension source into a local build folder and builds one `.so` per configured PHP version.
30
+
31
+
## Prerequisites
32
+
33
+
- A working C/C++ build toolchain: `build-essential`, `autoconf`, `automake`, `libtool`, `pkg-config`, `g++`
- Default script paths assume a Firebird install under `/opt/firebird/`:
36
+
- headers: `/opt/firebird/include`
37
+
- library: `/opt/firebird/lib`
38
+
- For each PHP version you want to build, the corresponding packages must exist (Debian/Ubuntu naming):
39
+
-`phpX.Y-dev`, `phpX.Y-cli`, `phpX.Y-common`
40
+
41
+
Note: the script will try to install missing PHP packages via `sudo apt-get`. On non-Debian-based distros, install the equivalents manually and make sure `phpX.Y`, `phpizeX.Y` and `php-configX.Y` exist in `/usr/bin/`.
42
+
43
+
## Configure
44
+
45
+
Open `php-fb-build-linux.sh` and adjust if needed:
0 commit comments