mixu / nwm

Tiling window manager for X11 written in Node.js
http://mixu.net/nwm/
MIT License
789 stars 72 forks source link

npm install error on OSX: 'X11/cursorfont.h' file not found #42

Closed DinisCruz closed 9 years ago

DinisCruz commented 9 years ago

Just tried to clone and run `npm install and got this error:

image

let me know if you want me to post the full npm-debug.log file

mixu commented 9 years ago

sorry, nwm is not supported on OSX. I've tried helping people fix various issues on OSX and realized it's just too much work to support it. It is possible to run nwm under xQuartz but debugging C/C++ compilation & linking issues is my least favorite thing to do plus you need manual xQuartz config plus you get no apps unless you compile them against X11 yourself (e.g. via brew, but compiling FF/Chrome is a time consuming task).

Just get a Ubuntu VM, it'll be much easier than trying to get X11 apps to play nicely on OSX.

DinisCruz commented 9 years ago

ok, I've started to use docker (with Ubuntu images) and was able to get node-webkit to run (see https://github.com/rogerwang/node-webkit/issues/1966#issuecomment-65922211) so I should be able to use it also for nwm?

Are there instructions on how to use nwm in docker?

mixu commented 9 years ago

I've never tried Docker, so I don't really know, but looking at your screenshot + the docker image it seems you can apt get the necessary dependencies, install and build nwm as documented in the readme, create the bash script and then change the Xvnc to start nwm instead of lxde, e.g. http://www.linuxquestions.org/questions/linux-software-2/how-to-set-window-manager-used-for-xvnc-445967/