Hey @sergey-safarov,
Are you sure on the latest commit? I have taken a look to logs you have sent.
I can see that when schemas are processed, your build looks like this for `acc` table and
`dbtext`:
Processing acc for dbtext
cd
/root/rpmbuild/BUILD/kamailio-6.0.0-build/kamailio-6.0.0-pre0/src/lib/srdb1/schema
&&
XML_CATALOG_FILES=/root/rpmbuild/BUILD/kamailio-6.0.0-build/kamailio-6.0.0-pre0/doc/stylesheets/dbschema_k/catalog.xml
/usr/bin/xsltproc --xinclude **--stringparam dir
/root/rpmbuild/BUILD/kamailio-6.0.0-build/kamailio-6.0.0-pre0/redhat-linux-build/utils/kamctl/dbtext**
--stringparam prefix '' --stringparam db dbtext
/root/rpmbuild/BUILD/kamailio-6.0.0-build/kamailio-
6.0.0-pre0/doc/stylesheets/dbschema_k/xsl/dbtext.xsl kamailio-acc.xml
While for me (note the bold regarding dir):
Processing acc for dbtext
cd
/home/xenofon/kamailio-cmake/src/lib/srdb1/schema &&
XML_CATALOG_FILES=/home/xenofon/kamailio-cmake/doc/stylesheets/dbschema_k/catalog.xml
/usr/bin/xsltproc --xinclude **--stringparam dir /home/xenofon/kamailio-
cmake/build-man/utils/kamctl/dbtext/kamailio** --stringparam prefix ''
--stringparam db dbtext /home/xenofon/kamailio-
cmake/doc/stylesheets/dbschema_k/xsl/dbtext.xsl kamailio-acc.xml
If you take a look at
https://github.com/kamailio/kamailio/blob/0a5db6808e859e88aae739e277d1647e0…,
you will see that if `dbtext` is included and build, it should also have the extra
kamailio path. Can you confirm this? Otherwise, I can't see why it's not getting
picked up!
As extra notes for cmake:
There are these warning that should be taken care probably:
```
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_FLAGS_RELEASE
CMAKE_Fortran_FLAGS_RELEASE
CMAKE_INSTALL_DO_STRIP
INCLUDE_INSTALL_DIR
LIB_INSTALL_DIR
LIB_SUFFIX
SHARE_INSTALL_PREFIX
SYSCONF_INSTALL_DIR
```
For install stip, I think you have to do `cmake --install build-folder --strip` or build
the `install/strip` target like `cmake --build build-folder -t install/strip`. I
couldn't;t find any documented cmake variable `CMAKE_INSTALL_DO_STRIP`. If you think
that is the correct way, it's all good!
Now, for the paths, we use this [GNUInstallDirs
module](https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html). It has the same
semantic meaning with what you are trying to do, but different naming. if the defaults are
fine, there is no need to provide them.
And lastly, `CMAKE_<LANGUAGE>_FLAGS_RELEASE`. I will see how to implement/provide
way to use it. Maybe a better way is to use with
[CMAKE_<LANGUAGE>_FLAGS_RELEASE_INIT](
https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS_CONFIG_INIT.h…).
I am not 100% sure on this but you can try and verify it?
Please keep me posted if you any more troubles!
Xenofon
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4085#issuecomment-2602085291
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4085/c2602085291(a)github.com>