[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] liblinphone and jsoncpp
From: |
Giacomo Comes |
Subject: |
[Linphone-developers] liblinphone and jsoncpp |
Date: |
Sat, 18 Sep 2021 18:02:01 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hi,
I have build on linux liblinphone 5.x and I have found a couple
of issue with jsoncpp during the build process.
1) liblinphone try to link against libjsoncpp_object but on the linux
desktop Pc (opensuse at least) the library name is libjsoncpp.
2) In order to find jsoncpp the file CMakeLists.txt contains:
find_package(jsoncpp REQUIRED)
which assumes the existence of the file jsoncppConfig.cmake.
Such file was available in older versions of jsoncpp (1.8.x) but currently
(1.9.x)
it is not provided anymore by the upstream project.
Instead pkgconfig/jsoncpp.pc is available.
This means that:
find_package(jsoncpp REQUIRED)
should be replaced with something like:
find_package(PkgConfig REQUIRED)
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
Regards.
Giacomo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] liblinphone and jsoncpp,
Giacomo Comes <=