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.
Links
Sourcetrail is:
The open-source development and regular software releases are made possible entirely by the support of these awesome patrons!
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:
choco install sourcetrail
After your installation is complete, follow our Quick Start Guide to get to know Sourcetrail.
You can post all your feature requests and bug reports on our issue tracker.
Use the following template:
If you want to support a certain feature request or you have the same bug that another user already reported, please let us know:
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.
CMake v3.12 (required for Windows, Linux and MacOS)
Git (required for Windows, Linux and MacOS)
git
is added to your PATH
environment variable before running CMakeVisual Studio (required for Windows)
ccache (optional for Linux and MacOS)
PATH
Boost 1.67
$ ./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
To set up your build environment run:
$ git clone https://github.com/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.
$ 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> ../..
$ make Sourcetrail
bin/app/data
and bin/app/user
. CMake creates symlinks within the build directory that make these directories accessible.git checkout llvmorg-11.0.0
-DLLVM_ENABLE_RTTI=ON
.-DClang_DIR=<path/to/llvm_build>/lib/cmake/clang
-DBUILD_CXX_LANGUAGE_PACKAGE=ON
JDK 1.8
<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
.../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
-DBUILD_JAVA_LANGUAGE_PACKAGE=ON
-DBUILD_PYTHON_LANGUAGE_PACKAGE=ON
Visual Studio (required for Windows)
.Net desktop development
workload.Wix 3.11
sourcetrail.msi
Windows installer.<path/to>/WiX Toolset v3.11/bin
to your PATH
environment variable.Wix extension for Visual Studio
JRE
WinRAR
<path/to>/WinRAR
to your PATH
environment variable../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.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.
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.
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
.
Sourcetrail is licensed under the GNU General Public License Version 3.
The "Sourcetrail" name is a trademark owned by Coati Software and is not included within the assets licensed under the GNU GPLv3.