Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open source file #6

Open
pennam opened this issue Jul 13, 2016 · 3 comments
Open

Cannot open source file #6

pennam opened this issue Jul 13, 2016 · 3 comments

Comments

@pennam
Copy link

pennam commented Jul 13, 2016

I'm having some troubles with relative paths. Running lcov.bat i'm getting this output

W:\geninfo.perl . --output-filename gcov/lcov.info --base-directory .Found gcov version: 4.8.1
Scanning . for .gcda files ...
Found 8 data files in .
Processing file_A.gcda
Processing file_B.gcda
Processing file_C.gcda
Processing file_D.gcda
Processing test_file.gcda
Cannot open source file ../../test_file.c
Processing test_file_runner.gcda
Processing file_E.gcda
Cannot open source file ../../file_E.c
Finished .info-file creation
Fixing back slashes ...
Generating html ...
The syntax of the command is incorrect.

is it possible to change the base directory of the source files leaving as it is the directory of gcda files?

pennam

@pennam
Copy link
Author

pennam commented Jul 14, 2016

Tested with a simple project with *.c *.o *.gcna *.gcno files all in the same directory and it works. I need some help to understand how to configure the project paths properly

Thanks
pennam

@pennam
Copy link
Author

pennam commented Jul 14, 2016

Another update if i change lcov-bat command from

%perl% %idir%lcov.perl -b . -d . -c -o gcov/lcov.info

to

%perl% %idir%lcov.perl -b . -d w:\custom\path\ -c -o gcov/lcov.info

i'm getting the following output:

Creating gcov\lcov.info ...
Capturing coverage data from w:\custom\path\
W:\lcov\path/geninfo.perl w:\custom\path\ --output-filename gcov\lcov.info --base-directory .
Found gcov version: 4.8.1
geninfo.perl: ERROR: cannot read w:\custom\path\ !

any suggestion?

@valbok
Copy link
Owner

valbok commented Jul 15, 2016

HI pennam,
about paths, usually lcov.bat is used/executed on root folder of the sources and all files should appear there.

As I understood, you are experiencing problems when you run lcov.bat from root?
Could you please show how you run (if any difference to prev comments)?
Also unfortunately not able to check due to no Windows installations I have today.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants