Skip to content

AustralianSynchrotron/eVBL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ NOT MAINTAINED ⚠️

Please note that this repository, code and binary executables are not maintained or supported any longer. Use at your own risk.

Please feel free to fork the repository.

Detector Gadget

Australian Synchrotron Educational Virtual Beamline

Software to save and analyse diffraction pattern images from the Australian Synchrotron Educational Virtual Beam Line (eVBL) area detectors.

Installing

Download the latest version of the windows executable in the release folder above. It should run straight away.

Developing

  1. Install Qt5 including source and MinGW.
  2. Install CMake.
  3. Add the MinGW and CMake bin directories to your PATH environment variable. They will be something like
C:\Qt\Qt5.1.1\Tools\mingw48_32;C:\Program Files\CMake 2.8\bin
  1. Set the following environment variables:
CMAKE_C_COMPILER=C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\gcc.exe
CMAKE_CXX_COMPILER=C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\g++.exe
  1. Clone the repository:
git clone --recursive https://github.com/AustralianSynchrotron/eVBL.git
  1. Compile opencv.

On Windows:

cd src\opencv
cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=DEBUG -D BUILD_opencv_python=OFF -D CMAKE_INSTALL_PREFIX="%CD%\install\debug" .
mingw32-make install

To compile static libraries for release on Windows change the cmake options to:

cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_SHARED_LIBS=NO -D BUILD_opencv_python=OFF -D CMAKE_INSTALL_PREFIX="%CD%\install\release" .

On Linux/Mac OS X:

cd src/opencv
mkdir -p install/debug build
cd build
cmake -D CMAKE_BUILD_TYPE=DEBUG -D BUILD_opencv_python=OFF -D CMAKE_INSTALL_PREFIX="$(pwd)/../install/debug" ..
make install
  1. Add to your PATH environment variable:
/path/to/project/src/opencv/install/debug/bin

Build static Qt

The easy way:

Have a prebuilt non-static QT version installed already then go to http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW

follow the instructions for running the windows-build-qt-static.ps1 script in powershell

may need to install the dependencies outlined below first. Not sure.

Finally integrate the static version of Qt into QtCreator.

The hard way... which may not work as easily as described:

  1. Download the Qt source code and unzip to C:\Qt\Qt5.1.1-src\.
  2. Install depedencies in C:\Qt\Qt5.1.1-src\README:

also make sure on widows the directX SDK is present. If not download and install from microsoft.

  1. Add to your PATH:
C:\strawberry\perl\bin;C:\Python27;C:\Ruby200\bin;C:\icu\dist\bin
  1. In C:\Qt\Qt5.1.1-src\qtbase\mkspecs\win32-g++\qmake.conf add -static -static-libgcc to QMAKE_LFLAGS.
  2. In C:\Qt\Qt5.1.1-src\qtbase\qmake\Makefile.win32 add -static -static-libgcc to LFLAGS.
  3. In C:\Qt\Qt5.1.1-src, run
set INCLUDE=C:\icu\dist\include
set LIB=C:\icu\dist\lib
configure -static -release -opensource -confirm-license -nomake tests -nomake examples -nomake tools
mingw32-make module-qtmultimedia
mingw32-make
  1. Integrate the static version of Qt to QtCreator.