[GRASS-dev] GRASS + WSL

Hello,

It was suggested to me that I report to the list that GRASS almost fully compiles and runs under Windows Subsystem for Linux (WSL). Everything compiles except ximgview.

For those who do not know what WSL is, it is sort of a hidden VM layer addon for Windows with a custom kernel that allows Linux to run on Windows.

I am using the Ubuntu WSL Preview on Windows 11 with WSL2. This combination gives me full GUI without needing to run a separate X Server. Graphics are accelerated (nvidia, in my case). I have not had a chance to test everything, yet, but it does look promising.

On Windows 10, you will need to run a separate middleware X Server to get the GUI working until the next release of WSL.

This may eventually replace the need for MinGW for the most recent releases of Windows. I look forward to running performance benchmarks.

It's linux, but it's on my Windows desktop! It's a bit surreal.

Best Regards,
-Brad

Hi Brad,

I’m using GRASS under WSLackware (https://github.com/Mohsens22/WSLackware). For me, ximgview compiles fine. Maybe, it’s a distribution issue?

Best,
Huidae

···

Huidae Cho, Ph.D., GISP, /hidɛ t͡ɕo/, 조희대, 曺喜大
GRASS GIS Developer
https://idea.isnew.info/

Hello,

I’ve finally had a moment to look at my build log to see what went wrong for my WSL build of ximgview.

It took me a minute to figure out what was going on. Lots of “undefined reference” to X11 functions, but nowhere else in GRASS! Turns out gcc isn’t very happy when you have “-L -lX11”… Removing the empty “-L” resolved the issue.

I’m going to cc: the list because I’m not sure how to address this.

···

From: Huidae Cho grass4u@gmail.com
Sent: Wednesday, February 16, 2022 7:03 AM
To: Brad ReDacted brad.redacted@outlook.com
Cc: grass-dev@lists.osgeo.org grass-dev@lists.osgeo.org
Subject: Re: [GRASS-dev] GRASS + WSL

Hi Brad,

I’m using GRASS under WSLackware (https://github.com/Mohsens22/WSLackware). For me, ximgview compiles fine. Maybe, it’s a distribution issue?

Best,
Huidae

On Wed, Feb 2, 2022 at 2:57 PM Brad ReDacted <brad.redacted@outlook.com> wrote:

Hello,

It was suggested to me that I report to the list that GRASS almost fully compiles and runs under Windows Subsystem for Linux (WSL). Everything compiles except ximgview.

For those who do not know what WSL is, it is sort of a hidden VM layer addon for Windows with a custom kernel that allows Linux to run on Windows.

I am using the Ubuntu WSL Preview on Windows 11 with WSL2. This combination gives me full GUI without needing to run a separate X Server. Graphics are accelerated (nvidia, in my case). I have not had a chance to test everything, yet, but it does look promising.

On Windows 10, you will need to run a separate middleware X Server to get the GUI working until the next release of WSL.

This may eventually replace the need for MinGW for the most recent releases of Windows. I look forward to running performance benchmarks.

It’s linux, but it’s on my Windows desktop! It’s a bit surreal.

Best Regards,
-Brad


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Huidae Cho, Ph.D., GISP, /hidɛ t͡ɕo/, 조희대, 曺喜大
GRASS GIS Developer
https://idea.isnew.info/

On Wed, 23 Feb 2022 at 04:56, Brad ReDacted <brad.redacted@outlook.com> wrote:

I’m going to cc: the list because I’m not sure how to address this.

Thanks. That’s actually the right thing to do. :slight_smile: See also:

https://grasswiki.osgeo.org/wiki/Mailing_list_etiquette#Responding_to_other_posts

I use WSL2 regularly, I’m on Win11 now, and used graphic apps for years while on Win10.
I tried out the new wslg feature on Win11 last week.
First thing, I was using the Ubuntu 20.04 (the default that the Ubuntu distribution in the Microsoft Store bundles for now). Since I had a problem with a software I tried to upgrade in place a crash ubuntu distro to a newest release but then I had even more problems with graphical software. All that to say that at least make sure that Ubuntu 20.04 works.

Next, the graphical features are not installed by default (packages for UI). If you follow the steps in https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps, the installation of the software will require the packages to be installed. For example, Gedit will need to install the gnome and desktop environnement packages etc. There isn’t only gnome though. Test out that you you can run some of the apps before compiling. I wonder if the configure step ignores the X11 (–with-x11) if it not present at the configure step. That being said, on win11, it is no longer limited to X11, there is the Weston Wayland compositor in the core of the architecture. https://github.com/microsoft/wslg#wslg-architecture-overview

So, once tested that wsl and gui apps works, and then configured and built GRASS, I’d like to see what error messages you have. I didn’t compile GRASS on WSL yet, I only tried on msys2’s MinGW.

Don’t forget to make sure you have the NVidia drivers updated, like in the 510+ (I think the first beta versions were before 495, but it doesn’t mean the Linux kernel is really supported before).

Edouard Choinière

Le 23 févr. 2022 à 09:47, Vaclav Petras wenzeslaus@gmail.com a écrit :

On Wed, 23 Feb 2022 at 04:56, Brad ReDacted <brad.redacted@outlook.com> wrote:

I’m going to cc: the list because I’m not sure how to address this.

Thanks. That’s actually the right thing to do. :slight_smile: See also:

https://grasswiki.osgeo.org/wiki/Mailing_list_etiquette#Responding_to_other_posts


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev