Error buildin KDE

Allen Winter winter at kde.org
Sat Mar 19 13:57:53 GMT 2016


Same here.
The relevant problem is shown in the cmake.log:

CMake Warning (dev) at src/lib/CMakeLists.txt:99 (add_library):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "KF5CoreAddons" links to target "Threads::Threads" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?



On Friday, March 18, 2016 10:47:14 PM rafranco.2014 at yahoo.it wrote:
> Hi guys, I' m new to this mailing list and to the KDE community.
> I' m a newby in KDE development but I have a not so bad knowledge of Linux.
> I don't know if this is the right place to post these kind of requests and if it is not the case I'd ask you to point me where can I post it.
> I was trying to build kde following instructions at
> 
> https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source#Run_kdesrc-build
> 
> I executed exactly all steps reported there and installed all required packages from official distro repository except for cmake 2.8.12 that I found at
> 
> https://kojipkgs.fedoraproject.org/packages/cmake/2.8.12/3.fc21/x86_64/cmake-2.8.12-3.fc21.x86_64.rpm
> 
> and installed with yum localinstall. My host is a CentOS 7 x64 VMware virtual machine.
> 
> First few modules are built correctly without any problem using kdesrc-build but build process stops on kcoreaddons with the following error:
> 
> 
> Building CXX object src/lib/CMakeFiles/KF5CoreAddons.dir/KF5CoreAddons_automoc.cpp.o
> Linking CXX shared library libKF5CoreAddons.so
> /usr/bin/ld: cannot find -lThreads::Threads
> collect2: error: ld returned 1 exit status
> gmake[2]: *** [src/lib/libKF5CoreAddons.so.5.21.0] Errore 1
> gmake[1]: *** [src/lib/CMakeFiles/KF5CoreAddons.dir/all] Errore 2
> gmake: *** [all] Errore 2
> 
> 
> while the following is the cmake log I find
> 
> 
> # kdesrc-build running: 'cmake' '/home/lfranco/devel/kde/src/frameworks/kcoreaddons' '-DCMAKE_BUILD_TYPE:STRING=debug' '-DKDE4_BUILD_TESTS=true' '-DBUILD_TESTING=TRUE' '-DCMAKE_BUILD_TYPE:STRING=debug' '-DCMAKE_CXX_FLAGS:STRING=-std=c++11 -pipe -DQT_STRICT_ITERATORS -DQURL_NO_CAST_FROM_STRING -DQT_NO_HTTP -DQT_NO_FTP -Wformat -Werror=format-security -Werror=return-type -Wno-variadic-macros -Wlogical-op -Wmissing-include-dirs ' '-DCMAKE_INSTALL_PREFIX=/home/lfranco/devel/kde/usr'
> # from directory: /home/lfranco/devel/kde/build/frameworks/kcoreaddons
> -- The C compiler identification is GNU 4.8.5
> -- The CXX compiler identification is GNU 4.8.5
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> 





More information about the kde-core-devel mailing list