We've had problems regarding missing include files in lcov. There is a
fairly simple work around (changing "die" statements to "print"
statements); however the files are still not included. We are working with
the Wine project, which has a relatively complicated directory structure
the include path for every many compiled files involves at least 2 or 3
For instance, at the following URL is an example of coverage of Windows
Notepad application when ran under wine:
The first four directories (/home/aarvey/include,
/home/aarvey/include/wine, /home/aarvey/misc /home/aarvey/windows) do not
exist. The source files exist, but in the Wine source directory. Wine was
downloaded into /home/aarvey/wine/ and all source resided in this
directory. Imaginary directories show up in several other places as well.
As the source files do exist, there is real coverage information for them,
but they cannot be included in the report since the file is not in the
As the include files were not our top priority, we put together a kludgy
patch to take care of the problem. This patch just disables dieing when a
file isn't found and replaces it with a print statement. We made patches
for geninfo (geninfo.diff) and genhtml (genhtml.diff), which can be found
It seems like this is a "include" statement problem The question is: how
can we get lcov/gcov to figure out the proper include structure? If anyone
has had this problem before and/or knows how to fix it, please let us
Get latest updates about Open Source Projects, Conferences and News.