umbrello build

Ralf Habacker ralf.habacker at freenet.de
Tue Sep 13 06:49:55 UTC 2016


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.

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

Ralf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20160913/899260ad/attachment.html>


More information about the umbrello-devel mailing list