Skip to content

Instantly share code, notes, and snippets.

@nicnilov
Last active November 17, 2020 16:58
Show Gist options
  • Select an option

  • Save nicnilov/85ddd060b95fba2e792b98e9b970adc7 to your computer and use it in GitHub Desktop.

Select an option

Save nicnilov/85ddd060b95fba2e792b98e9b970adc7 to your computer and use it in GitHub Desktop.

Revisions

  1. nicnilov revised this gist Nov 17, 2020. No changes.
  2. nicnilov revised this gist Nov 17, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Run RawTherapee custom linux build on Windows 10 with sharp fonts on a HiDPI display

    > Note that this setup may be a moot point as there are important issues when running RT under WSL. One is the overall low performance compared to a Linux in a Virtual Box setup. Another is repeatable freezes of the VM when the contents of the directory currently open in RT is modified on the host. For these and other reasons the Virtual Box setup turned out to be superior to the WSL.
    > Note that this setup may be a moot point as there are important issues when running RT under WSL. One is the overall low performance compared to a Linux in a Virtual Box setup. Another is repeatable freezes of the VM when the contents of the directory currently open in RT are modified on the host. For these and other reasons the Virtual Box setup turned out to be superior to the WSL.
    The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.

  3. nicnilov revised this gist Nov 17, 2020. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    # Run RawTherapee custom linux build on Windows 10 with sharp fonts on a HiDPI display

    > test
    >
    > Note that this setup may be a moot point as there are important issues when running RT under WSL. One is the overall low performance compared to a Linux in a Virtual Box setup. Another is repeatable freezes of the VM when the contents of the directory currently open in RT is modified on the host. For these and other reasons the Virtual Box setup turned out to be superior to the WSL.
    The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.

  4. nicnilov revised this gist Nov 17, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    # Run RawTherapee custom linux build on Windows 10 with sharp fonts on a HiDPI display

    > test
    >
    The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.

    ## Configure Windows Subsystem for Linux
    @@ -110,7 +113,7 @@ The Windows drives should be available under `/mnt/` directory.

    ## Configure RawTherapee to display sharp fonts

    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), which is typical on a high resolution display, the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the descibed setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.
    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), which is typical on a high resolution display, the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the described setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.

    ### 1. Configure the XLaunch shortcut

  5. nicnilov revised this gist Oct 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -58,7 +58,7 @@ In Ubuntu terminal run

    ```
    sudo apt-get update
    sudo apt-get install build-essential cmake curl git libcanberra-gtk3-dev libexiv2-dev libexpat-dev libfftw3-dev libglibmm-2.4-dev libgtk-3-dev libgtkmm-3.0-dev libiptcdata0-dev libjpeg8-dev liblcms2-dev liblensfun-dev libpng12-dev librsvg2-dev libsigc++-2.0-dev libtiff5-dev zlib1g-dev
    sudo apt install build-essential cmake curl git libcanberra-gtk3-dev libexiv2-dev libexpat-dev libfftw3-dev libglibmm-2.4-dev libgtk-3-dev libgtkmm-3.0-dev libiptcdata0-dev libjpeg-dev liblcms2-dev liblensfun-dev libpng-dev librsvg2-dev libsigc++-2.0-dev libtiff5-dev zlib1g-dev
    ```

    ### 2. Clone the RawTherapee repo
  6. nicnilov revised this gist Oct 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,7 @@ Verify the graphical apps work by running `glxgears`.

    ## Prepare RawTherapee

    For any details refer to https://rawpedia.rawtherapee.com/Linux
    For any details refer to https://rawpedia.rawtherapee.com/Linux.

    ### 1. Install the build dependencies

  7. nicnilov revised this gist Oct 2, 2020. 1 changed file with 15 additions and 13 deletions.
    28 changes: 15 additions & 13 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,22 @@
    # Run RawTherapee custom linux build on Windows 10 with sharp fonts on a HiDPI display

    The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.

    # Configure Windows Subsystem for Linux
    ## Configure Windows Subsystem for Linux

    ## 1. Enable WSL
    ### 1. Enable WSL

    Settings > Apps > Programs and Features

    Check the Windows Subsystem for Linux

    ## 2. Install Ubuntu
    ### 2. Install Ubuntu

    In Microsoft Store and search for ‘Linux’

    Install Ubuntu 20 LTS

    ## 3. Install X Server
    ### 3. Install X Server

    Run Ubuntu

    @@ -46,11 +48,11 @@ export DISPLAY=localhost:0

    Verify the graphical apps work by running `glxgears`.

    # Prepare RawTherapee
    ## Prepare RawTherapee

    For any details refer to https://rawpedia.rawtherapee.com/Linux

    ## 1. Install the build dependencies
    ### 1. Install the build dependencies

    In Ubuntu terminal run

    @@ -59,21 +61,21 @@ sudo apt-get update
    sudo apt-get install build-essential cmake curl git libcanberra-gtk3-dev libexiv2-dev libexpat-dev libfftw3-dev libglibmm-2.4-dev libgtk-3-dev libgtkmm-3.0-dev libiptcdata0-dev libjpeg8-dev liblcms2-dev liblensfun-dev libpng12-dev librsvg2-dev libsigc++-2.0-dev libtiff5-dev zlib1g-dev
    ```

    ## 2. Clone the RawTherapee repo
    ### 2. Clone the RawTherapee repo

    ```
    mkdir -p ~/programs
    git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee
    cd ~/programs/code-rawtherapee
    ```

    ## 3. Select the required branch
    ### 3. Select the required branch

    ```
    git checkout filmneg
    ```

    ## 4. Compile RawTherapee
    ### 4. Compile RawTherapee

    ```
    cd ~/programs/code-rawtherapee
    @@ -97,7 +99,7 @@ make --jobs=$(nproc --all)
    make install
    ```

    ## 5. Run RawTherapee
    ### 5. Run RawTherapee

    ```
    ~/programs/rawtherapee/rawtherapee
    @@ -106,11 +108,11 @@ make install
    At this point RawTherapee should start and work as usual.
    The Windows drives should be available under `/mnt/` directory.

    # Configure RawTherapee to display sharp fonts
    ## Configure RawTherapee to display sharp fonts

    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), which is typical on a high resolution display, the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the descibed setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.

    ## 1. Configure the XLaunch shortcut
    ### 1. Configure the XLaunch shortcut

    Shutdown the running RawTherapee

    @@ -124,7 +126,7 @@ In High DPI scaling override section set the checkbox and select Application in

    Close the dialogs by clicking Ok

    ## 2. Configure RawTherapee for HiDPI display
    ### 2. Configure RawTherapee for HiDPI display

    Run RawTherapee

  8. nicnilov revised this gist Oct 2, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,7 @@ Run XLaunch
    Set this config:

    * Multiple Windows
    * Display number: 0
    * Start no client
    * Uncheck Native OpenGL

  9. nicnilov revised this gist Oct 2, 2020. 1 changed file with 19 additions and 8 deletions.
    27 changes: 19 additions & 8 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ Set this config:
    * Start no client
    * Uncheck Native OpenGL

    This starts the VcXsrv windows xserver.
    Clilck Finish to run the VcXsrv windows xserver.

    In Ubuntu terminal run

    @@ -49,29 +49,30 @@ Verify the graphical apps work by running `glxgears`.

    For any details refer to https://rawpedia.rawtherapee.com/Linux

    1. Install the build dependencies
    ## 1. Install the build dependencies

    In Ubuntu terminal run

    ```
    sudo apt-get update
    sudo apt-get install build-essential cmake curl git libcanberra-gtk3-dev libexiv2-dev libexpat-dev libfftw3-dev libglibmm-2.4-dev libgtk-3-dev libgtkmm-3.0-dev libiptcdata0-dev libjpeg8-dev liblcms2-dev liblensfun-dev libpng12-dev librsvg2-dev libsigc++-2.0-dev libtiff5-dev zlib1g-dev
    ```

    2. Clone the RawTherapee repo
    ## 2. Clone the RawTherapee repo

    ```
    mkdir -p ~/programs
    git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee
    cd ~/programs/code-rawtherapee
    ```

    3. Select the required branch, e.g.
    ## 3. Select the required branch

    ```
    git checkout filmneg
    ```

    4. Compile RawTherapee
    ## 4. Compile RawTherapee

    ```
    cd ~/programs/code-rawtherapee
    @@ -95,7 +96,7 @@ make --jobs=$(nproc --all)
    make install
    ```

    5. Run RawTherapee
    ## 5. Run RawTherapee

    ```
    ~/programs/rawtherapee/rawtherapee
    @@ -108,18 +109,28 @@ The Windows drives should be available under `/mnt/` directory.

    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), which is typical on a high resolution display, the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the descibed setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.

    1. Configure the XLaunch shortcut
    ## 1. Configure the XLaunch shortcut

    Shutdown the running RawTherapee

    Shutdown VcXsrv by right-clicking its tray icon and selecting Exit

    Right-click the XLaunch icon and select Properties

    On Compatibility tab select Change high DPI settings

    In High DPI scaling override section set the checkbox and select Application in the dropdown

    Close the dialogs by clicking Ok

    2. Configure RawTherapee for HiDPI display
    ## 2. Configure RawTherapee for HiDPI display

    Run RawTherapee

    Open Preferences

    On General tab enable Pseudo-HiDPI mode

    Restart RawTherapee

    Now RawTherapee UI should display sharp fonts everywhere and the layout should be comfortably scaled. If the fonts appear too small, their size can be adjusted in Preferences.
  10. nicnilov revised this gist Oct 2, 2020. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -31,11 +31,9 @@ Run XLaunch

    Set this config:

    Multiple Windows

    Start no client

    Uncheck Native OpenGL
    * Multiple Windows
    * Start no client
    * Uncheck Native OpenGL

    This starts the VcXsrv windows xserver.

  11. nicnilov revised this gist Oct 2, 2020. 1 changed file with 14 additions and 9 deletions.
    23 changes: 14 additions & 9 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ In Microsoft Store and search for ‘Linux’

    Install Ubuntu 20 LTS

    3. Install X Server
    ## 3. Install X Server

    Run Ubuntu

    @@ -25,22 +25,27 @@ sudo apt-get update
    sudo apt-get install mesa-utils
    ```

    * Find and download VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/
    * Run XLaunch
    * Set this config:
    ```
    Find and download VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/

    Run XLaunch

    Set this config:

    Multiple Windows

    Start no client

    Uncheck Native OpenGL
    ```
    This starts the VcXsrv windows xserver

    In Ubuntu terminal run
    This starts the VcXsrv windows xserver.

    In Ubuntu terminal run

    ```
    export DISPLAY=localhost:0
    ```

    Verify the graphical apps work by running `glxgears`
    Verify the graphical apps work by running `glxgears`.

    # Prepare RawTherapee

  12. nicnilov revised this gist Oct 2, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@ The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffb

    # Configure Windows Subsystem for Linux

    1. Enable WSL
    ## 1. Enable WSL

    Settings > Apps > Programs and Features

    Check the Windows Subsystem for Linux

    2. Install Ubuntu
    ## 2. Install Ubuntu

    In Microsoft Store and search for ‘Linux’

  13. nicnilov revised this gist Oct 2, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -3,19 +3,23 @@ The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffb
    # Configure Windows Subsystem for Linux

    1. Enable WSL

    Settings > Apps > Programs and Features

    Check the Windows Subsystem for Linux

    2. Install Ubuntu

    In Microsoft Store and search for ‘Linux’

    Install Ubuntu 20 LTS

    3. Install X Server

    Run Ubuntu

    Run the following commands

    ```
    sudo apt-get update
    sudo apt-get install mesa-utils
  14. nicnilov renamed this gist Oct 2, 2020. 1 changed file with 7 additions and 6 deletions.
    13 changes: 7 additions & 6 deletions doc.txt → doc.md
    Original file line number Diff line number Diff line change
    @@ -3,18 +3,19 @@ The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffb
    # Configure Windows Subsystem for Linux

    1. Enable WSL
    ```
    Settings > Apps > Programs and Features

    Check the Windows Subsystem for Linux
    ```

    2. Install Ubuntu
    * In Microsoft Store and search for ‘Linux’
    * Install Ubuntu 20 LTS
    In Microsoft Store and search for ‘Linux’

    Install Ubuntu 20 LTS

    3. Install X Server
    * Run Ubuntu
    * Run the following commands
    Run Ubuntu

    Run the following commands
    ```
    sudo apt-get update
    sudo apt-get install mesa-utils
  15. nicnilov renamed this gist Oct 2, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  16. nicnilov revised this gist Oct 2, 2020. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,10 @@ The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffb
    # Configure Windows Subsystem for Linux

    1. Enable WSL
    > Settings > Apps > Programs and Features
    > Check the Windows Subsystem for Linux
    ```
    Settings > Apps > Programs and Features
    Check the Windows Subsystem for Linux
    ```

    2. Install Ubuntu
    * In Microsoft Store and search for ‘Linux’
  17. nicnilov revised this gist Oct 2, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,8 @@ The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffb
    # Configure Windows Subsystem for Linux

    1. Enable WSL
    * Settings > Apps > Programs and Features
    * Check the Windows Subsystem for Linux
    > Settings > Apps > Programs and Features
    > Check the Windows Subsystem for Linux
    2. Install Ubuntu
    * In Microsoft Store and search for ‘Linux’
  18. nicnilov revised this gist Oct 2, 2020. 1 changed file with 11 additions and 9 deletions.
    20 changes: 11 additions & 9 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -3,27 +3,29 @@ The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffb
    # Configure Windows Subsystem for Linux

    1. Enable WSL
    Settings > Apps > Programs and Features
    Check the Windows Subsystem for Linux
    * Settings > Apps > Programs and Features
    * Check the Windows Subsystem for Linux

    2. Install Ubuntu
    In Microsoft Store and search for ‘Linux’
    Install Ubuntu 20 LTS
    * In Microsoft Store and search for ‘Linux’
    * Install Ubuntu 20 LTS

    3. Install X Server
    Run Ubuntu
    Run the following commands
    * Run Ubuntu
    * Run the following commands
    ```
    sudo apt-get update
    sudo apt-get install mesa-utils
    ```

    Find and download VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/
    Run XLaunch
    Set this config:
    * Find and download VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/
    * Run XLaunch
    * Set this config:
    ```
    Multiple Windows
    Start no client
    Uncheck Native OpenGL
    ```
    This starts the VcXsrv windows xserver

    In Ubuntu terminal run
  19. nicnilov revised this gist Oct 2, 2020. 1 changed file with 17 additions and 1 deletion.
    18 changes: 17 additions & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -94,4 +94,20 @@ The Windows drives should be available under `/mnt/` directory.

    # Configure RawTherapee to display sharp fonts

    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the descibed setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.
    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), which is typical on a high resolution display, the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the descibed setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.

    1. Configure the XLaunch shortcut
    Shutdown the running RawTherapee
    Shutdown VcXsrv by right-clicking its tray icon and selecting Exit
    Right-click the XLaunch icon and select Properties
    On Compatibility tab select Change high DPI settings
    In High DPI scaling override section set the checkbox and select Application in the dropdown
    Close the dialogs by clicking Ok

    2. Configure RawTherapee for HiDPI display
    Run RawTherapee
    Open Preferences
    On General tab enable Pseudo-HiDPI mode
    Restart RawTherapee

    Now RawTherapee UI should display sharp fonts everywhere and the layout should be comfortably scaled. If the fonts appear too small, their size can be adjusted in Preferences.
  20. nicnilov revised this gist Oct 2, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -81,6 +81,7 @@ cmake \
    make --jobs=$(nproc --all)
    make install
    ```

    5. Run RawTherapee

  21. nicnilov revised this gist Oct 2, 2020. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -88,4 +88,9 @@ make install
    ~/programs/rawtherapee/rawtherapee
    ```
    At this point RawTherapee should start and work as usual. The Windows drives should be available under `/mnt/` directory.
    At this point RawTherapee should start and work as usual.
    The Windows drives should be available under `/mnt/` directory.
    # Configure RawTherapee to display sharp fonts
    If Windows 10 is configured to use scaling other than 100% (Display -> Scale and Layout), the unsupporting applications will display blurry fonts because their fonts are scaled as raster graphics and not as vector graphics. With the descibed setup RawTherapee runs under WSL which although is now configured for GUI applications, is not aware of the Windows scaling, so RawTherapee UI fonts look blurry.
  22. nicnilov revised this gist Oct 2, 2020. No changes.
  23. nicnilov revised this gist Oct 2, 2020. 1 changed file with 61 additions and 2 deletions.
    63 changes: 61 additions & 2 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    The credit for WSL setup with graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.
    The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.

    # Configure Windows Subsystem for Linux

    1. Enable WSL
    Settings > Apps > Programs and Features
    @@ -29,4 +31,61 @@ In Ubuntu terminal run
    export DISPLAY=localhost:0
    ```

    Verify the graphical apps work by running `glxgears`
    Verify the graphical apps work by running `glxgears`

    # Prepare RawTherapee

    For any details refer to https://rawpedia.rawtherapee.com/Linux

    1. Install the build dependencies
    In Ubuntu terminal run

    ```
    sudo apt-get update
    sudo apt-get install build-essential cmake curl git libcanberra-gtk3-dev libexiv2-dev libexpat-dev libfftw3-dev libglibmm-2.4-dev libgtk-3-dev libgtkmm-3.0-dev libiptcdata0-dev libjpeg8-dev liblcms2-dev liblensfun-dev libpng12-dev librsvg2-dev libsigc++-2.0-dev libtiff5-dev zlib1g-dev
    ```

    2. Clone the RawTherapee repo

    ```
    mkdir -p ~/programs
    git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee
    cd ~/programs/code-rawtherapee
    ```

    3. Select the required branch, e.g.

    ```
    git checkout filmneg
    ```

    4. Compile RawTherapee

    ```
    cd ~/programs/code-rawtherapee
    mkdir build
    cd build
    cmake \
    -DCMAKE_BUILD_TYPE="release" \
    -DCACHE_NAME_SUFFIX="5-dev" \
    -DPROC_TARGET_NUMBER="2" \
    -DBUILD_BUNDLE="ON" \
    -DBUNDLE_BASE_INSTALL_DIR="$HOME/programs/rawtherapee" \
    -DOPTION_OMP="ON" \
    -DWITH_LTO="OFF" \
    -DWITH_PROF="OFF" \
    -DWITH_SAN="OFF" \
    -DWITH_SYSTEM_KLT="OFF" \
    ..
    make --jobs=$(nproc --all)
    make install
    5. Run RawTherapee
    ```
    ~/programs/rawtherapee/rawtherapee
    ```
    At this point RawTherapee should start and work as usual. The Windows drives should be available under `/mnt/` directory.
  24. nicnilov created this gist Oct 2, 2020.
    32 changes: 32 additions & 0 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    The credit for WSL setup with graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.

    1. Enable WSL
    Settings > Apps > Programs and Features
    Check the Windows Subsystem for Linux

    2. Install Ubuntu
    In Microsoft Store and search for ‘Linux’
    Install Ubuntu 20 LTS

    3. Install X Server
    Run Ubuntu
    Run the following commands
    ```
    sudo apt-get update
    sudo apt-get install mesa-utils
    ```

    Find and download VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/
    Run XLaunch
    Set this config:
    Multiple Windows
    Start no client
    Uncheck Native OpenGL
    This starts the VcXsrv windows xserver

    In Ubuntu terminal run
    ```
    export DISPLAY=localhost:0
    ```

    Verify the graphical apps work by running `glxgears`