I'm not sure if X-Windows server is needed, but I have some notes in a prior blog post to use cygwin from WSL.
sudo apt-get update sudo apt-get upgrade sudo apt-get install nodejs sudo apt-get install npm node -v cd ~/workspace/ ## see https://github.com/FPGAwars/icestudio#download ## git clone https://github.com/FPGAwars/icestudio.git cd icestudio ## Do we need to have an X-Windows server running? ## export DISPLAY=:0 # you may wish you put in this your ~/.bashrc cp /mnt/c/cygwin64/home/gojimmypi/.Xauthority ~/.Xauthority ## test X-Windows xclock ## ensure we are on the develop branch ## git status npm install npm start
Unforunately, this left me in a state of "waiting..."
gojimmypi:~/workspace/icestudio $ npm start > email@example.com start /home/gojimmypi/workspace/icestudio > grunt serve Running "nggettext_compile:all" (nggettext_compile) task Running "watch:scripts" (watch) task Waiting... Running "wiredep:task" (wiredep) task Running "exec:stopNW" (exec) task Running "exec:nw" (exec) task Done. Completed in 3.118s at Tue Dec 24 2019 06:57:33 GMT-0800 (PST) - Waiting...
For Windows, download the NodeJS and NPM. I did get it working, but see this icestudio GitHub issue #368. More to come...
Resources and links:
- FTDI Drivers, specifically CDM v2.12.28 WHQL Certified (contains both 32 and 64 bit
- WSL GUI - Using Cygwin X-Server for Graphical Interface
- Makefile gtkwave sim and xserver recipes for WSL FPGA programming
- WSL2 install (I still have WSL 1 for this blog)
I tried to install it having looked at your post. Mine fails at NPM start...gives NPM error codes:ReplyDelete
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org start 'grunt serve'
npm Exit Status 1
npm ERR! Failed at the email@example.com start script
npm ERR! This probably not a problem with npm. There is likely additional logging output above.
I have no idea what is going on. To be honest I have no experience with npm or with node.js - I was just following what you have done.
A pity as I really want to use icestudio...maybe I should buy one of the supported boards for now. I know the developers aren't keen on ULX3S as it competes with one of their boards.
hmm. I didn't see that error. I installed node and npm for Windows for the first time. Perhaps try asking either in a GitHub issue for icestudio or on the ULX3S gitter channel?ReplyDelete