Skip to content

Instantly share code, notes, and snippets.

@pangyuteng
Last active February 5, 2026 17:47
Show Gist options
  • Select an option

  • Save pangyuteng/7b6daa7f37af912d4858be3919d368c6 to your computer and use it in GitHub Desktop.

Select an option

Save pangyuteng/7b6daa7f37af912d4858be3919d368c6 to your computer and use it in GitHub Desktop.
itksnap wsl2

ITK-SNAP in WSL2 ubuntu24.04

  • download itksnap, unzip tar at ~
tar -xvf xxx.tar.gz
  • add bin folder to PATH in .bashrc
export PATH=/home/xxx/itksnap-4.4.0-20250909-Linux-x86_64/bin:$PATH
  • install libs
sudo apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev 
sudo apt install libxcb-cursor-dev libxcb-icccm4
sudo apt install libxcb-*


old notes:

  • use below to troubleshoot missing libs:
export QT_DEBUG_PLUGINS=1



Launching ITK-SNAP
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted (core dumped)

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