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.
Software to save and analyse diffraction pattern images from the Australian Synchrotron Educational Virtual Beam Line (eVBL) area detectors.
Download the latest version of the windows executable in the release folder above. It should run straight away.
- Install Qt5 including source and MinGW.
- Install CMake.
- Add the MinGW and CMake
bin
directories to yourPATH
environment variable. They will be something like
C:\Qt\Qt5.1.1\Tools\mingw48_32;C:\Program Files\CMake 2.8\bin
- 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
- Clone the repository:
git clone --recursive https://github.com/AustralianSynchrotron/eVBL.git
- 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
- Add to your
PATH
environment variable:
/path/to/project/src/opencv/install/debug/bin
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.
- Download the Qt source code and unzip to
C:\Qt\Qt5.1.1-src\
. - 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.
- Add to your
PATH
:
C:\strawberry\perl\bin;C:\Python27;C:\Ruby200\bin;C:\icu\dist\bin
- In
C:\Qt\Qt5.1.1-src\qtbase\mkspecs\win32-g++\qmake.conf
add-static -static-libgcc
toQMAKE_LFLAGS
. - In
C:\Qt\Qt5.1.1-src\qtbase\qmake\Makefile.win32
add-static -static-libgcc
toLFLAGS
. - 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