-
Qt 5.5.1(qt-everywhere-opensource-src-5.5.1.zip)をダウンロードしてファイルを解凍する。(C:\qt-everywhere-opensource-src-5.5.1)
http://www.qt.io/download/ -
jom 1.1.0(jom_1_1_0.zip)をダウンロードしてファイルを解凍する。(C:\jom)
http://download.qt.io/official_releases/jom/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include <Windows.h> | |
#include <Kinect.h> | |
#include <opencv2/opencv.hpp> | |
template<class Interface> | |
inline void SafeRelease( Interface *& pInterfaceToRelease ) | |
{ | |
if( pInterfaceToRelease != NULL ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include <array> | |
#include <string> | |
// Disable Error C4996 that occur when using Boost.Signals2. | |
#ifdef _DEBUG | |
#define _SCL_SECURE_NO_WARNINGS | |
#endif | |
#include "kinect2_grabber.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CMake | |
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
# Solution | |
project(solution) | |
# Project | |
set(HEADER kinect2_grabber.h) | |
set(SOURCE main.cpp) | |
add_executable(project ${HEADER} ${SOURCE}) |
-
VTK 6.3.0(VTK-6.3.0.zip)をダウンロードしてファイルを解凍する。(C:\VTK-6.3.0) http://www.vtk.org/VTK/resources/software.html#latestcand
https://github.com/Kitware/VTK/tree/v6.3.0 -
以下の手順を参考にQt 5.5.1(qt-everywhere-opensource-src-5.5.1.zip)をビルドする。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sstream> | |
#include <Windows.h> | |
#include <Kinect.h> | |
#include <opencv2/opencv.hpp> | |
#include <atlbase.h> | |
// Error Check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- All Configurations|All Platforms --> | |
<ItemDefinitionGroup> | |
<ClCompile> | |
<OpenMPSupport>true</OpenMPSupport> | |
</ClCompile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check for the presence of AVX and figure out the flags to use for it. | |
macro(CHECK_FOR_AVX) | |
set(AVX_FLAGS) | |
include(CheckCXXSourceRuns) | |
set(CMAKE_REQUIRED_FLAGS) | |
# Check AVX | |
if(MSVC AND NOT MSVC_VERSION LESS 1600) | |
set(CMAKE_REQUIRED_FLAGS "/arch:AVX") |
- Visual Studio 2015
- Visual Studio 2013
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example CMakeLists.txt | |
# FindKInectSDK2.cmake copy to CMake\share\cmake-3.5\Modules or same directory as this file | |
cmake_minimum_required( VERSION 2.8 ) | |
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${CMAKE_MODULE_PATH} ) | |
project( solution ) | |
add_executable( project main.cpp ) | |
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" ) |