Skip to content
Educational Virtual Beam Line
C++ Prolog
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
.gitmodules
README.md

README.md

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
  4. 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
    
  5. Clone the repository:

    git clone --recursive https://github.com/AustralianSynchrotron/eVBL.git
  6. 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
  7. 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.

  3. Add to your PATH:

    C:\strawberry\perl\bin;C:\Python27;C:\Ruby200\bin;C:\icu\dist\bin
    
  4. In C:\Qt\Qt5.1.1-src\qtbase\mkspecs\win32-g++\qmake.conf add -static -static-libgcc to QMAKE_LFLAGS.

  5. In C:\Qt\Qt5.1.1-src\qtbase\qmake\Makefile.win32 add -static -static-libgcc to LFLAGS.
  6. 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
    
  7. Integrate the static version of Qt to QtCreator.

Something went wrong with that request. Please try again.