Skip to content

Build under Windows

f0ma edited this page Jan 27, 2013 · 5 revisions

HardwareExpert build in Windows

Requires

  1. Git;

  2. Git binary directory in PATH, or mingw32 binary directory it PATH (for cp, rm, etc.);

  3. Qt4 with mingw (Qt5 compatibility does not tested);

  4. QextSerial port library;

Get QextSerial from Git:

git clone https://code.google.com/p/qextserialport/

Create separate build directory:

mkdir qextserialport-build
cd qextserialport-build

Build:

qmake ..\qextserialport\qextserialport.pro
mingw32-make -f Makefile.Release
  1. S-Lang library;

Get S-Lang archive from:

ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/

Extract to folder.

Build (is S-Lang directory):

mkfiles\m32init.bat
mingw32-make

If you have slsh build error - do not worry. Only slang.dll and slang.a requared.

  1. WinIO Get Win IO from

http://www.internals.com/

Extract fo folder.

HardwareExpert build

Get HardwareExpert from Git:

git clone https://github.com/f0ma/hardwareexpert.git

Setting up library paths:

In HardwareExpert directory copy hardwareexpert-build-lib-paths.pri.example to hardwareexpert-build-lib-paths.pri.user

Edit hardwareexpert-build-lib-paths.pri.user - setup you directory

Crate build directory and make:

mkdir hwe-build
cd hwe-build
qmake ..\hardwareexpert\hardwareexpert.pro
mingw32-make -f Makefile.Release

Build documentation (optional)

  • need python in PATH
  • need txt2tags
  • need setup path to txt2tags in your hardwareexpert-build-lib-paths.pri.user path

Аdditionals build targets

Build documentation:

mingw32-make -f Makefile.Release doc

Copy requared library and script files to build path:

mingw32-make -f Makefile.Release deploy

Cleanup build path (remove all except scripts and binary files):

mingw32-make -f Makefile.Release cleandeploy

Clone this wiki locally