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.
Difference between revisions of "MemoryAnalyzer/WSL"
Line 27: | Line 27: | ||
<code>sudo apt install openjdk-11-jre-headless</code> | <code>sudo apt install openjdk-11-jre-headless</code> | ||
+ | |||
+ | Find the IP address of the WSL2 system: | ||
+ | <code>ip addr | grep eth0</code> | ||
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, need to check for WSL2 | xhost +127.0.0.1 #Add the appropriate IP address, need to check for WSL2 | ||
− | # xhost + # or use this for WSL2, | + | # xhost +172.22.46.35 # or use this for WSL2, replace the address with the address from ip addr above</nowiki> |
Download Memory Analyzer zip | Download Memory Analyzer zip | ||
Line 37: | Line 40: | ||
<nowiki>unzip MemoryAnalyzer-1.12.0.20210602-linux.gtk.x86_64.zip</nowiki> | <nowiki>unzip MemoryAnalyzer-1.12.0.20210602-linux.gtk.x86_64.zip</nowiki> | ||
+ | For WSL1 | ||
<nowiki> | <nowiki> | ||
cd mat | cd mat | ||
export DISPLAY=:0 | export DISPLAY=:0 | ||
./MemoryAnalyzer</nowiki> | ./MemoryAnalyzer</nowiki> | ||
+ | |||
+ | or for WSL2 | ||
+ | <nowiki> | ||
+ | ip route | grep default # Find the address of the Windows system | ||
+ | cd mat | ||
+ | export DISPLAY= 172.22.32.1:0 # Replace the IP address here with the address from ip route | ||
+ | ./MemoryAnalyzer</nowiki> | ||
+ | |||
currently charts are not working in WSL2 | currently charts are not working in WSL2 |
Revision as of 03:59, 20 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
Find the IP address of the WSL2 system:
ip addr | grep eth0
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 +172.22.46.35 # or use this for WSL2, replace the address with the address from ip addr above
Download Memory Analyzer zip
unzip MemoryAnalyzer-1.12.0.20210602-linux.gtk.x86_64.zip
For WSL1
cd mat export DISPLAY=:0 ./MemoryAnalyzer
or for WSL2
ip route | grep default # Find the address of the Windows system cd mat export DISPLAY= 172.22.32.1:0 # Replace the IP address here with the address from ip route ./MemoryAnalyzer
currently charts are not working in WSL2