Skip to content

Instantly share code, notes, and snippets.

@jglathe
Last active February 1, 2021 04:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jglathe/027ce234a786ec0a705718aa2648fa22 to your computer and use it in GitHub Desktop.
Save jglathe/027ce234a786ec0a705718aa2648fa22 to your computer and use it in GitHub Desktop.
Modify PyCharm-CE to run with native fsnotifier on aarch64 (nVidia Jetson Nano)
This is my how-to on getting PyCharm-CE or IDEA to run on a Jetson Nano. Tested with PyCharm-CE 2019.1 Build 191.7479
The linux install package runs on a jetson nano, but with some performance impact:
1. There is no native fsnotifier for linux-aarch64 in the package, and it won't be selected by the application if it would
be there.
2. inotify configuration is missing/not sufficient for PyCharm. Install https://gist.github.com/bittner/c7d1d49fe0c9af907f24
To get a native fsnotifier, you need to compile it from source, and you need to convince the application to select and start it.
This is currently implemented in https://github.com/JetBrains/intellij-community/pull/1140. As long as it is not yet integrated
into the build, you need to do a few things to do it yourself.
3. Have a build machine (linux or windows - as of IDEA 2019.2, only linux works), with IntelliJ IDEA installed, and capable of a
successful build: https://github.com/JetBrains/intellij-community#building-intellij-community-edition
3.1 Add the build file in python/build.xml to python.
3.2 change the allowed heap (-Xmx2G) and permanent (-XX:MaxPermSize=256m) values in build.xml and python/build.xml for the
call_gant macro. This can be done on a machine with 8G of RAM, seems to speed things up, too.
4. Clone the Repository https://github.com/JetBrains/intellij-community, and apply the pull request
https://github.com/JetBrains/intellij-community/pull/1140 there.
5. Run the ant build file. The resulting package is in ./out/pycharm-ce/artifacts
If you need to compile fsnotifier anew, do it on the Jetson nano with ./native/fsNotifier/linux/Jetson_make.sh, name it
apropriately (fsnotifier-linux-aarch64) and copy it into the ./bin directory of the installation.
IDEA CE 191.7479 witch aarch64 fsnotifier: https://drive.google.com/open?id=15Xv8_6NlfdUTY9jkNPvqb0PkY4S_Y5h1
PyCharm CE 191.7479 with aarch64 fsnotifier: https://drive.google.com/open?id=1yUAYNw57ENvoWSI8UUICE6NefRRf-Vp0
@insign
Copy link

insign commented Feb 1, 2021

Thank you. Downloaded and extracted for my Raspberry Pi 4. Using on PhpStorm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment