forked from thp/psmoveapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.win32
62 lines (48 loc) · 2 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
51
52
53
54
55
56
57
58
59
60
61
62
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
4. Copy blue-tooth headers and library to your MinGW installation
:: e.g. MinGW installed at C:\MinGW\
:: e.g. your cloned repository is at D:\dev\psmoveapi
copy D:\dev\psmoveapi\external\mingw-w64-headers\*.h C:\MinGW\include
copy D:\dev\psmoveapi\external\mingw-w64-headers\*.a C:\MinGW\lib
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 manually specify the OpenCV libs in CMakeLists.txt, too:
list(APPEND PSMOVE_REQUIRED_LIBS
opencv_highgui242 opencv_core242 opencv_imgproc242)
include_directories(${PSMOVEAPI_SOURCE_DIR}/../opencv/include)
link_directories(${PSMOVEAPI_SOURCE_DIR}/../opencv/lib)
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