Trying this
```
cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb
PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON
-DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix
Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu
"-DCC_EXTRA_OPTS=\"-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security
-fcf-protection -DVERSION_NODATE\"" "-DLD_EXTRA_OPTS=\"-Wl,-z,relro
-Wl,-z,now\"" "-DINCLUDE_MODULES=\"mysql postgres berkeley unixodbc
radius presence ldap xml perl utils lua memcached snmpstats carrierroute xmpp cpl redis
geoip2 sqlite json ruby ims sctp tls outbound websocket autheph kazoo cnxcc erlang systemd
phonenum mongodb rabbitmq python3 mqtt secsipid lwsc nats tls_wolfssl microhttpd kafka ev
gzcompress jansson uuid http_async\"" "-DEXCLUDE_MODULES=\"mono geoip
bdb dbtext oracle pa iptrtpproxy dnssec java python\"" ..
```
I found some possible mistakes when trying the `cmake` command above. Correct if I am
wrong somewhere:
1. Including and excluding of modules is wrong: There is no need (it works but is
incorrect) to `"-DINCLUDE_MODULES="value""` directives only their
values.
Correct usage would be:
```
-DINCLUDE_MODULES="mysql postgres berkeley unixodbc radius presence ldap xml perl
utils lua memcached snmpstats carrierroute xmpp cpl redis geoip2 sqlite json ruby ims sctp
tls outbound websocket autheph kazoo cnxcc erlang systemd phonenum mongodb rabbitmq
python3 mqtt secsipid lwsc nats tls_wolfssl microhttpd kafka ev gzcompress jansson uuid
http_async" -DEXCLUDE_MODULES="mono geoip bdb dbtext oracle pa iptrtpproxy
dnssec java python"
```
2. See 1 about the rest of the options. I am not sure what is the correct usage of the
quotes here, but I believe the same applies.
3. Modules naming is wrong. Modules that are included and excluded must have the same name
of the folder ie `mysql` is `db_mysql`, `python` is `app_python` and so on. I got a lot of
warnings when I tried the cmake commands and that was one of them.
4. `CC_EXTRA_OPS` and `LD_EXTRA_OPS` are not used inside the CMakeLists. I will adopt this
so, it appends to the already defined options! Is this the expected behavior or you want
to override them?
So, regarding the `cfg_target`, you want to apply a `-DCFG_TARGET=/path/to/config/folder`
that is used, as the `CFG_DIR` and it's where the config files are installed?
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4053#issuecomment-2535517911
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4053/2535517911(a)github.com>