Skip to content

Dev_Building

Ulf Frisk edited this page Jan 16, 2025 · 5 revisions

Building LeechCore

Windows:

The LeechCore library and the LeechAgent binaries are built with Visual Studio 2019. Please ensure that the C/C++ development environment and the Visual Studio Python Tools are both installed.

LeechCore and LeechAgent supports both 32-bit and 64-bit Windows 7 or later. Windows 10 is recommended for improved performance.

Note! Additional device plugin modules exists in the LeechCore-plugins repository. Plugins will build to .dll files which should be placed alongside leechcore.dll.

Linux:

The LeechCore library is supported on x64 and arm64 Linux.

To build for Linux ensure the dependencies are met by running:
apt-get install libusb-1.0-0-dev pkg-config. Then move into the LeechCore/leechcore directory and execute: make. The resulting library leechcore.so will be placed in the LeechCore/files directory after a successful build.

LeechAgent is not supported on Linux.

Note! Additional device plugin modules exists in the LeechCore-plugins repository. The FT601 user-mode USB-driver also exists as a separate driver compiled to .so. Plugins will build to .so files which should be placed alongside leechcore.so.

macOS:

The LeechCore library is supported on Apple silicon macOS.

To build for macOS execute in the leechcore directory: make -f Makefile.macos

LeechAgent is not supported on macOS.

Note! Additional device plugin modules exists in the LeechCore-plugins repository. The FT601 user-mode USB-driver also exists as a separate driver compiled to .dylib. Plugins will build to .dylib files which should be placed alongside leechcore.dylib.