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/0a5db6808e859e88aae739e277d1647e05a4f4c6/utils/kamctl/CMakeLists.txt#L277-L278, 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. 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__FLAGS_RELEASE_INIT. 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, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.