I have compiled the GUI on Linux with Qt5.
Posting here the patch file with all the changes I had to make few changes in order to compile and link the gui.
This also fixes a bug that prevents GUI from saving the I2C slave address when updating the firmware image.
diff -u Sources.orig/batchfile.c Sources/batchfile.c --- Sources.orig/batchfile.c 2016-03-02 03:32:11.000000000 -0500 +++ Sources/batchfile.c 2016-06-02 11:51:05.247708775 -0400 @@ -12,8 +12,8 @@ #include <string.h> #include <stdlib.h> -#include "common.h" -#include "error.h" +#include "Common.h" +#include "Error.h" #include "batchfile.h" #include "API.h" diff -u Sources.orig/batchfile.h Sources/batchfile.h --- Sources.orig/batchfile.h 2016-03-02 03:32:11.000000000 -0500 +++ Sources/batchfile.h 2016-06-02 11:51:44.507223873 -0400 @@ -14,8 +14,8 @@ * */ -#include "error.h" -#include "common.h" +#include "Error.h" +#include "Common.h" #include "API.h" #ifdef __cplusplus diff -u Sources.orig/BMPParser.h Sources/BMPParser.h --- Sources.orig/BMPParser.h 2016-03-02 03:32:11.000000000 -0500 +++ Sources/BMPParser.h 2016-06-02 11:36:02.830955902 -0400 @@ -8,7 +8,7 @@ #include "Error.h" #include "Common.h" -#include "Pattern.h" +#include "pattern.h" #ifdef __cplusplus extern "C" { diff -u Sources.orig/compress.c Sources/compress.c --- Sources.orig/compress.c 2016-03-02 03:32:11.000000000 -0500 +++ Sources/compress.c 2016-06-02 11:51:22.537495226 -0400 @@ -8,8 +8,8 @@ * This module provides RLE compression related APIs */ -#include "common.h" -#include "error.h" +#include "Common.h" +#include "Error.h" #include "compress.h" static uint08 *AddCount(uint16 Count, uint08 *Out) diff -u Sources.orig/compress.h Sources/compress.h --- Sources.orig/compress.h 2016-03-02 03:32:11.000000000 -0500 +++ Sources/compress.h 2016-06-02 11:35:33.265324703 -0400 @@ -10,7 +10,7 @@ * This module provides RLE compression related APIs */ -#include "common.h" +#include "Common.h" #ifdef __cplusplus extern "C" { diff -u Sources.orig/Error.c Sources/Error.c --- Sources.orig/Error.c 2016-03-02 03:32:11.000000000 -0500 +++ Sources/Error.c 2016-06-02 11:51:35.977329227 -0400 @@ -13,8 +13,8 @@ #include <string.h> #include <stdlib.h> -#include "common.h" -#include "error.h" +#include "Common.h" +#include "Error.h" /******************************** MACROS **************************************/ diff -u Sources.orig/firmware.c Sources/firmware.c --- Sources.orig/firmware.c 2016-03-02 03:32:11.000000000 -0500 +++ Sources/firmware.c 2016-06-02 11:48:55.394318969 -0400 @@ -10,11 +10,11 @@ * */ -#include "Pattern.h" -#include "Splash.h" +#include "pattern.h" +#include "splash.h" #include "batchfile.h" -#include "Firmware.h" -#include "FlashImage.h" +#include "firmware.h" +#include "flashimage.h" #define FW_MAX_BLOCKS 512 diff -u Sources.orig/firmware.h Sources/firmware.h --- Sources.orig/firmware.h 2016-03-02 03:32:11.000000000 -0500 +++ Sources/firmware.h 2016-06-02 11:49:00.768251934 -0400 @@ -10,10 +10,10 @@ * This module provides the flash binary reading and manipulation functions */ -#include "common.h" -#include "Pattern.h" -#include "BatchFile.h" -#include "FlashImage.h" +#include "Common.h" +#include "pattern.h" +#include "batchfile.h" +#include "flashimage.h" #ifdef __cplusplus diff -u Sources.orig/firmwarepage.cpp Sources/firmwarepage.cpp --- Sources.orig/firmwarepage.cpp 2016-03-02 03:33:35.000000000 -0500 +++ Sources/firmwarepage.cpp 2016-06-02 15:01:09.190526714 -0400 @@ -278,7 +278,8 @@ } } - if (ui->updateFlashWaitCycle_checkBox->isChecked()) +// if (ui->updateFlashWaitCycle_checkBox->isChecked()) + if (ui->i2cSlaveAdd_checkBox->isChecked()) { if(fw->setConfigBits(FW_CFG_I2C_ADDRESS, ui->i2cSlaveAdd->text().toUInt()) < 0) showError(GET_ERR_STR()); diff -u Sources.orig/FirmwareW.h Sources/FirmwareW.h --- Sources.orig/FirmwareW.h 2016-02-15 00:23:01.000000000 -0500 +++ Sources/FirmwareW.h 2016-06-02 11:47:50.799124727 -0400 @@ -7,7 +7,7 @@ #define FIRMWAREW_H #include "PtnImage.h" -#include "Firmware.h" +#include "firmware.h" /** * Class for loading, storing and manipulating the firmware file. This is a diff -u Sources.orig/flashimage.c Sources/flashimage.c --- Sources.orig/flashimage.c 2016-03-02 03:32:12.000000000 -0500 +++ Sources/flashimage.c 2016-06-02 11:51:40.546272796 -0400 @@ -10,8 +10,8 @@ #include <stdio.h> #include <stdlib.h> -#include "error.h" -#include "common.h" +#include "Error.h" +#include "Common.h" #include "flashimage.h" #define BOOT_SECTOR_SIZE_MIN 0x8000 diff -u Sources.orig/flashimage.h Sources/flashimage.h --- Sources.orig/flashimage.h 2016-03-02 03:32:12.000000000 -0500 +++ Sources/flashimage.h 2016-06-02 11:35:04.205687192 -0400 @@ -5,7 +5,7 @@ * This module provides the flash binary reading and manipulation functions */ -#include "common.h" +#include "Common.h" #ifdef __cplusplus diff -u Sources.orig/flashloader.c Sources/flashloader.c --- Sources.orig/flashloader.c 2016-03-02 03:32:12.000000000 -0500 +++ Sources/flashloader.c 2016-06-02 11:51:27.935428555 -0400 @@ -11,7 +11,7 @@ * */ #include "API.h" -#include "error.h" +#include "Error.h" #include "flashloader.h" /******************************** MACROS **************************************/ diff -u Sources.orig/flashloader.h Sources/flashloader.h --- Sources.orig/flashloader.h 2016-03-02 03:32:12.000000000 -0500 +++ Sources/flashloader.h 2016-06-02 11:35:26.559408352 -0400 @@ -10,7 +10,7 @@ * This module provides the flash programing APIs */ -#include "common.h" +#include "Common.h" #ifdef __cplusplus diff -u Sources.orig/GUI.pro Sources/GUI.pro --- Sources.orig/GUI.pro 2016-03-02 03:32:11.000000000 -0500 +++ Sources/GUI.pro 2016-06-02 11:44:27.978654704 -0400 @@ -74,6 +74,6 @@ INCLUDEPATH += ../GUI/hidapi-master/hidapi DEPENDPATH += ../GUI/hidapi-master/hidapi -OTHER_FILES += icons\GUI_icon.rc \ - icons\GUI_icon.ico \ +OTHER_FILES += icons/GUI_icon.rc \ + icons/GUI_icon.ico \ Icons/GUI_icon.rc diff -u Sources.orig/mainwindow.h Sources/mainwindow.h --- Sources.orig/mainwindow.h 2016-03-02 03:32:12.000000000 -0500 +++ Sources/mainwindow.h 2016-06-02 11:47:42.121232975 -0400 @@ -10,7 +10,7 @@ #include <QSettings> #include <QFile> #include "waveformwindow.h" -#include "common.h" +#include "Common.h" #include "FlashDevice.h" #include "FirmwareW.h" diff -u Sources.orig/pattern.c Sources/pattern.c --- Sources.orig/pattern.c 2016-03-02 03:32:12.000000000 -0500 +++ Sources/pattern.c 2016-06-02 11:51:47.943181435 -0400 @@ -13,8 +13,8 @@ */ #include <string.h> -#include "common.h" -#include "error.h" +#include "Common.h" +#include "Error.h" #include "pattern.h" diff -u Sources.orig/pattern.h Sources/pattern.h --- Sources.orig/pattern.h 2016-03-02 03:32:12.000000000 -0500 +++ Sources/pattern.h 2016-06-02 11:51:51.435138305 -0400 @@ -14,8 +14,8 @@ * */ -#include "error.h" -#include "common.h" +#include "Error.h" +#include "Common.h" #ifdef __cplusplus extern "C" { diff -u Sources.orig/PtnImage.h Sources/PtnImage.h --- Sources.orig/PtnImage.h 2016-02-15 00:23:10.000000000 -0500 +++ Sources/PtnImage.h 2016-06-02 11:50:02.101488708 -0400 @@ -7,10 +7,11 @@ #ifndef PTN_IMAGE_H #define PTN_IMAGE_H -#include "Pattern.h" -#include "Splash.h" -#include "QImage.h" -#include "QPixmap.h" +#include "pattern.h" +#include "splash.h" +#include "qimage.h" +#include "qpixmap.h" +#include "Error.h" /** * Class for loading, storing and manipulating the pattern image. diff -u Sources.orig/splash.c Sources/splash.c --- Sources.orig/splash.c 2016-03-02 03:32:12.000000000 -0500 +++ Sources/splash.c 2016-06-02 11:51:18.729542259 -0400 @@ -9,7 +9,7 @@ */ #include "splash.h" #include "compress.h" -#include "error.h" +#include "Error.h" #define BYTES_PER_PIXEL 3 diff -u Sources.orig/splash.h Sources/splash.h --- Sources.orig/splash.h 2016-03-02 03:32:12.000000000 -0500 +++ Sources/splash.h 2016-06-02 11:36:06.139914626 -0400 @@ -10,8 +10,8 @@ * This module provides the splash image related functions */ -#include "common.h" -#include "Pattern.h" +#include "Common.h" +#include "pattern.h" #ifdef __cplusplus extern "C" { diff -u Sources.orig/usb.h Sources/usb.h --- Sources.orig/usb.h 2016-03-02 03:32:12.000000000 -0500 +++ Sources/usb.h 2016-06-02 11:35:07.955640415 -0400 @@ -9,7 +9,7 @@ #ifndef USB_H #define USB_H -#include "common.h" +#include "Common.h" #ifdef __cplusplus extern "C" {