Skip to content

Glavo/JetBrains-IDE-Multiarch

Repository files navigation

JetBrains IDEs for Linux LoongArch64/RISC-V 64

This project provides JetBrains IDEs distributions for more architectures.

Currently supported platforms:

  • Linux RISC-V 64 (glibc 2.34+)
  • Linux LoongArch64 (New World, glibc 2.38+)

Currently supported IDEs:

  • IntelliJ IDEA Community Edition
  • IntelliJ IDEA Ultimate
  • PyCharm
  • PyCharm Community Edition

IDEs that work, but need more validation:

  • WebStorm
  • Goland
  • RubyMine

Currently unsupported IDEs (some important features are not available):

  • CLion
  • RustRover
  • Rider (#3)

This project is sponsored by PLCT Lab.

PLCT Logo

Download the pre-built IDEs

We provide pre-built distributions for the IDEs that can be redistributed.

RISC-V 64 LoongArch64
IntelliJ IDEA Community Edition (2025.1.3+0) tag.gz
deb
tag.gz
deb (AOSC OS)
deb (Debian/Deepin/Loongnix)
PyCharm Community (2025.1.3.1+0) tag.gz
deb
tag.gz
deb (AOSC OS)
deb (Debian/Deepin/Loongnix)

As for other IDEs, we are not allowed to redistribute them. Please build them yourself.

Note

Since PyCharm Community has been replaced by PyCharm, which is not allowed to be redistributed, we will no longer provide pre-built files for PyCharm in the future.

If you want to continue using PyCharm, please build it yourself according to the following documentation.

Building

The work of this project is to download the official IDE distribution, patch the IDE with self-built native binaries and generate distributions for the target platform.

The scripts that do this are based on Gradle and require OpenJDK (>= 21) to run.

With OpenJDK installed and the JAVA_HOME environment variable set, run the following command replacing $PRODUCT_CODE with the product code of the IDE you want to build and $ARCH with the simple name of the target architecture:

./gradlew transform$PRODUCT_CODE-$ARCH

For Debian, Ubuntu, AOSC OS and other distributions using dpkg/apt as package manager, you can create a deb package using the following command:

./gradlew createDeb$PRODUCT_CODE-$ARCH

$PRODUCT_CODE for IDEs:

  • IntelliJ IDEA Community Edition: IC
  • IntelliJ IDEA Ultimate: IU
  • PyCharm: PY
  • PyCharm Community: PC
  • WebStorm: WS
  • Goland: GO
  • RustRover: RR
  • RubyMine: RM
  • PhpStorm: PS

$ARCH for architectures:

  • RISC-V 64: riscv64
  • LoongArch64: loongarch64
    • The createDeb task has two variants for LoongArch64: createDeb$PRODUCT_CODE-loongarch64 and createDeb$PRODUCT_CODE-loong64. The former is only used for AOSC OS, the latter is suitable for other distributions.

The IDE distribution will be built into ./build/target/.

Build native binaries

We have pre-built native binaries for some platforms. By default, the project downloads these prebuilt binaries and patches the IDE with them. You can also build them yourself.

Building native binaries requires:

  • GCC
  • Cargo (>= 1.82.0)

This project supports cross-compiling native binaries. To cross-compile binaries, you need to have the GCC Cross-Compiler for your target platform installed and Cargo configured for that.

Running ./gradlew buildNatives-$ARCH builds native binaries for the target platform, the built native binaries will be packaged into the file ./resources/natives-linux-$ARCH.zip. When this file exists, the script will use it first to patch the IDE instead of downloading the prebuilt binary.

Customizing the bundled Java runtime

JetBrains IDEs require a Java runtime environment to run.

We have pre-built JDKs for some platforms. By default, this project downloads these pre-built JDKs and bundles them into the IDE distribution. You can replace the default Java runtime environment via the project properties:

./gradlew transform$PRODUCT_CODE-$ARCH -Pjdk.linux.$ARCH.url="..."

The URL should point to a JDK distribution in .tar.gz or .zip format.

If you want to build the JDK yourself, we recommend using the JetBrains Runtime for the best experience.

For Linux LoongArch64, since OpenJDK mainline does not provide full support for LoongArch64, it is recommended to build based on loongson/jdk21u.

To-do list

  • Using JBR on Linux LoongArch64.

About

JetBrains IDEs for Linux RISC-V 64/LoongArch64

Topics

Resources

Stars

Watchers

Forks

Languages