Sourcetrail

2025-12-10 0 725

Sourcetrail

Important Note: This project was archived by the original autors and maintainers of Sourcetrail by the end of 2021. If you want to know more about this decision, read more on our blog.

Sourcetrail is a free and open-source cross-platform source explorer that helps you get productive on unfamiliar source code.

Windows:

Linux:

Links

  • Download
  • Quick Start Guide
  • Documentation
  • Changelog

Sourcetrail is:

  • free
  • working offline
  • operating on Windows, macOS and Linux
  • supporting C, C++, Java and Python
  • offering an SDK (SourcetrailDB) to write custom language extensions

Sourcetrail on Patreon

The open-source development and regular software releases are made possible entirely by the support of these awesome patrons!

Using Sourcetrail

To setup Sourcetrail on your machine, you can either download the respective build for your operating system from our list of Releases and install it on your machine, or use one of the following package managers:

  • Use the Chocolatey package with choco install sourcetrail

After your installation is complete, follow our Quick Start Guide to get to know Sourcetrail.

How to Report Issues

You can post all your feature requests and bug reports on our issue tracker.

Reporting

Use the following template:

  • platform version:
  • Sourcetrail version:
  • description of the problem:
  • steps to reproduce the problem:

Supporting

If you want to support a certain feature request or you have the same bug that another user already reported, please let us know:

  • post a comment with \”+1\” to the issue
  • or send an email to support@sourcetrail.com with the issue ID

How to Contribute

  • Please read and follow the steps in CONTRIBUTING.md file.
  • You may want to look out for issues labeled good first issue to find some initial tasks to tackle.
  • If you are looking for more information about Sourcetrail software development, please refer to our wiki.

How to Build

Building Sourcetrail requires several dependencies to be in place on your machine. However, our CMake based setup allows to disable indexing support for specific languages which reduces the number of dependencies to a minimum.

Building the Base Application

Required Tools

  • CMake v3.12 (required for Windows, Linux and MacOS)

    • Reason: Used to generate a build configuration for your build system
    • Download: https://c*ma*ke.o*rg/download
  • Git (required for Windows, Linux and MacOS)

    • Reason: Used for version control and to automatically generate the Sourcetrail version number from commits and tags
    • Download: https://git*-s**cm.com/download
    • Remarks: Make sure git is added to your PATH environment variable before running CMake
  • Visual Studio (required for Windows)

    • Reason: Used for building Sourcetrail
    • Download: https://visualstudio.mic**ro*soft.com/downloads/
  • ccache (optional for Linux and MacOS)

    • Reason: Used to speed up rebuilds if found in PATH
    • Download: https://cc*a*che.d*ev/download.html

Required dependencies

  • Boost 1.67

    • Reason: Used for file system access and interprocess communication
    • Prebuilt Download for Windows: https://sour*c*ef*orge.net/projects/boost/files/boost-binaries/
    • Building for Unix:

      $ ./bootstrap.sh --with-libraries=filesystem,program_options,system,date_time
      $ ./b2 --link=static --variant=release --threading=multi --runtime-link=static --cxxflags=-fPIC
      
  • Qt 5.12.3

    • Reason: Used for rendering the GUI and for starting additional (indexer) processes.
    • Prebuilt Download: http://download.**q*t.io/official_releases/qt/

Building

On Windows

  • To set up your build environment run:

    $ git clone https://githu**b.c*om/CoatiSoftware/Sourcetrail.git
    $ cd Sourcetrail
    $ mkdir -p build/win64
    $ cd build/win64
    $ cmake -G \"Visual Studio 15 2017 Win64\" -DBOOST_ROOT=<path/to/boost_1_67_0> -DQt5_DIR=<path/to/Qt/version/platform/compiler/lib/cmake/Qt5> ../..
    

    Hint: If you are using the CMake GUI, we recommend that you activate advanced mode. Also you may be required to add some of the defines via the \”Add Entry\” button.

  • After generating the build configuration, just open the Sourcetrail.sln file that was generated by CMake and build the Sourcetrail project.

On Unix

  • To set up your build environment run:
    $ cd Sourcetrail
    $ mkdir -p build/Release
    $ cd build/Release
    $ cmake -DCMAKE_BUILD_TYPE=\"Release\" -DBOOST_ROOT=<path/to/boost_1_67_0> -DQt5_DIR=<path/to/Qt/version/platform/compiler/lib/cmake/Qt5> ../..
    
  • Now start the build with:
    $ make Sourcetrail
    

Running

  • Run Sourcetrail from within the build directory. During execution Sourcetrail needs resources from bin/app/data and bin/app/user. CMake creates symlinks within the build directory that make these directories accessible.

Enable C/C++ Language Support

Required dependencies

  • LLVM/Clang 11.0.0

    • Reason: Used for running the preprocessor on the indexed source code, building and traversing an Abstract Syntax Tree and generating error messages.
    • Building: Make sure to check out the correct tag: git checkout llvmorg-11.0.0
    • Building for Windows: Follow these steps to build the project. Run the cmake command exactly as described.
    • Building for Unix: Follow this installation guide to build the project. Make sure to build with -DLLVM_ENABLE_RTTI=ON.

Building

  • Run CMake with these additional options:
    -DClang_DIR=<path/to/llvm_build>/lib/cmake/clang
    -DBUILD_CXX_LANGUAGE_PACKAGE=ON
    
  • Build Sourcetrail as described above.

Enable Java Language Support

Required dependencies

  • JDK 1.8

    • Reason: Used to build the Java indexer and make it callable from the C++ code via JNI.
    • Remarks: Make sure that <jdk_root>/bin is available in your PATH environment variable and that the JAVA_HOME environment variable is set:

      JAVA_HOME=<path/to/Java>/jdk1.x.x_xxx
      
  • Maven

    • REASON: Used within Sourcetrail\’s automated tests.
    • Remarks: Make sure .../apache-maven-x.x.x/bin is available in your PATH environment variable and that both M2_HOME and MAVEN_HOME environment variables are set:

      M2_HOME=.../apache-maven-x.x.x
      MAVEN_HOME=.../apache-maven-x.x.x
      

Building

  • Run CMake with these additional options:
    -DBUILD_JAVA_LANGUAGE_PACKAGE=ON
    
  • Build Sourcetrail as described above.

Enable Python Language Support

Required Tools

  • 7z (required for Windows)

    • REASON: Used to extract the prebuilt SourcetrailPythonIndexer which is downloaded automatically during build execution.

Building

  • Run CMake with these additional options:
    -DBUILD_PYTHON_LANGUAGE_PACKAGE=ON
    
  • Build Sourcetrail as described above.

Creating the deployment Package

Windows

Required Tools

  • Visual Studio (required for Windows)

    • Reason: Used for building the Sourcetrail Windows installer.
    • Remarks: Make sure to install the .Net desktop development workload.
    • Download: https://visualstudio.mic**ro*soft.com/downloads/
  • Wix 3.11

    • Reason: Used to build the sourcetrail.msi Windows installer.
    • Remarks: Make sure to add <path/to>/WiX Toolset v3.11/bin to your PATH environment variable.
    • Download: https://wi**xtools*et.org/releases/
  • Wix extension for Visual Studio

    • Reason: Used to run Wix from the Visual Studio build environment.
    • Download: https://marketplace.visualst*u*di*o.com/items?itemName=WixToolset.WixToolsetVisualStudio2017Extension
  • JRE

    • Reason: Used for indexing the java sample project that ships with the package.
  • WinRAR

    • Reason: Used for creating the final zip files for the installer and the portable package.
    • Remarks: Make sure to add <path/to>/WinRAR to your PATH environment variable.

Building

  • Run ./script/deploy_windows.sh from your Developer Command Prompt for Visual Studio. The script which will generate a 64bit build and packages it into a portable .zip file and a Wix-based Windows installer, each.

macOS

After building, run the bundle_install.sh script within the build directory which will create a Sourcetrail.app bundle and generate a Sourcetrail_<version>.dmg container.

Linux

Run ./setup/Linux/createPackages.sh from the main directory, which creates both a .tar.gz and a .AppImage package in the main directory. Packaging depends on linuxdeployqt.

How to Run the Tests

The automated test suite of Sourcetrail is powered by Catch2. To run the tests, simply execute the Sourcetrail_test binary. Before executing, please make sure to set the working directory to ./bin/test.

License

Sourcetrail is licensed under the GNU General Public License Version 3.

Trademark

The \”Sourcetrail\” name is a trademark owned by Coati Software and is not included within the assets licensed under the GNU GPLv3.

下载源码

通过命令行克隆项目:

git clone https://github.com/CoatiSoftware/Sourcetrail.git

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

申明:本文由第三方发布,内容仅代表作者观点,与本网站无关。对本文以及其中全部或者部分内容的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。本网发布或转载文章出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,也不代表本网对其真实性负责。

左子网 编程相关 Sourcetrail https://www.zuozi.net/33672.html

FMXComponents
上一篇: FMXComponents
awesome cs books
下一篇: awesome cs books
常见问题
  • 1、自动:拍下后,点击(下载)链接即可下载;2、手动:拍下后,联系卖家发放即可或者联系官方找开发者发货。
查看详情
  • 1、源码默认交易周期:手动发货商品为1-3天,并且用户付款金额将会进入平台担保直到交易完成或者3-7天即可发放,如遇纠纷无限期延长收款金额直至纠纷解决或者退款!;
查看详情
  • 1、描述:源码描述(含标题)与实际源码不一致的(例:货不对板); 2、演示:有演示站时,与实际源码小于95%一致的(但描述中有”不保证完全一样、有变化的可能性”类似显著声明的除外); 3、发货:不发货可无理由退款; 4、安装:免费提供安装服务的源码但卖家不履行的; 5、收费:价格虚标,额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外); 6、其他:如质量方面的硬性常规问题BUG等。 注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。
查看详情
  • 1、左子会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全! 2、左子无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别; 3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外); 4、在没有”无任何正当退款依据”的前提下,商品写有”一旦售出,概不支持退款”等类似的声明,视为无效声明; 5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准); 6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在左子上所留的QQ、手机号沟通,以防对方不承认自我承诺。 7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于左子介入快速处理。
查看详情

相关文章

猜你喜欢
发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务