--nextPart35502966.CRzZeqNJWi Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Dienstag, 8. Mai 2018 22:40:39 CEST gregor.mi.sw wrote: > Hello, > > I have a question regarding kdesrc-build and CMake. > > I setup the build environment variables and ran kdesrc-build and got a > compiler error kinfocenter. > > I investigated > /home/gregor/kde/src/build/kde/workspace/kinfocenter/CMakeCache.txt and > found the following lines > > //The directory containing a CMake configuration file for KF5Service. > KF5Service_DIR:PATH=/usr/lib64/cmake/KF5Service > > //The directory containing a CMake configuration file for KF5Solid. > KF5Solid_DIR:PATH=/usr/lib64/cmake/KF5Solid > > //The directory containing a CMake configuration file for KF5Wayland. > KF5Wayland_DIR:PATH=/usr/lib64/cmake/KF5Wayland > > The directories of the needed KF5 frameworks point to the system wide > installed ones. > > I removed the system-wide devel package for solid (because it caused the > compiler error) and ran kdesrc-build again: > > //The directory containing a CMake configuration file for KF5Service. > KF5Service_DIR:PATH=/usr/lib64/cmake/KF5Service > > //The directory containing a CMake configuration file for KF5Solid. > KF5Solid_DIR:PATH=/home/gregor/kde/usr/lib64/cmake/KF5Solid > > //The directory containing a CMake configuration file for KF5Wayland. > KF5Wayland_DIR:PATH=/usr/lib64/cmake/KF5Wayland > > Now it shows the correct (local) path for solid (but not the other ones). Is > there an environment variable or something I have to set to tell Cmake to > always look for local modules first? Try CMAKE_PREFIX_PATH. See e.g. this old blog post on the matter: https://blogs.kde.org/2008/12/12/how-get-cmake-find-what-you-want-it Cheers -- Milian Wolff mail@milianw.de http://milianw.de --nextPart35502966.CRzZeqNJWi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAlryE4YACgkQ8zYW/HGd OX8TBw//a0Vucqw0JqQ3vVuwGmsOdq8fmZEFL+CTEyoG4F2PNdTDHNbLf5VemlRj XM60HIaqI0gdMET5nw1RQUjCsHfuIfgo0fFOEaWMLOC5ZJxO5BGmfRCOtjV3o+y5 zS56tCROWq80iye4AhsQy/Cc+jzBuqkX+jTUYftZbqD9we8XClq9WYFz0Q+VW68J XNtlRKPUJqpc6A5STbw4k8BqHQL0pZZEL4bhjdT4oEadXazALts3AjvtCBsMA/th 6oK/SwRiS14CRWzI7OjWI0nOCU1hzTqXgCTuuYIfqNTxdr+BF6hHP2vs13jnVlB1 n2YtwlulLAa+LlN92275sJVAdX7dCiLaqtAXGkgEnsEa40NLSWhGzGs/G/pycZwX 8Y8ieh90LB5xoSw2nEgzj+mx3I/O5G0xWlIXbrtKerWYzQSIeecyX8Goxx9poM5q QoHfBOkDqdAp4ehKheLDSWNe7nVcu2J2BfbPB9gqGkxkUB+i9qsd9IcgYtUjOMUj O3Gth9/pHF4Z6QlsL9Dr2aORCFGY59iE+3B4/9JvlTl63ZPllVfX0JcTHvWld7tG KhM0k0y/m47pc5WSdabAMoiRtEOhFYQu/19x6zGUmYZPwsuEjBPhnPK8tL/nbMIj 2JAYInyyfBGIeMwJPdHtb346KFQhQQ/cJSEsSMhIWbsWnUdC+nE= =GhoF -----END PGP SIGNATURE----- --nextPart35502966.CRzZeqNJWi--