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: *** [unittests/test-llvm] Error 1
> CMakeFiles/Makefile2:820: recipe for target
> 'unittests/CMakeFiles/test-llvm.dir/all' failed
> make: *** [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
xxx at yyy:~> rpm -q -f /usr/share/llvm/cmake/
xxx at yyy:~>rpm -q llvm-devel
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the umbrello-devel