How to install lcov tool in Windows machine - code-coverage

How to install lcov tool in Windows machine so that I can use the genhtml command to generate html files for my code coverage output files?
I generated code coverage for my flutter app. The file type is lcov.info. I need to make this file readable like html files.
Please anyone tell me the proper steps to install lcov in Windows machine.i have tried many ways to install lcov but nothing works.

Related

Use Android Studio 2.2 CMake support with command line SDK

We recently decided to use Android Studio's CMake support as a part of our development, and as far as compiling and building is concerned everything works fine for the development team.
As a part of our validation efforts we are also running Jenkins for continuous testing, and that's where the problems are starting. The machine running Jenkins does not have Android Studio installed, nor it has an UI. As such it only possesses the android NDK and SDK. However, when running tests, the following error occurs :
Failed to find CMake.
Install from Android Studio under File/Settings/Appearance & Behavior/System Settings/Android SDK/SDK Tools/CMake.
Expected CMake executable at /home/vagrant/android-sdk-linux/cmake/bin/cmake.
The problem now is that there is no way to install CMake like suggested ! The machine does not have any UI to run Android Studio, and the command line tools feature no option to install CMake. And creating sym-links isn't the solution either, as CMake isn't the only thing it's looking for.
How am I supposed to make my project work on the machine ? CMake is running perfectly (as it was already used as part of the tests) so the problem is only coming from Gradle looking only in the SDK directory for it...
The problem now is that there is no way to install CMake like suggested
Actually it is not! Instead of using android list sdk command for installing sdk packages you should use new command line tool: sdk-manager.
Ndk, cmake are available for installing through this new android sdk tool.
you need to install manually cmake on your system unix:
go to your android sdk directory ${ANDROID_HOME} and create new cmake folder with:
wget "https://dl.google.com/android/repository/cmake-3.6.3155560-linux-x86_64.zip"
unzip -q cmake-3.6.3155560-linux-x86_64.zip -d ${ANDROID_HOME}/cmake
add to PATH ENV ${PATH}:${ANDROID_HOME}/cmake/bin

How to Decompiling Apk files that Generated By Android Studio

I have lost my android studio project completely and there is no way to get it back.
Now, I'm trying to decompile my apk file to access my java classes and xml files.
using dex2jar and jd-gui, I get my java classes BUT non of programs that I tested.So far, I can't decompile my xml files!
apktool show me this error:
Exception in thread "main" brut.androlib.err.UndefinedResObject: could not decode arsc file
do i have to create all of my xml again? or there any way to decompile apks that generated by android studio?
Edit: "Apk Studio" Give me same error with apktool for decompiling apk file.
To decompile the XML files you can use the following tools:
JadX - https://github.com/skylot/jadx
Apktool - https://github.com/iBotPeaches/Apktool
Remember the apktool which you are using is probably a very old version. Download the latest version of apktool.jar from https://github.com/iBotPeaches/Apktool/releases/download/2.1.1/apktool_2.1.1.jar
Below are the two process through which you can get the xml files.
Apktool Method:
Download the latest apktool jar from https://github.com/iBotPeaches/Apktool/releases/download/2.1.1/apktool_2.1.1.jar
Run it using java -jar apktool.jar d <apkfile.apk> without the angular brackets and substituting apkfile.apk with the actual path to the apk file
Jadx method:
Download the latest release of jadx from https://github.com/skylot/jadx/releases
Unzip the file and then goto bin/ folder
Windows user can double click the jadx-gui.bat file
Linux/Mac users can run the shell script ./jadx-gui
This will open jadx gui through which you can open the apk file.
Reference: Jadx open dialogue

Delphi, Compile and install component in a bpg via command line

I have a bpg, and within this bpg have a list of 8 dpk's / bpl, I need to build all these dpk's via command line, and install these dpks too .. How can I do this via the command line?
The idea is to make a installer like jedi components, I've been analyzing it but did not understand the operation.

Building Opencv 2.4.9 with VS 2012, install generates incorrect header files

I'm trying to build openCV version 2.4.9 from the git repository. I've followed the instructions to run cmake-gui to build a visual studio solution. I've then built the VS studio solution in both relase and debug mode and then run the install build.
The install build puts all of the compiled libs into the install folder along with the include folder.
The problem is the include folder is completely wrong and missing a number of files. When I add the include folder path to a HelloWorld project it can't find any of the opencv methods classes etc.
Its as though the cmake build process has been corrupted in some way and doesn't properly prepare the include folder with the required header files.
I've tried this for both VS 2010 and VS 2012 cmake configurations and got the same result. Everything compiles fine, the header files in the install directory however aren't right.
Copying header files from a pre-built windows installation sort of work, and i'm confused as to why the build process doesn't result in a similar folder structure of header files.
This is really a bug and it has been reported twice. The description of the first link provides the fix:
The regex on this line is no longer corect:
https://github.com/Itseez/opencv/blob/master/cmake/OpenCVModule.cmake#L520
it should be replaced by: /[/]+.h(..)?$
I'll just update this post to keep it up-to-date with the latest git version of opencv.
On current release the bug is still there and now located # line 538 of cmake/OpenCVModule.cmake. The proposed solution is to replace the actual line 538:
if(hdr2 MATCHES "^(opencv2/.*)[^/]+.h(..)?$" AND NOT hdr2 MATCHES "opencv2/${the_module}/private.*")
by
if(NOT hdr2 MATCHES "opencv2/${the_module}/private.*" AND hdr2 MATCHES "^(opencv2/?.*)/[^/]+.h(..)?$" )
Thanks a lot to the author of this patch that saved me a headhake...

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.

Resources