Question

I'm trying to run genhtml using perl.exe from Cygwin in Windows.

I have installed cygwin and placed genhtml in the bin directory of cygwin. I went to that directory and used the command line in Windows:

perl genhtml abc.dat

where abc.dat is the name of the lcov file for genhtml.

However I got an error saying:

Reading data file abc.dat
genhtml: ERROR: cannot read file abc.dat!

I tried even with a blank file, but the same error returned. How do I get around this problem?

Thanks.

Was it helpful?

Solution 2

It turned out that I do need to go to cygwin and run chmod 777 in the locationm of the .dat file in order to be able to run it.

OTHER TIPS

Is abc.dat in the cygwin/bin directory? If not genhtml won't find it unless you specify the full path.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top