Building Plasma from source: networkmanager-qt: Could NOT find libnm-core, check FindPkgConfig output above!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list

I'm currently building Plasma directly from KDE sources because I need to debug a multiscreen issue ...

After working around the build failures for the kf5_kservice and kf5_solid packages (caused by flex-2.6.0-2.fc24.x86_64, see https://bugzilla.redhat.com/show_bug.cgi?id=1364943), the next challenge is a build error for networkmanager-qt:

$ kdesrc-build --build-only --include-dependencies networkmanager-qt

gives the following error in cmake.log:

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for one of the modules 'NetworkManager'
-- Checking for one of the modules 'libnm'
CMake Error at cmake/FindNetworkManager.cmake:52 (MESSAGE):
  Could NOT find libnm-core, check FindPkgConfig output above!

I then checked
  kde/src/networkmanager-qt/cmake/FindNetworkManager.cmake,

which apparently falls into the outer ELSE clause shown below:
        ...
            # Since NetworkManager 1.0.0 we need to find different libraries
            IF (NetworkManager_FIND_VERSION AND ("${NETWORKMANAGER_VERSION}" VERSION_LESS "1.0.0"))
                PKG_SEARCH_MODULE( NM-UTIL libnm-util )
                PKG_SEARCH_MODULE( NM-GLIB libnm-glib )
                IF (NM-UTIL_FOUND AND NM-GLIB_FOUND)
                    IF (NOT NetworkManager_FIND_QUIETLY)
                        MESSAGE(STATUS "Found libnm-util: ${NM-UTIL_LIBRARY_DIRS}")
                        MESSAGE(STATUS "Found libnm-glib: ${NM-GLIB_LIBRARY_DIRS}")
                    ENDIF ()
                ELSE ()
                    MESSAGE(FATAL_ERROR "Could NOT find libnm-util or libnm-glib, check FindPkgConfig output above!")
                ENDIF ()
            ELSE ()
                PKG_SEARCH_MODULE( NM-CORE libnm )
                IF (NM-CORE_FOUND)
                    IF (NOT NetworkManager_FIND_QUIETLY)
                        MESSAGE(STATUS "Found libnm-core: ${NM-CORE_LIBRARY_DIRS}")
                    ENDIF ()
                ELSE ()
                    MESSAGE(FATAL_ERROR "Could NOT find libnm-core, check FindPkgConfig output above!")
                ENDIF ()
            ENDIF ()
        ....

Here it does
                PKG_SEARCH_MODULE( NM-CORE libnm )

but fails to find libnm. Fedora 24 does not have a libnm package, but only libnm-qt:

  # rpm -q libnm-qt                                                                                                        
 libnm-qt-0.9.8.3-4.fc23.x86_64                                                                                                            
 # rpm -q libnm-qt-devel                                                                                                  
 libnm-qt-devel-0.9.8.3-4.fc23.x86_64


According to Comment 2 in https://bugzilla.redhat.com/show_bug.cgi?id=970035
the libnm-qt package once had a similar problem
  "Could NOT find NetworkManager, libnm-util or libnm-glib, check FindPkgConfig output above!"
which was supposedly fixed in 2013 ...

When I replace
                PKG_SEARCH_MODULE( NM-CORE libnm )
with
                PKG_SEARCH_MODULE( NM-CORE libnm-qt )

I still get "Could NOT find libnm-core, check FindPkgConfig output above!"

Any idea what's wrong here?
B.t.w., I have no idea why dnf installed an fc23 version for libnm-qt-devel ...

Thanks,

Fredy Neeser
IBM Zurich Research Laboratory


_______________________________________________
kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux