/
README.win32
50 lines (41 loc) · 1.62 KB
/
README.win32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Get started on windows
Get and install
- MinGW : http://sourceforge.net/projects/mingw/files/latest/download?source=files
- CMake : http://www.cmake.org/cmake/resources/software.html
- OpenCV : http://sourceforge.net/projects/opencvlibrary/files/opencv-win/
- GIT : e.g. http://code.google.com/p/msysgit/
- PSEyeDriver : http://codelaboratories.com/get/cl-eye-driver/
[optional]
- CLEyeSDK : http://codelaboratories.com/get/cl-eye-sdk/
1. build and configure OpenCV with cmake
:: you may skip to build OpenCV on your own, however i had no luck
:: the binary distribution did not work on my system
cd <where you extracted opencv>
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
mingw32-make
:: now go for a coffe-break
2. Get you clone of the psmoveapi
git clone https://github.com/thp/psmoveapi.git
cd psmoveapi
4. Init and update the submodules
git submodule init
git submodule update
5. make OpenCV known to your system and the cmake toolchain
set OpenCV_DIR=<the path where you extracted opencv>
set PATH=%PATH%;%OpenCV_DIR%\build\bin
You can also build opencv in a folder "opencv" inside the
source directory (opencv/build/install) and then use the
CMake option "PSMOVE_USE_LOCAL_OPENCV" to link against
OpenCV statically from this checkout / build directory.
7. prepare a new build with cmake for the psmoveapi
mkdir build
cd build
:: only with OpenCV Camera access
cmake .. -G "MinGW Makefiles"
:: additionally with Code Laboratories PS Eye SDK
cmake .. -G "MinGW Makefiles" -DPSMOVE_USE_CL_EYE_SDK=ON
8. finally build
mingw32-make
9. start one of the desired test applications