umbrello build

Shawn McKenney shawn.mckenney at emmion.com
Tue Sep 13 09:05:05 UTC 2016


Thanks. See below.

On Mon, Sep 12, 2016 at 11:49 PM, Ralf Habacker <ralf.habacker at freenet.de>
wrote:

> Am 13.09.2016 um 06:12 schrieb Shawn McKenney:
>
> Thanks Ralf. I am now running into the issue below.I have both of the
> libraries but they are not in the ld path (KDE neon).
>
>
> I could help throw in a FindClang.cmake file to locate clang. There are a
> few out there that I could grab. If you want me to, let me know where to
> put it. Do we want it specific to the unittests or should we call FindClang
> at a higher level so the vars are available to others? I could drop it in
> the top-level cmake directory.
>
> We need to investigate the llvm cmake details first. See below.
>
>
>
> [ 98%] Linking CXX executable test-llvm
> /usr/bin/ld: cannot find -lclangFrontend
> /usr/bin/ld: cannot find -lclangTooling
> collect2: error: ld returned 1 exit status
> unittests/CMakeFiles/test-llvm.dir/build.make:128: recipe for target
> 'unittests/test-llvm' failed
> make[2]: *** [unittests/test-llvm] Error 1
> CMakeFiles/Makefile2:820: recipe for target 'unittests/CMakeFiles/test-llvm.dir/all'
> failed
> make[1]: *** [unittests/CMakeFiles/test-llvm.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2
>
> On opensuse 13.1 where I compile umbrello I get on umbrello configure.
>
> -- Found LLVM 3.6.1
> -- Using LLVMConfig.cmake in: /usr/share/llvm/cmake
>
> and
>
> xxx at yyy:~> rpm -q -f /usr/share/llvm/cmake/
> llvm-devel-3.6.1-4.1.x86_64
> xxx at yyy:~>rpm -q llvm-devel
> ...
> usr/share/llvm/cmake/AddLLVM.cmake
> /usr/share/llvm/cmake/AddLLVMDefinitions.cmake
> /usr/share/llvm/cmake/AddOCaml.cmake
> /usr/share/llvm/cmake/AddSphinxTarget.cmake
> /usr/share/llvm/cmake/ChooseMSVCCRT.cmake
> /usr/share/llvm/cmake/CrossCompile.cmake
> /usr/share/llvm/cmake/FindOCaml.cmake
> /usr/share/llvm/cmake/FindSphinx.cmake
> /usr/share/llvm/cmake/GetSVN.cmake
> /usr/share/llvm/cmake/HandleLLVMOptions.cmake
> /usr/share/llvm/cmake/HandleLLVMStdlib.cmake
> /usr/share/llvm/cmake/LLVM-Config.cmake
> /usr/share/llvm/cmake/LLVMConfig.cmake
> /usr/share/llvm/cmake/LLVMConfigVersion.cmake
> /usr/share/llvm/cmake/LLVMExports-relwithdebinfo.cmake
> /usr/share/llvm/cmake/LLVMExports.cmake
> /usr/share/llvm/cmake/LLVMParseArguments.cmake
> /usr/share/llvm/cmake/LLVMProcessSources.cmake
> /usr/share/llvm/cmake/TableGen.cmake
>
> It looks that the llvm-devel package contains all related stuff for
> finding clang. You have the llvm-devel installed ?
>
> The question is if this is available on all supported platforms (linux,
> windows, mac) and distributions ?
> If the answer is yes, we do not need any specific stuff on umbrello side.
>

I think you are correct. I do have the dev packages, but it looks like it
is an upstream bug:

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819072

Debian/Ubuntu may still need:

find_package(Clang)

in the CMakeLists.txt. Does that work for opensuse?

---

To get master to build on KDE neon,

1) I applied the fix found here:

https://github.com/iovisor/bcc/issues/492

2) Added find_package(Clang) to unittests/CMakeLists.txt

3) Set Clang_DIR and LLVM_DIR in my cmake config. Here is my config line:

cmake -DCMAKE_INSTALL_PREFIX=${HOME}/install/umbrello -DBUILD_KF5=On
-DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/share/llvm-3.
8/cmake -DClang_DIR=/usr/lib/llvm-3.8/share/clang/cmake ../umbrello

I have centos7 and ubuntu14.04 docker images that I will use to test the
build as well. I don't have access to Mac or Windows at the moment. If we
determine it is an Ubuntu 16.04 bug, I will try to get the fix pushed
upstream.

Shawn


> BTW: Also there are cmake specific docs at  http://www.llvm.org/docs/
> CMake.html, which may give additional answers.
>
> Ralf
>
>


-- 
Shawn McKenney
President, Emmion
858 254 5468
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20160913/4df99fee/attachment.html>


More information about the umbrello-devel mailing list