KDAB / codebrowser

Woboq CodeBrowser
http://woboq.com/codebrowser.html
Other
1.1k stars 161 forks source link

Cannot work properly with Glibc source code #70

Closed afang5472 closed 6 years ago

afang5472 commented 6 years ago

I tried to achieve similiar effects like your official website showing.. The GNU C Library Source Code but the Source Code was configured to build with make instead of cmake.

I tried bear make to generate a compile_commands.json as well ,
but after the generation of html, I cannot view my source code properly..
All is just a simple index.html page generated by indexgenerator.
So.. What do I need to do to put my Glibc Source code into the Browser?
Oh, I tried to manually visit the generated html , it seems that it works just fun.
But I just wonder why the index.html cannot properly indicate the positions..
Just like this pic below:
_20180728204141

I used the following command:
codebrowser_generator -b /var/www/html/CodeBrow/glibc-2.23/build -a -o ../srcs -p glibc:/var/www/html/CodeBrow/glibc-2.23:2.23

codebrowser_indexgenerator /var/www/html/CodeBrow/glibc-2.23 && cp ./index.html ./srcs

and visit the /srcs/index.html, got the above result..

afang5472 commented 6 years ago

Ah.. Sorry..
I think I mistaken the usage of codebrowser indexgenerator...
Now Everything seems fine.
Sorry for the disrturbing.

guruz commented 6 years ago

Great to hear it cleared up :)