@@ -19,6 +19,7 @@ Building QGIS from source - step by step
19
19
* [ 3.8.1. Compiling with 3D on old Debian based distributions] ( #381-compiling-with-3d-on-old-debian-based-distributions )
20
20
* [ 3.9. Building different branches] ( #39-building-different-branches )
21
21
* [ 3.10. Building Debian packages] ( #310-building-debian-packages )
22
+ * [ 3.10.1. Building packages with oracle support] ( #3101-building-packages-with-oracle-support )
22
23
* [ 3.11. On Fedora Linux] ( #311-on-fedora-linux )
23
24
* [ 3.11.1. Install build dependencies] ( #3111-install-build-dependencies )
24
25
* [ 3.11.2. Suggested system tweaks] ( #3112-suggested-system-tweaks )
@@ -405,20 +406,27 @@ Instead of creating a personal installation as in the previous step you can
405
406
also create debian package. This is done from the QGIS root directory, where
406
407
you'll find a debian directory.
407
408
408
- First you need to install the [ build dependencies] ( #33-install-build-dependencies )
409
- and setup a changelog entry for your distribution. For example for Debian Bookworm:
409
+ First setup a changelog entry for your distribution. For example for Debian Bookworm:
410
410
411
411
``` bash
412
412
dch -l ~ bookworm --force-distribution --distribution bookworm " bookworm build"
413
413
```
414
414
415
+ You also need to install the [ build dependencies] ( #33-install-build-dependencies ) .
416
+ Alternatively use:
417
+
418
+ ``` bash
419
+ debian/rules templates
420
+ sudo mk-build-deps -i
421
+ ```
422
+
415
423
The QGIS packages will be created with:
416
424
417
425
``` bash
418
426
dpkg-buildpackage -us -uc -b
419
427
```
420
428
421
- ** Note:** Install ` devscripts ` to get ` dch ` .
429
+ ** Note:** Install ` devscripts ` to get ` dch ` and ` mk-build-deps ` .
422
430
423
431
** Note:** If you have ` libqgis1-dev ` installed, you need to remove it first
424
432
using ` dpkg -r libqgis1-dev ` . Otherwise ` dpkg-buildpackage ` will complain about a
@@ -436,6 +444,28 @@ Install them using `dpkg`. E.g.:
436
444
sudo debi
437
445
```
438
446
447
+ ### 3.10.1. Building packages with Oracle support
448
+
449
+ To build packages with Oracle support you need the Oracle libraries (currently
450
+ 21.11) as additional build dependencies:
451
+
452
+ ``` bash
453
+ curl -JLO https://download.oracle.com/otn_software/linux/instantclient/2111000/oracle-instantclient-devel-21.11.0.0.0-1.el8.x86_64.rpm
454
+ curl -JLO https://download.oracle.com/otn_software/linux/instantclient/2111000/oracle-instantclient-basiclite-21.11.0.0.0-1.el8.x86_64.rpm
455
+ sudo apt install alien
456
+ fakeroot alien oracle-instantclient-devel-21.11.0.0.0-1.el8.x86_64.rpm oracle-instantclient-basiclite-21.11.0.0.0-1.el8.x86_64.rpm
457
+ sudo dpkg -i oracle-instantclient-devel_21.11.0.0.0-2_amd64.deb oracle-instantclient-basiclite_21.11.0.0.0-2_amd64.deb
458
+ ```
459
+
460
+ (if the client version changes it's necessary to adapt ` ORACLE_INCLUDEDIR ` and ` ORACLE_LIBDIR ` accordingly)
461
+
462
+ The packaging files enable Oracle support if the distribution contains "-oracle":
463
+
464
+ ``` bash
465
+ dch -l ~ sid~oracle --force-distribution --distribution sid-oracle " sid build with oracle" │
466
+ dpkg-buildpackage -us -uc -b
467
+ ```
468
+
439
469
## 3.11. On Fedora Linux
440
470
441
471
We assume that you have the source code of QGIS ready and created a
0 commit comments