Version of gcov that supports code coverage for shared library - gcov

Which version of gcov supports the code-coverage of shared libraries?

I am using gcc/gcov 4.1.2 and it works for taking code coverage of shared libraries.

Related

Complete and isolated LLVM/musl toolchain

What I'm trying to achieve is to compile an GNU independent and isolated LLVM toolchain using musl as clib.
Recently LLVM 4.0 has been released with lot's of new cool features, including production ready LLD, so also the linking step could be handled by LLVM.
More or less the stack is:
clang
llvm
lld
compiler-rt
libcxx
libcxxabi
musl
Following this, it is actually possible to do so without much patching or such (apart from compiling musl), but sadly, there is no good documentation about that.
Any suggestions?
There is an example of using Clang + Musl together to compile "Hello World" in C here: https://github.com/njlr/portable-cxx
It only requires wget, tar and make to be installed. Clang and Musl are downloaded as part of the build process.
The key is to disable the usual include paths using -nostdinc and then add the Musl ones using -isystem.
I was solving the same problem with my NGTC (Non-GNU toolchain) project. Please take a look at my build scripts and patches.
I used this toolchain to build a small Linux distro without any code from GNU project: nenuzhnix.

How to cross compile OpenCV with ffmpeg

I want to cross compile opencv with ffmpeg for arm.
I have cross compiled ffmpeg, how do I configure cmake to see the ffmpeg?
Edit: I am cross compiling for AR Drone 2.0. I use toolchain under platform/linux.
The answer to your specific problem is to use cmake-gui which provides you a visual interface to ease the process of setting up variables, like your ffmpeg package location.
However I have 2 recommendations:
Download the most updated toolchain.
DO NOT USE THIS GUIDE. Use instead the toolchain that you find in the package in sources\platforms\android\android.toolchain.cmake: read inside, you'll find the correct instructions at the beginning of the file.
Another optional recommendation: use ninja as build system, much faster.
I was successful in cross compiling OpenCV with ffmpeg for AR Drone's ARM processor by writing my own toolchain file where I explicitly set all the linker, pkg_config and compiler paths to relevant directories containing the cross-compiled stuff.
I have written a blog post detailing the entire process here:
How to Cross-Compile OpenCV with FFmpeg for AR Drone (ARM Processor).

clang-3.4 binary for mingw32

I was wondering if there is a pre-built clang-3.4 (stable-release) binary for mingw32 (www.mingw.org) for download? I do not want to use the VS version b/c I only use gcc and I don't want future compatibility issues (such as VS compiled opencv shared libraries crashing mingw/gcc compiled applications).
I checked http://llvm.org/releases/download.html. They had "Experimental Clang Binaries for Mingw32/x86" for 3.3 and 3.2, but not for the new 3.4 release.
Thanks,

Can GCov be used in windows?

Can I install gcov tool in windows?
Or can I take plug-in of this tool in eclipse in windows?
I am very new to this tool. I don't have any idea about this tool. Please help me to get the information of this tool.
please tell me the requirements to run this tool on my machine.
Where can I get more information about gcov and also please provide a link from where I can download this tool.
Does gcov tool accepts only c/c++ files or it also takes header files(*.h) as input?
Can I install gcov tool in windows?
Yes. We use gcc to build QNX projects in Windows.
Where can I get more information about gcov and also pls provide a link from where I can download this tool.
gcov is a part gcc,
Does gcov tool accepts only c/c++ files or it also takes header files(*.h) as input?
gcov accepts cpp, and h too
gcov is part of the gcc tools. If you are building and linking with gcc on Windows (which is fairly unusual), you could use it. Since it is part of the compiler, you cannot add it as a plugin to your IDE, though there are probably plugins that allow you to interact with the data that it produces.
It sounds to me like you need to figure out what you are trying to do. gperftools or valgrind might be better suited to your needs.
You can use eclipse CDT. It has built in gcov plugin.

Can OpenCV be downloaded & built for Angstrom (BeagleBoard) not as part of the toolchain?

Simple question: can I build OpenCV on Angstrom (BeagleBoard) without downloading it as part of the toolchain ? meaning by downloading the code of the Unix version and building it
(of course, the build process itself would have to be done via the toolchain, but do I have to download the OpenCV as part of the toolchain rather than later, as separated files) ?
You can download OpenCV source code and use the toolchain to compile it. You might have to do some patching yourself, but you wouldn't be first to succeed.

Resources