Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MemoryAnalyzer/WSL"

m
Line 9: Line 9:
 
Install Cygwin and X-Server
 
Install Cygwin and X-Server
  
Install the appropriate graphics driver: [Microsoft WSL GUI apps](https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps)
+
Install the appropriate graphics driver: [https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps Microsoft WSL GUI apps]
  
 
Install unzip
 
Install unzip
Line 18: Line 18:
  
 
<code>sudo apt-get install libswt-gtk-4-jni libswt-gtk-4-java</code>
 
<code>sudo apt-get install libswt-gtk-4-jni libswt-gtk-4-java</code>
 +
 +
Install WebKit:
 +
 +
[https://www.eclipse.org/swt/faq.php#browserlinux Eclipse instructions]
 +
<code>sudo apt-get install libwebkit2gtk-4.0-37</code>
  
 
Install Java 11 or later
 
Install Java 11 or later
Line 25: Line 30:
 
From Cygwin64 command prompt. xhost should have the IP address of the WSL2 system as seen from Windows / Cygwin
 
From Cygwin64 command prompt. xhost should have the IP address of the WSL2 system as seen from Windows / Cygwin
 
  <nowiki>startxwin -- -listen tcp
 
  <nowiki>startxwin -- -listen tcp
xhost +127.0.0.1 #Add the appropriate IP address</nowiki>
+
xhost +127.0.0.1 #Add the appropriate IP address, need to check for WSL2
 +
# xhost + # or use this for WSL2, but not very safe</nowiki>
  
 
Download Memory Analyzer zip
 
Download Memory Analyzer zip
Line 35: Line 41:
 
export DISPLAY=:0
 
export DISPLAY=:0
 
./MemoryAnalyzer</nowiki>
 
./MemoryAnalyzer</nowiki>
 +
 +
currently charts are not working in WSL2

Revision as of 05:48, 18 February 2022

Windows Subsystem for Linux

it is possible to test Linux builds on a Windows 10 (or 11) machine using Windows Subsystem for Linux.

Install WSL2 with for example Ubuntu or Ubuntu 20

Install Cygwin and X-Server

Install the appropriate graphics driver: Microsoft WSL GUI apps

Install unzip

sudo apt install unzip

Install GTK:

sudo apt-get install libswt-gtk-4-jni libswt-gtk-4-java

Install WebKit:

Eclipse instructions sudo apt-get install libwebkit2gtk-4.0-37

Install Java 11 or later

sudo apt install openjdk-11-jre-headless

From Cygwin64 command prompt. xhost should have the IP address of the WSL2 system as seen from Windows / Cygwin

startxwin -- -listen tcp
xhost +127.0.0.1 #Add the appropriate IP address, need to check for WSL2
# xhost + # or use this for WSL2, but not very safe

Download Memory Analyzer zip

unzip MemoryAnalyzer-1.12.0.20210602-linux.gtk.x86_64.zip
cd mat
export DISPLAY=:0
./MemoryAnalyzer

currently charts are not working in WSL2

Back to the top