Quick tutorial on how to install and run Wine with CC5X to compile code in the Linux environment. For CC8E it is required to replace CC5X with CC8E. ***** Thanks to Dr. Kopjak for providing this setup. First setup MPLAB X on Linux (Ubuntu 16.04) according to: http://www.bknd.com/files/mplabx-p.txt - recommended http://www.bknd.com/files/mplabx-i.txt - does not (yet) work with Linux Modifications required: 1. Install wine: sudo apt-get install wine 2. Copy the small shell script (cc5x.dat) to the CC5X directory. 3. Enable execution possibility to the shell script file: chmod "a+x" ./cc5x 4. Enable write access to CC5X directory. The write access is needed by MPLABX to be able to create deviceSupport.xml and languagetoolchain.xml files. **************** File "cc5x.dat": #!/bin/bash # LINUX - MPLAB X Intergration # Copy this file to CC5X main directory CC5X="CC5X.EXE" SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" CC5X_PATH=$DIR"/"$CC5X wine $CC5X_PATH $@