How to port the miniemc2 web interface
These steps were tested to work on RPI and x86 builds of linuxcnc. Note that this is just a hack, improvements are needed to make this work properly.
Notes:
- emcweb directory is under /usr/src
- linuxcnc source is in /usr/src/emc3-dev
- linuxcnc is configured to run-in-place, i.e. '--prefix is not set
Install required packages
sudo apt-get install --no-install-recommends libboost-serialization-dev libboost-thread-dev
Download the emcweb source and patch
svn checkout http://miniemc2.googlecode.com/svn/trunk/emcweb
wget patch
Patch emcweb and linuxcnc
patch -p0 < patch
Compile
cd emcweb
make
Create and populate web root directory
mkdir -p www/data
mv css/ js/ res/ html/index.html www/
Test
sudo ./emcweb