cmake: how to set libdir=/usr/local/lib64?
hello, I'm trying to compile a libvibble library:
https://packages.debian.org/ru/sid/libwibble-dev on my Slackware, it uses cmake and when building the package uses usr/local/lib/pkgconfig/, ignoring the system settings $ PKG_CONFIG_PATH . How can I get it to use /usr/local/lib64? The LIB_SUFFIX configuration is not supported by this project. |
|
from the root of the tree, mkdir build && cd build && ccmake ..
Pressing c to configure, it displays: Code:
CMAKE_BACKWARDS_COMPATIBILITY *2.4 |
Hmm, i do not see any effect in two cases.
You can try to change my slackbuild, maybe I made a mistake somewhere: https://paste.ee/p/G0AFV |
1 Attachment(s)
I just built and installed a package using your SalckBuild with no issue and ran the binary at random against a header with no issue. So, what's wrong? I attach the content of the package.
Code:
didier[/tmp]$ wibble-test-genrunner header module_utils.h |
Quote:
|
Does that really matter? The thing works.
But you can just move these files after having in the SlackBuild after make install if you want. |
Quote:
Code:
usr/lib/pkgconfig/libwibble.pc |
This is necessary, otherwise other programs that depend on the libwibble library will not work because of the incorrect libdir.
Could you make changes to the script? I also think that libwibble.pc also needs to fix libdir |
Quote:
|
Quote:
|
you would need to fix the cmake
if this is the source of this lib, than I guess here for the generated pkg-config file https://github.com/metux/libwibble/b...eLists.txt#L68 and here https://github.com/metux/libwibble/b...eLists.txt#L76 for the install location what does this lib actually do? |
Hello,
The patch below should do the trick: Code:
--- wibble/CMakeLists.txt.orig 2018-08-06 10:04:02.959164066 +0200 Sample usage : Code:
$ cd libwibble-1.1 SeB |
phenixia2003, thank you very much, your patch works fine!
|
All times are GMT -5. The time now is 05:01 AM. |