Menu

How to create a lxr project for C & C++ source indexing

Gaviraju
2020-12-29
2021-01-25
  • Gaviraju

    Gaviraju - 2020-12-29

    Hi,

    I am new to the LXR project so can I know any video tutorials or documentation for the C & C++ source code project creation

    Thanks
    Gaviraju

     
  • Andre-Littoz

    Andre-Littoz - 2020-12-30

    There are two main sources of information:

    The first one contains pages about installation and the third step is called Configuration. This is where you customise LXR after having installed it to apply it against your source code tree. This is very concise information.

    Extensive information is given in the User's Manual.

    Unfortunately, it is no longer possible to play a demo directly on SourceForge.

     
  • Gaviraju

    Gaviraju - 2021-01-07

    Hi,

    According to the user-guide I followed the instructions but unfortunately I'm not able to view the source file in the browser.

    Can you please check my configuration?
    I'm using Ubuntu 18.04

    Thanks
    Gaviraju

     
  • Gaviraju

    Gaviraju - 2021-01-07

    I'm able to open the link http://localhost/lxr/source & other link is not working

     
  • Gaviraju

    Gaviraju - 2021-01-07

    Hi,

    I'm able to configure successfully & after installation I run the below command to the start the apche2 web service

    sudo systemctl start apache2.services

    Thanks
    Gaviraju

     
  • Andre-Littoz

    Andre-Littoz - 2021-01-07

    I had a look at your lxr.conf.

    You probably did not understand how to store your source tree and designate it. Here is how it should be organised:

    /-- home -- / -- ubuntu -- / -- tree -- / -- v1 --
                |              |            / -- v2 --
                |              / -- other --
                / -- user --
    

    Then parameter sourceroot contains /home/ubuntu/tree without any version subdirectory. The Version variable designates all versions, including the first one. Consequently, it should list v1 and v2, not only v2 as you did.

    Consider reconfiguring your tree. This is very fast with the configurator (less than 1 minute with your simple case). Don't forget to rerun genxref once you've done it because the generated links depend on the tree description.

     

    Last edit: Andre-Littoz 2021-01-07
    • Gaviraju

      Gaviraju - 2021-01-07

      Thanks, I'll check it out & I will let you know if I have any questions.

      Thanks
      Gaviraju

      On Thu, 7 Jan, 2021, 2:59 PM Andre-Littoz, ajlittoz@users.sourceforge.net
      wrote:

      I had a look at your lxr.conf.

      You probably did not understand how to store your source tree and
      designate it. Here is how it should be organised:

      /-- home -- / -- ubuntu -- / -- tree -- / -- v1 --
      | | / -- v2 --
      | | -- other --
      | -- user --

      Then parameter sourceroot contains /home/ubuntu/tree without any version
      subdirectory. The Version variable designates all versions, including
      the first one. Consequently, it should list v1 and v2, not only v2 as
      you did.

      Consider reconfiguring your tree. This is very fast with the configurator
      (less than 1 minute with your simple case). Don't forget to rerun
      genxref once you've done it because the generated links depend on the
      tree description.


      How to create a lxr project for C & C++ source indexing
      https://sourceforge.net/p/lxr/discussion/130435/thread/a77291af5c/?limit=25#1bf0


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/lxr/discussion/130435/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Gaviraju

    Gaviraju - 2021-01-20

    Hi,

    I'm getting an error such as "the directory /$somepath does not exist or is hidden by exclusive rule"

    But all the files present in the directory & it's not displaying in browser.
    I'm using ubuntu 18.04, apache server.

    Thanks
    Gaviraju

     
  • Gaviraju

    Gaviraju - 2021-01-25

    Hi,

    Any update?

     
  • Andre-Littoz

    Andre-Littoz - 2021-01-25

    Unable to tell. Does the error really contains $somepath ? With an explicit $ sign? In which case, this means template expansion went wrong, but there is no "somepath" variable in any template.

    Usually, this error is a consequence of a faulty lxr.conf configuration file or bad access rights on the source tree (a priori, I wave out this latter case).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.