Bug 444820

Summary: CMake build of master branch fails on Ubuntu 18.04
Product: [Applications] umbrello Reporter: Robert Hairgrove <code>
Component: installer/packagesAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: critical    
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: CMakeOutput.log

Description Robert Hairgrove 2021-11-02 11:34:57 UTC
Created attachment 143129 [details]
CMakeOutput.log

SUMMARY
CMake build of master branch fails on Ubuntu 18.04. Umbrello ChangeLog version is version 2.14.0 (4.14.0).

STEPS TO REPRODUCE
1. Downloaded code as .zip package from https://invent.kde.org/sdk/umbrello
2. Followed the instructions in the file INSTALL
3. Run "cmake -DCMAKE_INSTALL_PREFIX=$HOME/umbrello -DCMAKE_BUILD_TYPE=Debug  ../"

OBSERVED RESULT
```
CMake Error at /usr/lib/llvm-10/lib/cmake/clang/ClangTargets.cmake:636 (message):
  The imported target "clangBasic" references the file

     "/usr/lib/llvm-10/lib/libclangBasic.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/llvm-10/lib/cmake/clang/ClangTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/clang-10/ClangConfig.cmake:19 (include)
  unittests/CMakeLists.txt:161 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/bob/umbrello-master/build/CMakeFiles/CMakeOutput.log".
```
CMakeOutput.log is attached.

EXPECTED RESULT
Successful build

SOFTWARE/OS VERSIONS
Ubuntu 18.04.5 LTS
Comment 1 Robert Hairgrove 2021-11-02 15:38:30 UTC
I needed to install libclang-10-dev, now it is compiling.

For some reason, this was not required a few months ago, since I had libclang-cpp10-dev (et al.) installed, and was able to build Umbrello with no problem... is this documented anywhere?