Add vs2017 project demo
76
platforms/projects/vs2017/README.md
Normal file
|
@ -0,0 +1,76 @@
|
|||
# How to use MYNT® EYE SDK with Visual Studio 2017
|
||||
|
||||
This tutorial will create a project with Visual Studio 2017 to start using MYNT® EYE SDK.
|
||||
|
||||
## Preparation
|
||||
|
||||
Install the win pack of MYNT® EYE SDK.
|
||||
|
||||
## Create Project
|
||||
|
||||
Open Visual Studio 2017, then `File > New > Project`,
|
||||
|
||||
![](images/1_new_pro.png)
|
||||
|
||||
Select "Windows Console Application", set the project's name and location, click "OK",
|
||||
|
||||
![](images/2_new_pro.png)
|
||||
|
||||
Finally, you will see the new project like this,
|
||||
|
||||
![](images/3_new_pro.png)
|
||||
|
||||
## Config Properties
|
||||
|
||||
Right click the project, and open its "Properties" window,
|
||||
|
||||
![](images/4_config.png)
|
||||
|
||||
Change "Configuration" to "All Configurations", then add the following paths to "Additional Include Directories",
|
||||
|
||||
```bash
|
||||
$(MYNTEYES_SDK_ROOT)\include
|
||||
$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\include
|
||||
```
|
||||
|
||||
![](images/5_config_include.png)
|
||||
|
||||
Add the following paths to "Additional Library Directories",
|
||||
|
||||
```bash
|
||||
$(MYNTEYES_SDK_ROOT)\lib
|
||||
$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\x64\vc15\lib
|
||||
```
|
||||
|
||||
![](images/6_config_lib_dir.png)
|
||||
|
||||
|
||||
Add the following libs to "Additional Dependencies",
|
||||
|
||||
```bash
|
||||
mynteye.lib
|
||||
opencv_world343.lib
|
||||
```
|
||||
|
||||
![](images/7_config_lib.png)
|
||||
|
||||
If you wanna debug, could change "Configuration" to "Debug" and add these debug libs,
|
||||
|
||||
```bash
|
||||
mynteyed.lib
|
||||
opencv_world343d.lib
|
||||
```
|
||||
|
||||
![](images/8_config_debug_lib.png)
|
||||
|
||||
## Start using SDK
|
||||
|
||||
Include the headers of SDK and start using its APIs,
|
||||
|
||||
![](images/9_run_x64.png)
|
||||
|
||||
Select "Release x64" or "Debug x64" to run the project.
|
||||
|
||||
<!--
|
||||
![](images/10_path.png)
|
||||
-->
|
BIN
platforms/projects/vs2017/images/10_path.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
platforms/projects/vs2017/images/1_new_pro.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
platforms/projects/vs2017/images/2_new_pro.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
platforms/projects/vs2017/images/3_new_pro.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
platforms/projects/vs2017/images/4_config.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
platforms/projects/vs2017/images/5_config_include.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
platforms/projects/vs2017/images/6_config_lib_dir.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
platforms/projects/vs2017/images/7_config_lib.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
platforms/projects/vs2017/images/8_config_debug_lib.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
platforms/projects/vs2017/images/9_run_x64.png
Normal file
After Width: | Height: | Size: 60 KiB |
4
platforms/projects/vs2017/mynteyes_demo/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
/.vs/
|
||||
/x64/
|
||||
/mynteyes_demo/x64/
|
||||
/mynteyes_demo/*.user
|
31
platforms/projects/vs2017/mynteyes_demo/mynteyes_demo.sln
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.27703.2018
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mynteyes_demo", "mynteyes_demo\mynteyes_demo.vcxproj", "{49798F84-3EA3-4CB5-A873-6163DB4B4A43}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Debug|x64.Build.0 = Debug|x64
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Debug|x86.Build.0 = Debug|Win32
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Release|x64.ActiveCfg = Release|x64
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Release|x64.Build.0 = Release|x64
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Release|x86.ActiveCfg = Release|Win32
|
||||
{49798F84-3EA3-4CB5-A873-6163DB4B4A43}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F6C50224-4EC6-46EB-AA63-7E32FC6F0648}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,177 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{49798F84-3EA3-4CB5-A873-6163DB4B4A43}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>mynteyesdemo</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\include;$(MYNTEYES_SDK_ROOT)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\x64\vc15\lib;$(MYNTEYES_SDK_ROOT)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>mynteyed.lib;opencv_world343d.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\include;$(MYNTEYES_SDK_ROOT)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\x64\vc15\lib;$(MYNTEYES_SDK_ROOT)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>mynteyed.lib;opencv_world343d.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\include;$(MYNTEYES_SDK_ROOT)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\x64\vc15\lib;$(MYNTEYES_SDK_ROOT)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>mynteye.lib;opencv_world343.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\include;$(MYNTEYES_SDK_ROOT)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>$(MYNTEYES_SDK_ROOT)\3rdparty\opencv\build\x64\vc15\lib;$(MYNTEYES_SDK_ROOT)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>mynteye.lib;opencv_world343.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="stdafx.h" />
|
||||
<ClInclude Include="targetver.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="mynteyes_demo.cpp" />
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="stdafx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="targetver.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="mynteyes_demo.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
BIN
platforms/projects/vs2017/mynteyes_demo/mynteyes_demo/stdafx.cpp
Normal file
BIN
platforms/projects/vs2017/mynteyes_demo/mynteyes_demo/stdafx.h
Normal file
|
@ -0,0 +1,176 @@
|
|||
# MYNT® EYE SDK
|
||||
|
||||
################################################################################
|
||||
Language: 简体中文
|
||||
################################################################################
|
||||
|
||||
## 如何开始使用 SDK
|
||||
|
||||
1) 运行样例程序
|
||||
|
||||
安装完 SDK 的 exe 安装包后,桌面会生成 SDK 根目录的快捷方式。
|
||||
|
||||
进入 "<SDK_ROOT_DIR>\bin\samples\tutorials" 目录,双击 "get_stereo.exe" 运行,即可看到双目实时画面。
|
||||
|
||||
2)生成样例工程
|
||||
|
||||
首先,安装好 Visual Studio 2017 <https://visualstudio.microsoft.com/> 和 CMake <https://cmake.org/> 。
|
||||
|
||||
接着,进入 "<SDK_ROOT_DIR>\bin\samples" 目录, 双击 "generate.bat" 即可生成样例工程。
|
||||
|
||||
p.s. 样例教程,可见 https://slightech.github.io/MYNT-EYE-SDK-2/ 主页给出的 Guide 文档。
|
||||
|
||||
p.p.s. 运行结果,参考下方英文内容。
|
||||
|
||||
3)如何于 Visual Studio 2017 下使用 SDK
|
||||
|
||||
进入 "<SDK_ROOT_DIR>\projects\vs2017" ,见 "README.md" 说明。
|
||||
|
||||
################################################################################
|
||||
Language: English
|
||||
################################################################################
|
||||
|
||||
## How to start using SDK
|
||||
|
||||
1) Run the prebuilt samples, ensure the SDK works well.
|
||||
|
||||
After you install the win pack of SDK, there will be a shortcut to the SDK root directory on your desktop.
|
||||
|
||||
First, you should plug the MYNT® EYE camera in a USB 3.0 port.
|
||||
|
||||
Second, goto the "<SDK_ROOT_DIR>\bin\samples\tutorials" directory and click "get_stereo.exe" to run.
|
||||
|
||||
Finally, you will see the window that display the realtime frame of the camera.
|
||||
|
||||
2) Generate samples project of Visual Studio 2017.
|
||||
|
||||
First, you should install Visual Studio 2017 <https://visualstudio.microsoft.com/> and CMake <https://cmake.org/>.
|
||||
|
||||
Second, goto the "<SDK_ROOT_DIR>\bin\samples" directory and click "generate.bat" to run.
|
||||
|
||||
Finally, you could click `_build\mynteye_samples.sln` to open the samples project.
|
||||
|
||||
p.s. The tutorials of samples are here: https://slightech.github.io/MYNT-EYE-SDK-2-Guide/src/data/contents.html.
|
||||
|
||||
p.p.s. The example result of "generate.bat",
|
||||
|
||||
```cmd
|
||||
-- The C compiler identification is MSVC 19.14.26429.4
|
||||
-- The CXX compiler identification is MSVC 19.14.26429.4
|
||||
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe
|
||||
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works
|
||||
-- Detecting C compiler ABI info
|
||||
-- Detecting C compiler ABI info - done
|
||||
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe
|
||||
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works
|
||||
-- Detecting CXX compiler ABI info
|
||||
-- Detecting CXX compiler ABI info - done
|
||||
-- Detecting CXX compile features
|
||||
-- Detecting CXX compile features - done
|
||||
-- HOST_ARCH: x86_64
|
||||
-- OpenCV ARCH: x64
|
||||
-- OpenCV RUNTIME: vc15
|
||||
-- OpenCV STATIC: OFF
|
||||
-- Found OpenCV: C:/Users/John/AppData/Roaming/Slightech/MYNTEYES/SDK/2.2.1/3rdparty/opencv/build (found version "3.4.3")
|
||||
-- Found OpenCV 3.4.3 in C:/Users/John/AppData/Roaming/Slightech/MYNTEYES/SDK/2.2.1/3rdparty/opencv/build/x64/vc15/lib
|
||||
-- You might need to add C:\Users\John\AppData\Roaming\Slightech\MYNTEYES\SDK\2.2.1\3rdparty\opencv\build\x64\vc15\bin to your PATH to be able to run your applications.
|
||||
-- Found OpenCV: 3.4.3
|
||||
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
|
||||
Imported targets and dependency information not available for Boost version
|
||||
(all versions older than 1.33)
|
||||
Call Stack (most recent call first):
|
||||
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
|
||||
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
|
||||
C:/Users/John/AppData/Roaming/Slightech/MYNTEYES/SDK/2.2.1/cmake/Option.cmake:47 (find_package)
|
||||
CMakeLists.txt:26 (include)
|
||||
|
||||
|
||||
-- Could NOT find Boost
|
||||
--
|
||||
-- Platform:
|
||||
-- HOST_OS: Win
|
||||
-- HOST_NAME: Win
|
||||
-- HOST_ARCH: x86_64
|
||||
-- HOST_COMPILER: MSVC
|
||||
-- COMPILER_VERSION: 19.14.26429.4
|
||||
-- COMPILER_VERSION_MAJOR: 19
|
||||
-- COMPILER_VERSION_MINOR: 14
|
||||
-- COMPILER_VERSION_PATCH: 26429
|
||||
-- COMPILER_VERSION_TWEAK: 4
|
||||
-- CUDA_VERSION: 9.2
|
||||
-- CUDA_VERSION_MAJOR: 9
|
||||
-- CUDA_VERSION_MINOR: 2
|
||||
-- CUDA_VERSION_STRING: 9.2
|
||||
-- OpenCV_VERSION: 3.4.3
|
||||
-- OpenCV_VERSION_MAJOR: 3
|
||||
-- OpenCV_VERSION_MINOR: 4
|
||||
-- OpenCV_VERSION_PATCH: 3
|
||||
-- OpenCV_VERSION_TWEAK: 0
|
||||
-- OpenCV_VERSION_STATUS:
|
||||
-- OpenCV_WITH_WORLD: TRUE
|
||||
--
|
||||
-- Options:
|
||||
-- WITH_API: ON
|
||||
-- OpenCV: YES
|
||||
-- OpenCV_VERSION: 3.4.3
|
||||
-- OpenCV_WORLD: YES
|
||||
-- WITH_DEVICE_INFO_REQUIRED: ON
|
||||
-- WITH_BOOST: ON
|
||||
-- Boost: NO
|
||||
-- WITH_GLOG: OFF
|
||||
--
|
||||
-- Features:
|
||||
-- Filesystem: native
|
||||
--
|
||||
-- Visual Studio >= 2010, MSVC >= 10.0
|
||||
-- C_FLAGS: /DWIN32 /D_WINDOWS /W3 -Wall -march=native
|
||||
-- CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc -Wall -march=native
|
||||
-- Found mynteye: 2.2.1
|
||||
-- Generating camera_a.bat
|
||||
-- Generating get_depth_with_region.bat
|
||||
-- Generating camera_d.bat
|
||||
-- Generating camera_u.bat
|
||||
CMake Warning at tutorials/CMakeLists.txt:70 (find_package):
|
||||
By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has
|
||||
asked CMake to find a package configuration file provided by "PCL", but
|
||||
CMake did not find one.
|
||||
|
||||
Could not find a package configuration file provided by "PCL" with any of
|
||||
the following names:
|
||||
|
||||
PCLConfig.cmake
|
||||
pcl-config.cmake
|
||||
|
||||
Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR"
|
||||
to a directory containing one of the above files. If "PCL" provides a
|
||||
separate development package or SDK, be sure it has been installed.
|
||||
|
||||
|
||||
CMake Warning at tutorials/CMakeLists.txt:86 (message):
|
||||
PCL not found :(
|
||||
|
||||
|
||||
-- Generating get_device_info.bat
|
||||
-- Generating get_img_params.bat
|
||||
-- Generating get_imu_params.bat
|
||||
-- Generating get_stereo.bat
|
||||
-- Generating get_stereo_rectified.bat
|
||||
-- Generating get_disparity.bat
|
||||
-- Generating get_depth.bat
|
||||
-- Generating get_imu.bat
|
||||
-- Generating get_from_callbacks.bat
|
||||
-- Generating get_with_plugin.bat
|
||||
-- Generating ctrl_framerate.bat
|
||||
-- Generating ctrl_auto_exposure.bat
|
||||
-- Generating ctrl_manual_exposure.bat
|
||||
-- Generating ctrl_infrared.bat
|
||||
-- Generating get_all_device_info.bat
|
||||
-- Configuring done
|
||||
-- Generating done
|
||||
-- Build files have been written to: C:/Users/John/AppData/Roaming/Slightech/MYNTEYES/SDK/2.2.1/samples/_build
|
||||
Press any key to continue . . .
|
||||
```
|
||||
|
||||
3) Start using MYNT® EYE SDK with Visual Studio 2017
|
||||
|
||||
Goto the "<SDK_ROOT_DIR>\projects\vs2017", see the "README.md".
|
|
@ -106,6 +106,8 @@ mv "$ROOT_DIR/tools" "$ROOT_DIR/_install/tools"
|
|||
# platforms/win
|
||||
mv "$ROOT_DIR/platforms/win/README.txt" "$ROOT_DIR/_install"
|
||||
|
||||
mv "$ROOT_DIR/platforms/projects" "$ROOT_DIR/_install/projects"
|
||||
|
||||
################################################################################
|
||||
# copy to _install
|
||||
|
||||
|
@ -152,6 +154,8 @@ mv "$ROOT_DIR/3rdparty/linter" "$ROOT_DIR/tools/linter"
|
|||
# platforms/win
|
||||
mv "$ROOT_DIR/_install/README.txt" "$ROOT_DIR/platforms/win"
|
||||
|
||||
mv "$ROOT_DIR/_install/projects" "$ROOT_DIR/platforms/projects"
|
||||
|
||||
################################################################################
|
||||
# clean build
|
||||
|
||||
|
|