Visual C++ Cross platform build failure - c++

I just installed VS Community 2015 and after creating a OpenGLES application (Android/iOS) and building it, I've got an error message
1>------ Build started: Project: OpenGLESApp2.Android.Packaging, Configuration: Debug ARM ------
1> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1> ANT_HOME=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\
1> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25
1> java.home=C:\Program Files (x86)\Java\jre1.8.0_91
1> NDK_ROOT=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c\
1> ANDROID_NDK_HOME=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r11c\
1> The system cannot find the path specified.
1>C:\Program Files (x86)\MSBuild\Microsoft\MDD\Android\V140\Android.Common.targets(378,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\\bin\ant.bat" debug -Dout.final.file="C:\Users\Me\documents\visual studio 2015\Projects\OpenGLESApp2\OpenGLESApp2\OpenGLESApp2.Android.Packaging\ARM\Debug\OpenGLESApp2.apk"" exited with code 3.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
Also I noticed that there is no bin folder in "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\
How can I get rid of this error?

Related

Why does it go wrong when compiling openCV3.2 with Visual Studio 2017?

I want to add opencv and openCV contrib module, therefore I download the opencv_contrib repo . Then Configure with with VS2017-64it ,add OPENCV_EXTRA_MODUlES_PATH on CMAKE when it ask and CMake it. Then open project using administrator privileges. Then build the install and come up against problems. VS shows a windows saying 'Microsoft (R) C/C + + Optimizing Compiler has stopped working'. And the error lists is:
error C1903 Can not recover from the previous error;Stopping compilation (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674
error MSB6006 'cmd.exe'exited,The code is 1。 opencv_core C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171
...
error MSB6006 'cmd.exe'exited,The code is 1。 opencv_test_cudev C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171
error MSB3073 command'setlocal
'D:\Program Files\CMake\bin\cmake.exe' -DBUILD_TYPE=Debug -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd'exited,The code is 1。 INSTALL C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 133
error C2610 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535
...
error C2535 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': The member function has been defined or declared (Compile the source file D:\opencv3.2\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674
error C1903 Can not recover from the previous error;Stopping compilation (Compile the source file D:\opencv3.2\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674
error C2610 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535
error C2610 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &&)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536
error C2535 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': The member function has been defined or declared (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674
error C2610 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535
error C2610 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &&)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536
error C2535 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': The member function has been defined or declared (Compile the source file D:\opencv3.2\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674
...
error C1903 Can not recover from the previous error;Stopping compilation (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674
error LNK1104 can not open file'..\..\lib\Debug\opencv_highgui330d.lib' opencv_annotation D:\opencv3.2\build\apps\annotation\LINK 1
...
error LNK1104 can not open file'..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_core D:\opencv3.2\build\modules\core\LINK 1
error D8040 An error occurred while creating a child process or communicating with a child process opencv_perf_cudaarithm D:\opencv3.2\build\modules\cudaarithm\cl 1
error LNK1104 can not open file'..\..\lib\Debug\opencv_cudaarithm330d.lib' opencv_test_cudaarithm D:\opencv3.2\build\modules\cudaarithm\LINK 1
...
error LNK1104 can not open file'..\..\lib\Debug\opencv_cudaoptflow330d.lib' opencv_test_cudaoptflow D:\opencv3.2\build\modules\cudaoptflow\LINK 1
error D8040 An error occurred while creating a child process or communicating with a child process opencv_perf_cudastereo D:\opencv3.2\build\modules\cudastereo\cl 1
error LNK1104 can not open file'..\..\lib\Debug\opencv_cudastereo330d.lib' opencv_test_cudastereo D:\opencv3.2\build\modules\cudastereo\LINK 1
error D8040 An error occurred while creating a child process or communicating with a child process opencv_perf_cudawarping D:\opencv3.2\build\modules\cudawarping\cl 1
error LNK1104 can not open file'..\..\lib\Debug\opencv_cudawarping330d.lib' opencv_test_cudawarping D:\opencv3.2\build\modules\cudawarping\LINK 1
...
error LNK1104 can not open file'..\..\..\..\lib\Debug\opencv_highgui330d.lib' opencv_waldboost_detector D:\opencv3.2\build\modules\xobjdetect\tools\waldboost_detector\LINK 1
error LNK1104 can not open file'..\..\lib\Debug\opencv_imgproc330d.lib' opencv_xphoto D:\opencv3.2\build\modules\xphoto\LINK 1
error LNK1104 can not open file'..\..\lib\Debug\opencv_xphoto330d.lib' opencv_perf_xphoto D:\opencv3.2\build\modules\xphoto\LINK 1
error LNK1104 can not open file'..\..\lib\Debug\opencv_xphoto330d.lib' opencv_test_xphoto D:\opencv3.2\build\modules\xphoto\LINK 1
The output is:
1>------ Has started all rebuilt: project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
1>CMake does not need to re-run because D:/opencv3.2/build/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/zlib/CMakeFiles/generate.stamp is up-to-date.
...
CMake does not need to re-run because D:/opencv3.2/build/apps/version/CMakeFiles/generate.stamp is up-to-date.
2>------ Has started all rebuilt: project: ippiw, Configuration: Debug x64 ------
3>------ Has started all rebuilt: project: opencv_core_SSE4_2, Configuration: Debug x64 ------
4>------ Has started all rebuilt: project: ittnotify, Configuration: Debug x64 ------
5>------ Has started all rebuilt: project: opencv_core_FP16, Configuration: Debug x64 ------
6>------ Has started all rebuilt: project: opencv_core_SSE4_1, Configuration: Debug x64 ------
7>------ Has started all rebuilt: project: opencv_core_AVX2, Configuration: Debug x64 ------
8>------ Has started all rebuilt: project: opencv_core_AVX, Configuration: Debug x64 ------
9>------ Has started all rebuilt: project: zlib, Configuration: Debug x64 ------
2>Building Custom Rule D:/opencv3.2/build/3rdparty/ippicv/ippiw_win/CMakeLists.txt
4>Building Custom Rule D:/opencv3.2/opencv-master/3rdparty/ittnotify/CMakeLists.txt
5>Building Custom Rule D:/opencv3.2/opencv-master/modules/core/CMakeLists.txt
6>Building Custom Rule D:/opencv3.2/opencv-master/modules/core/CMakeLists.txt
2>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/ippiw/CMakeFiles/generate.stamp is up-to-date.
7>Building Custom Rule D:/opencv3.2/opencv-master/modules/core/CMakeLists.txt
8>Building Custom Rule D:/opencv3.2/opencv-master/modules/core/CMakeLists.txt
4>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/ittnotify/CMakeFiles/generate.stamp is up-to-date.
5>CMake does not need to re-run because D:/opencv3.2/build/modules/core/CMakeFiles/generate.stamp is up-to-date.
9>Building Custom Rule D:/opencv3.2/opencv-master/3rdparty/zlib/CMakeLists.txt
6>CMake does not need to re-run because D:/opencv3.2/build/modules/core/CMakeFiles/generate.stamp is up-to-date.
7>CMake does not need to re-run because D:/opencv3.2/build/modules/core/CMakeFiles/generate.stamp is up-to-date.
8>CMake does not need to re-run because D:/opencv3.2/build/modules/core/CMakeFiles/generate.stamp is up-to-date.
9>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/zlib/CMakeFiles/generate.stamp is up-to-date.
5>convert.fp16.cpp
6>convert.sse4_1.cpp
3>Building Custom Rule D:/opencv3.2/opencv-master/modules/core/CMakeLists.txt
2>iw_core.c
...
4>jitprofiling.c
3>CMake does not need to re-run because D:/opencv3.2/build/modules/core/CMakeFiles/generate.stamp is up-to-date.
7>convert.avx2.cpp
7>mathfuncs_core.avx2.cpp
7>stat.avx2.cpp
9>adler32.c
...
2>iw_own.c
9>zlib.vcxproj -> D:\opencv3.2\build\3rdparty\lib\Debug\zlibd.lib
10>------ Has started all rebuilt: project: opencv_imgproc_AVX, Configuration: Debug x64 ------
10>Building Custom Rule D:/opencv3.2/opencv-master/modules/imgproc/CMakeLists.txt
10>CMake does not need to re-run because D:/opencv3.2/build/modules/imgproc/CMakeFiles/generate.stamp is up-to-date.
5>opencv_core_FP16.vcxproj -> D:\opencv3.2\build\modules\core\opencv_core_FP16.dir\Debug\opencv_core_FP16.lib
11>------ Has started all rebuilt: project: opencv_imgproc_AVX2, Configuration: Debug x64 ------
8>opencv_core_AVX.vcxproj -> D:\opencv3.2\build\modules\core\opencv_core_AVX.dir\Debug\opencv_core_AVX.lib
12>------ Has started all rebuilt: project: opencv_imgproc_SSE4_1, Configuration: Debug x64 ------
10>corner.avx.cpp
6>opencv_core_SSE4_1.vcxproj -> D:\opencv3.2\build\modules\core\opencv_core_SSE4_1.dir\Debug\opencv_core_SSE4_1.lib
13>------ Has started all rebuilt: project: libtiff, Configuration: Debug x64 ------
10>accum.avx.cpp
11>Building Custom Rule D:/opencv3.2/opencv-master/modules/imgproc/CMakeLists.txt
12>Building Custom Rule D:/opencv3.2/opencv-master/modules/imgproc/CMakeLists.txt
11>CMake does not need to re-run because D:/opencv3.2/build/modules/imgproc/CMakeFiles/generate.stamp is up-to-date.
12>CMake does not need to re-run because D:/opencv3.2/build/modules/imgproc/CMakeFiles/generate.stamp is up-to-date.
13>Building Custom Rule D:/opencv3.2/opencv-master/3rdparty/libtiff/CMakeLists.txt
13>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/libtiff/CMakeFiles/generate.stamp is up-to-date.
3>opencv_core_SSE4_2.vcxproj -> D:\opencv3.2\build\modules\core\opencv_core_SSE4_2.dir\Debug\opencv_core_SSE4_2.lib
14>------ Has started all rebuilt: project: IlmImf, Configuration: Debug x64 ------
11>filter.avx2.cpp
2>ippiw.vcxproj -> D:\opencv3.2\build\3rdparty\lib\Debug\ippiwd.lib
15>------ Has started all rebuilt: project: opencv_cudev, Configuration: Debug x64 ------
11>imgwarp.avx2.cpp
11>resize.avx2.cpp
12>imgwarp.sse4_1.cpp
11>undistort.avx2.cpp
12>resize.sse4_1.cpp
14>Building Custom Rule D:/opencv3.2/opencv-master/3rdparty/openexr/CMakeLists.txt
15>Building Custom Rule D:/opencv3.2/opencv-master/modules/cudev/CMakeLists.txt
13>tif_aux.c
13>tif_close.c
13>tif_codec.c
13>tif_color.c
13>tif_compress.c
13>tif_dir.c
13>tif_dirinfo.c
14>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/openexr/CMakeFiles/generate.stamp is up-to-date.
13>tif_dirread.c
15>CMake does not need to re-run because D:/opencv3.2/build/modules/cudev/CMakeFiles/generate.stamp is up-to-date.
15>stub.cpp
14>half.cpp
14>IexBaseExc.cpp
14>IexThrowErrnoExc.cpp
14>IlmThread.cpp
14>IlmThreadMutex.cpp
14>IlmThreadMutexWin32.cpp
14>IlmThreadPool.cpp
14>IlmThreadSemaphore.cpp
14>IlmThreadSemaphoreWin32.cpp
14>IlmThreadWin32.cpp
14>ImathColorAlgo.cpp
15> Creating library D:/opencv3.2/build/lib/Debug/opencv_cudev330d.lib 和对象 D:/opencv3.2/build/lib/Debug/opencv_cudev330d.exp
13>tif_dirwrite.c
13>tif_dumpmode.c
13>tif_error.c
13>tif_extension.c
13>tif_fax3.c
13>tif_fax3sm.c
13>tif_flush.c
13>tif_getimage.c
13>tif_jbig.c
15>opencv_cudev.vcxproj -> D:\opencv3.2\build\bin\Debug\opencv_cudev330d.dll
13>tif_jpeg_12.c
15>opencv_cudev.vcxproj -> D:/opencv3.2/build/bin/Debug/opencv_cudev330d.pdb (Full PDB)
16>------ Has started all rebuilt: project: libjasper, Configuration: Debug x64 ------
13>tif_jpeg.c
13>tif_luv.c
13>tif_lzma.c
16>Building Custom Rule D:/opencv3.2/opencv-master/3rdparty/libjasper/CMakeLists.txt
16>CMake does not need to re-run because D:/opencv3.2/build/3rdparty/libjasper/CMakeFiles/generate.stamp is up-to-date.
13>tif_lzw.c
13>tif_next.c
16>jas_cm.c
16>jas_debug.c
16>jas_getopt.c
16>jas_icc.c
16>jas_iccdata.c
16>jas_image.c
13>tif_ojpeg.c
13>tif_open.c
16>jas_init.c
16>jas_malloc.c
13>tif_packbits.c
13>tif_pixarlog.c
16>jas_seq.c
13>tif_predict.c
16>jas_stream.c
16>jas_string.c
13>tif_print.c
13>tif_read.c
16>jas_tmr.c
13>tif_strip.c
13>tif_swab.c
16>jas_tvp.c
16>jas_version.c
13>tif_thunder.c
16>jp2_cod.c
16>jp2_dec.c
13>tif_tile.c
16>jp2_enc.c
16>jpc_bs.c
16>jpc_cs.c
16>jpc_dec.c
16>jpc_enc.c
13>tif_version.c
13>tif_warning.c
16>jpc_math.c
13>tif_write.c
13>tif_zip.c
13>tif_win32.c
16>jpc_mct.c
16>jpc_mqcod.c
16>jpc_mqdec.c
16>jpc_mqenc.c
16>jpc_qmfb.c
16>jpc_t1cod.c
16>jpc_t1dec.c
16>jpc_t1enc.c
16>jpc_t2cod.c
16>jpc_t2dec.c
16>jpc_t2enc.c
16>jpc_tagtree.c
16>jpc_tsfb.c
16>jpc_util.c
13>tif_stream.cxx
14>ImathFun.cpp
14>ImathMatrixAlgo.cpp
14>ImathRandom.cpp
14>ImathVec.cpp
16>libjasper.vcxproj -> D:\opencv3.2\build\3rdparty\lib\Debug\libjasperd.lib
17>------ Has started all rebuilt: project: libjpeg, Configuration: Debug x64 ------
13>libtiff.vcxproj -> D:\opencv3.2\build\3rdparty\lib\Debug\libtiffd.lib
...
105>------ Has started all rebuilt: project: opencv_perf_optflow, Configuration: Debug x64 ------
104>Building Custom Rule D:/opencv3.2/opencv-master/modules/cudaobjdetect/CMakeLists.txt
104>CMake does not need to re-run because D:/opencv3.2/build/modules/cudaobjdetect/CMakeFiles/generate.stamp is up-to-date.
105>Building Custom Rule D:/opencv3.2/opencv_contrib-master/modules/optflow/CMakeLists.txt
104>opencv_perf_cudaobjdetect_pch.cpp
105>CMake does not need to re-run because D:/opencv3.2/build/modules/optflow/CMakeFiles/generate.stamp is up-to-date.
99>LINK : fatal error LNK1104: can not open file'..\..\lib\Debug\opencv_cudafeatures2d330d.lib'
98>LINK : fatal error LNK1104: can not open file'..\..\lib\Debug\opencv_cudacodec330d.lib'
105>opencv_perf_optflow_pch.cpp
99>Has completed the project'opencv_perf_cudafeatures2d.vcxproj'-failed。
98>Has completed the project'opencv_perf_cudacodec.vcxproj'-failed。
106>------ Has started all rebuilt: project: opencv_perf_objdetect, Configuration: Debug x64 ------
107>------ Has started all rebuilt: project: opencv_perf_line_descriptor, Configuration: Debug x64 ------
106>Building Custom Rule D:/opencv3.2/opencv-master/modules/objdetect/CMakeLists.txt
106>CMake does not need to re-run because D:/opencv3.2/build/modules/objdetect/CMakeFiles/generate.stamp is up-to-date.
107>Building Custom Rule D:/opencv3.2/opencv_contrib-master/modules/line_descriptor/CMakeLists.txt
107>CMake does not need to re-run because D:/opencv3.2/build/modules/line_descriptor/CMakeFiles/generate.stamp is up-to-date.
106>opencv_perf_objdetect_pch.cpp
107>opencv_perf_line_descriptor_pch.cpp
101>perf_bilateral_filter.cpp
101>perf_blend.cpp
101>perf_canny.cpp
101>perf_color.cpp
101>perf_corners.cpp
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(535): error C2610: 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)
101>D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp(57): note: See Instantiating a Class Template That Is Compiling 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>' recommend
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(536): error C2610: 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &&)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(674): error C2535: 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn> &)': The member function has been defined or declared (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(574): note: See also'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn>::operator ='statement (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(674): fatal error C1903: Can not recover from the previous error;Stopping compilation (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp)
101>'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x64\CL.exe'Internal compiler error
101> Please select Visual C ++
101>'Technical support' command on the 'Help' menu, or open the technical support help file for more information
101>perf_gftt.cpp
101>perf_histogram.cpp
101>perf_hough.cpp
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(535): error C2610: 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)
101>D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp(56): note: See Instantiating a Class Template That Is Compiling 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>' recommend
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(536): error C2610: 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &&)': Not a special member function that can be defaulted (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(674): error C2535: 'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': The member function has been defined or declared (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(574): note: See also'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator ='statement (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)
101>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple(674): fatal error C1903: Can not recover from the previous error;Stopping compilation (Compile the source file D:\opencv3.2\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp)
101>'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x64\CL.exe'Internal compiler error
101> Please select Visual C ++
101>'Technical support' command on the 'Help' menu, or open the technical support help file for more information
100>perf_filters.cpp
100>perf_main.cpp
102>perf_grayworld.cpp
102>perf_learning_based_color_balance.cpp
102>perf_main.cpp
103>augmented_unscented_kalman.cpp
103>feature.cpp
103>featureColorName.cpp
103>gtrTracker.cpp
103>gtrUtils.cpp
103>multiTracker.cpp
103>multiTracker_alt.cpp
103>onlineBoosting.cpp
103>onlineMIL.cpp
103>tldDataset.cpp
103>tldDetector.cpp
103>tldEnsembleClassifier.cpp
103>tldModel.cpp
103>tldTracker.cpp
103>tldUtils.cpp
103>D:\opencv3.2\opencv-master\modules\core\include\opencv2/core/types.hpp(1823): warning C4127: Conditional expressions are constants (Compile the source file D:\opencv3.2\opencv_contrib-master\modules\tracking\src\tldUtils.cpp)
103>D:\opencv3.2\opencv-master\modules\core\include\opencv2/core/types.hpp(1823): note: Consider switching 'if constexpr' 语句 (Compile the source file D:\opencv3.2\opencv_contrib-master\modules\tracking\src\tldUtils.cpp)
103>D:\opencv3.2\opencv-master\modules\core\include\opencv2/core/types.hpp(1821): note: Compile the class template member function 'double cv::Rect_<double>::area(void) const' 时 (Compile the source file D:\opencv3.2\opencv_contrib-master\modules\tracking\src\tldUtils.cpp)
103>D:\opencv3.2\opencv_contrib-master\modules\tracking\src\tldUtils.cpp(205): note: See alsoInstantiate the function template that is being compiled'double cv::Rect_<double>::area(void) const'recommend
103>tracker.cpp
103>trackerBoosting.cpp
103>trackerBoostingModel.cpp
103>trackerFeature.cpp
103>trackerFeatureSet.cpp
103>trackerKCF.cpp
103>trackerMIL.cpp
103>trackerMILModel.cpp
103>trackerMedianFlow.cpp
103>trackerModel.cpp
103>trackerSampler.cpp
102>LINK : fatal error LNK1104: can not open file'..\..\lib\Debug\opencv_xphoto330d.lib'
103>trackerSamplerAlgorithm.cpp
103>trackerStateEstimator.cpp
103>unscented_kalman.cpp
103>opencl_kernels_tracking.cpp
102>Has completed the project'opencv_perf_xphoto.vcxproj'-failed。
108>------ Has started all rebuilt: project: opencv_perf_reg, Configuration: Debug x64 ------
108>Building Custom Rule D:/opencv3.2/opencv_contrib-master/modules/reg/CMakeLists.txt
108>CMake does not need to re-run because D:/opencv3.2/build/modules/reg/CMakeFiles/generate.stamp is up-to-date.
108>opencv_perf_reg_pch.cpp
101>cl : Command Line error D8040: An error occurred while creating a child process or communicating with a child process
101>Has completed the project'opencv_perf_cudaimgproc.vcxproj'-failed。
109>------ Has started all rebuilt: project: opencv_perf_stereo, Configuration: Debug x64 ------
103>LINK : fatal error LNK1104: can not open file'..\..\lib\Debug\opencv_plot330d.lib'
109>Building Custom Rule D:/opencv3.2/opencv_contrib-master/modules/stereo/CMakeLists.txt
103>Has completed the project'opencv_tracking.vcxproj'-failed。
110>------ Has started all rebuilt: project: opencv_perf_imgproc, Configuration: Debug x64 ------
105>perf_dis_optflow.cpp
105>perf_deepflow.cpp
105>perf_disflow.cpp
104>perf_main.cpp
105>perf_main.cpp
105>perf_variational_refinement.cpp
109>CMake does not need to re-run because D:/opencv3.2/build/modules/stereo/CMakeFiles/generate.stamp is up-to-date.
104>perf_objdetect.cpp
107>perf_descriptors.cpp
107>perf_detection.cpp
107>perf_main.cpp
107>perf_matching.cpp
110>Building Custom Rule D:/opencv3.2/opencv-master/modules/imgproc/CMakeLists.txt
110>CMake does not need to re-run because D:/opencv3.2/build/modules/imgproc/CMakeFiles/generate.stamp is up-to-date.
109>opencv_perf_stereo_pch.cpp
110>opencv_perf_imgproc_pch.cpp
105>LINK : fatal error LNK1104: can not open file'..\..\lib\Debug\opencv_optflow330d.lib'
105>Has completed the project'opencv_perf_optflow.vcxproj'-failed。
...
166>------ Has started all rebuilt: project: INSTALL, Configuration: Debug x64 ------
166>-- Install configuration: 'Debug'
166>-- Up-to-date: D:/opencv3.2/build/install/include/opencv2/cvconfig.h
166>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
166>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErrorLevel
166>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /b %1
166>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDone
166>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
166>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd'exited,The code is 1。
166>Has completed the project'INSTALL.vcxproj'-failed。
========== All re-builded: success 26 ,fail 140 个,skip 0 ==========
Some similar errors have been omitted.
it is ok when compiling opencv3 without opencv-contrib.
then add opencv-contrib on OPENCV_EXTRA_MODULES_PATH using Cmake ,there is 6 projects failed while compiling

Build POCO C++ for WinCE: winbase.h related errors

I'm trying to build POCO 1.6.1 C++ libraries from Visual Studio 2008 Command Prompt (VS 9.0 Professional SP1 with Windows Embedded Compact 7 ATL Update) on Windows 7 Pro x64 using the provided buildwin.cmd like this:
buildwin 90 build static_mt both WinCE samples
However the build of the Foundation library (Foundation_CE_vs90.vcproj) fails due to several errors in C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h, apparently needed for the following files:
wce_winbase.c
wce_path.c
wce_directorymanagement.c
wce_clock.c
The file wce_rewind.c also seems to be somewhat buggy itself.
Something trivial is probably going on but I just can't find it out. Here's attached some relevant part of the output (the target Beckhoff_HMI_700 (x86) is a Windows Embedded Compact 7 device of my interest, whose SDK appears to be correctly configured on my machine - I can provide more detail about that if needed). Many thanks everybody.
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
########################################################################
####
#### STARTING VISUAL STUDIO BUILD (vs90, WinCE)
####
########################################################################
The following configurations will be built:
debug_static_mt
release_static_mt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++ Building [CppUnit_CE_vs90.vcproj]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: CppUnit, Configuration: debug_static_mt Beckhoff_HMI_700 (x86) ------
1>Compiling...
1>TextTestResult.cpp
1>TestSuite.cpp
1>TestRunner.cpp
1>TestResult.cpp
1>TestFailure.cpp
1>TestDecorator.cpp
1>TestCase.cpp
1>Generating Code...
1>Compiling...
1>CppUnitException.cpp
1>Creating library...
1>Build log was saved at "file://c:\poco-1.6.1\CppUnit\obj\Beckhoff_HMI_700 (x86)\debug_static_mt\BuildLog.htm"
1>CppUnit - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: CppUnit, Configuration: release_static_mt Beckhoff_HMI_700 (x86) ------
1>Compiling...
1>TextTestResult.cpp
1>TestSuite.cpp
1>TestRunner.cpp
1>TestResult.cpp
1>TestFailure.cpp
1>TestDecorator.cpp
1>TestCase.cpp
1>Generating Code...
1>Compiling...
1>CppUnitException.cpp
1>Creating library...
1>Build log was saved at "file://c:\poco-1.6.1\CppUnit\obj\Beckhoff_HMI_700 (x86)\release_static_mt\BuildLog.htm"
1>CppUnit - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
------------------------------------------------------------------------
------------------------------------------------------------------------
---- Done building [CppUnit_CE_vs90.vcproj]
------------------------------------------------------------------------
------------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++ Building [Foundation_CE_vs90.vcproj]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: Foundation, Configuration: debug_static_mt Beckhoff_HMI_700 (x86) ------
1>Compiling...
1>Base32Decoder.cpp
1>VarIterator.cpp
1>VarHolder.cpp
1>Var.cpp
1>Void.cpp
1>StringTokenizer.cpp
1>DirectoryIteratorStrategy.cpp
1>NumericString.cpp
1>String.cpp
1>SortedDirectoryIterator.cpp
1>RefCountedObject.cpp
1>NumberParser.cpp
1>NumberFormatter.cpp
1>NestedDiagnosticContext.cpp
1>MemoryPool.cpp
1>FPEnvironment.cpp
1>Format.cpp
1>Exception.cpp
1>Error.cpp
1>Environment.cpp
1>Generating Code...
1>Compiling...
1>Debugger.cpp
1>Checksum.cpp
1>ByteOrder.cpp
1>Bugcheck.cpp
1>AtomicCounter.cpp
1>Generating Code...
1>Compiling...
1>wce_winbase.c
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(238) : error C2016: C requires that a struct or union has at least one member
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(238) : error C2061: syntax error : identifier 'ULONG_PTR'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(239) : error C2061: syntax error : identifier 'InternalHigh'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(239) : error C2059: syntax error : ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(242) : error C2016: C requires that a struct or union has at least one member
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(242) : error C2061: syntax error : identifier 'DWORD'
[...]
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(418) : error C2061: syntax error : identifier 'VOID'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(418) : fatal error C1003: error count exceeds 100; stopping compilation
1>wce_unlink.c
1>wce_timesys.c
1>wce_time.c
1>wce_strerror.c
1>wce_stat.c
1>wce_setlocale.c
1>wce_rmdir.c
1>wce_rewind.c
1>.\wcelibcex-1.0\src\wce_rewind.c(64) : error C2143: syntax error : missing ')' before '*'
1>.\wcelibcex-1.0\src\wce_rewind.c(64) : error C2143: syntax error : missing '{' before '*'
1>.\wcelibcex-1.0\src\wce_rewind.c(64) : error C2059: syntax error : ')'
1>.\wcelibcex-1.0\src\wce_rewind.c(65) : error C2054: expected '(' to follow 'fp'
1>wce_rename.c
1>wce_path.c
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(238) : error C2016: C requires that a struct or union has at least one member
[...]
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(436) : fatal error C1003: error count exceeds 100; stopping compilation
1>wce_mktime.c
1>wce_mkdir.c
1>wce_localtime.c
1>wce_lfind.c
1>wce_gettimeofday.c
1>wce_getopt.c
1>wce_getenv.c
1>wce_findfile.c
1>wce_errno.c
1>Generating Code...
1>Compiling...
1>wce_directorymanagement.c
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(238) : error C2016: C requires that a struct or union has at least one member
[...]
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(418) : fatal error C1003: error count exceeds 100; stopping compilation
1>wce_ctime.c
1>wce_clock.c
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(238) : error C2016: C requires that a struct or union has at least one member
[...]
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(418) : fatal error C1003: error count exceeds 100; stopping compilation
1>wce_bsearch.c
1>wce_asctime.c
1>.\wcelibcex-1.0\src\wce_asctime.c(124) : warning C4013: 'sprintf' undefined; assuming extern returning int
1>wce_access.c
1>.\wcelibcex-1.0\src\wce_access.c(67) : error C2065: 'SFGAO_READONLY' : undeclared identifier
1>wce_abort.c
1>Generating Code...
1>Compiling...
1>HashStatistic.cpp
1>Hash.cpp
1>EventArgs.cpp
1>TaskNotification.cpp
1>TaskManager.cpp
[...]
1>pcre_exec.c
1>pcre_compile.c
1>Generating Code...
1>Compiling...
1>pcre_chartables.c
1>Generating Code...
1>Compiling...
1>RegularExpression.cpp
1>SharedLibrary.cpp
1>c:\poco-1.6.1\foundation\src\SharedLibrary_WIN32U.cpp(86) : error C3861: 'GetProcAddressW': identifier not found
1>Manifest.cpp
1>SHA1Engine.cpp
1>RandomStream.cpp
[...]
1>Generating Code...
1>Compiling...
1>zutil.c
1>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(720) : error C2059: syntax error : '('
1>.\src\zutil.c(147) : error C2072: '_errno' : initialization of a function
1>trees.c
1>inftrees.c
1>inflate.c
1>inffast.c
[...]
1>Base64Decoder.cpp
1>Base32Encoder.cpp
1>Generating Code...
1>Build log was saved at "file://c:\poco-1.6.1\Foundation\obj\Foundation\Beckhoff_HMI_700 (x86)\debug_static_mt\BuildLog.htm"
1>Foundation - 416 error(s), 1 warning(s)
2>------ Build started: Project: TestSuite, Configuration: debug_static_mt Beckhoff_HMI_700 (x86) ------
3>------ Build started: Project: TestApp, Configuration: debug_static_mt Beckhoff_HMI_700 (x86) ------
4>------ Build started: Project: TestLibrary, Configuration: debug_static_mt Beckhoff_HMI_700 (x86) ------
3>Compiling...
4>Compiling...
3>TestApp_WINCE.cpp
4>TestLibrary.cpp
2>Compiling...
2>AnyTest.cpp
2>VarTest.cpp
4>TestPlugin.cpp
4>Generating Code...
3>Linking...
4>Linking...
3>LINK : fatal error LNK1181: cannot open input file 'PocoFoundationmtd.lib'
4>LINK : fatal error LNK1181: cannot open input file 'PocoFoundationmtd.lib'
3>Build log was saved at "file://c:\poco-1.6.1\Foundation\testsuite\obj\TestApp\Beckhoff_HMI_700 (x86)\debug_static_mt\BuildLog.htm"
3>TestApp - 1 error(s), 0 warning(s)
4>Build log was saved at "file://c:\poco-1.6.1\Foundation\testsuite\obj\TestLibrary\Beckhoff_HMI_700 (x86)\debug_static_mt\BuildLog.htm"
4>TestLibrary - 1 error(s), 0 warning(s)
2>DynamicTestSuite.cpp
2>SimpleHashTableTest.cpp
2>LinearHashTableTest.cpp
2>HashTableTest.cpp
2>HashSetTest.cpp
1>inffast.c
[...]
2>ByteOrderTest.cpp
2>AutoReleasePoolTest.cpp
2>AutoPtrTest.cpp
2>ArrayTest.cpp
2>Generating Code...
2>Linking...
2>LINK : fatal error LNK1181: cannot open input file 'PocoFoundationmtd.lib'
2>Build log was saved at "file://c:\poco-1.6.1\Foundation\testsuite\obj\TestSuite\Beckhoff_HMI_700 (x86)\debug_static_mt\BuildLog.htm"
2>TestSuite - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXX BUILD FAILED. EXITING. XXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Something is off with either your SDK or the include paths you are using. A CE build should never use anything under C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\; these are headers of the desktop Windows SDK. The winbase.h used by your build should be from the device's SDK headers unter c:\Program Files (x86)\Windows CE Tools\SDKs\[platform name]\Include\[architecture]\.
You should check whether the desktop Windows SDK headers are somewhere in your include paths and remove them accordingly. Since CppUnit seems to be building correctly and assuming you can successfully build other software with the same device SDK, the first place to look for them would be in Foundation_CE_vs90.vcproj.
One possibility is that an include path exists for the Windows SDK 6.0A in the VC++ Directories.
In Visual Studio go to Tools>Options>Projects and Solutions> VC++ Directories
Select your device platform in the "Platform" drop-down box at the top
Select "Include files" in the "Show directories for" drop-down box.
If there is a path to the Windows 6.0A SDK or any other SDK remove it.
Add the path to the SDK for your device i.e.:C:\Program Files (x86)\Windows CE Tools\SDKs\[Your Platform SDK]\Include\[Your chip architecture]\
There may be some variation in the SDK directory as that is dependent on the SDK installer and your choices during install.
This may have happened if you installed or worked on a regular Windows SDK. That is what happened to me.
Also, there may be an issue with the library files as well. In step 3 above choose "Library files" and make matching changes.

Compile cat mario

When I compile the game by using Visual Studio 2010, it shows error LNK1104: cannot open file 'DxLib.lib'. I already follow the directX documentation for C++ to set up the this game compilation project.
Why it shows this error? What kind of stuffs I lacks and make it cannot compile?
Here is the download link.
https://www.dropbox.com/s/8v34imehmwvzsvv/cat%20mario.zip
Here are is the compiler output:
1>------ Build started: Project: cat mario, Configuration: Debug Win32 ------
1>Build started 12/5/2013 10:38:24 PM.
1>InitializeBuildStatus:
1> Touching "Debug\cat mario.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'DxLib.lib'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.17
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Seems like build path is not correct, or DxLib.lib is corrupted (not sure about this, though), or you're just missing this library. Try to compile with /LIBPATH:path_to_your_lib_folder.

Build issues with Visual Studio 11

I am building a simple program on VS 11 Professional beta edition.
#include <iostream>
int main(){
std::cout << "Hello World" << std::endl;
}
But I am getting RC errors.
1>------ Build started: Project: Stephen, Configuration: Debug Win32 ------
1>Build started 5/23/2012 8:31:30 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Stephen.unsuccessfulbuild".
1>ClCompile:
1> Source.cpp
1>RC : fatal error RC1106: invalid option: -ologo
1>
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.67
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If I just compile the source file alone (i.e., not building the project), it compiles. I googled on this error but didn't find much useful information. I have seen the compiler and linker properties. No, where -ologo option is seen. I amn't sure where this invalid option is coming from.
I have VS 2005, 2010 installed on my system. Does this has anything to do with this error ? Any help is aprreciated.
Go to project -> Properties -> Configuration Properties -> General. Change the platform toolset to the correct toolset you are using. Or just change Suppress Startup Banner to 'no'.
If you are migrating your sourcecode from 32-bit to 64-bit platform and you encounter this error during build, do the following:
Select your Project on the Solutions explorer.
From menu, select Project->Properties->Configuration Properties->VC++ Directories
On "Executable Directories", check if "$(WindowsSdkDir)\bin" exist -
Check first what is "WindowsSdkDir" by clicking the down arror->edit->click "Macros" button and see where it is pointing...
Usually it is in "C:\Program Files (x86)\Windows Kits\8.1\bin"
Check if there are executable files under "C:\Program Files (x86)\Windows Kits\8.1\bin"
If none, then there could be folders under "C:\Program Files (x86)\Windows Kits\8.1\bin"
Go to "C:\Program Files (x86)\Windows Kits\8.1\bin\x86" and check if "RC.exe" exist
If "RC.exe" exist then go back to Step 1, Step 2.
On "Executable Directories", change "$(WindowsSdkDir)\bin" to "$(WindowsSdkDir)\bin\x86"
Click "Apply" then "Ok" button.
Rebuild your project and that should solve your problem.

C++ Compilation Problems with Microsoft Visual Studios 2010 Beta 1

Well, I just got the new MSVS 2010 Beta 1, and just like with 2008 express, I just can't figure out how to compile anything, not even a simple hello world program. Anyone have any pointers? I usually just get a blanket fail message. No real information.
Edit: Sorry about that
#include <iostream>
using namespace std;
main()
{
cout << "hello world";
return 0;
}
I go to build and I get:
1>------ Build started: Project: forkicks, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\forkicks.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\Randy\Documents\Visual Studio 2008\Projects\forkicks\forkicks\Debug\BuildLog.htm"
1>forkicks - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
That is 2008
1>------ Build started: Project: For Kicks, Configuration: Debug Win32 ------
1>Build started 7/22/2009 9:36:39 PM.
1>_PrepareForBuild:
1> Creating directory "Debug\".
1> Creating "Debug\lastbuild.timestamp" because "AlwaysCreate" was specified.
1>ClCompile:
1> main.cpp
1>c:\users\randy\documents\visual studio 10\projects\for kicks\main.cpp(5): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.63
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
is 2010. I create a win32 project, name it, etc. Right click on source file, add a C++ file with no headers or anything. Just a blank document.
New 2010:
1>------ Build started: Project: hoyeah, Configuration: Debug Win32 ------
1>Build started 7/22/2009 10:03:35 PM.
1>_PrepareForBuild:
1> Creating directory "Debug\".
1> Creating "Debug\lastbuild.timestamp" because "AlwaysCreate" was specified.
1>PrepareForBuild:
1> Creating directory "C:\Users\Randy\Desktop\C++ Programs\hoyeah\Debug\".
1>ClCompile:
1> test.cpp
1>ManifestResourceCompile:
1> Microsoft (R) Windows (R) Resource Compiler Version 6.1.7000.0
1>
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain#16 referenced in function ___tmainCRTStartup
1>C:\Users\Randy\Desktop\C++ Programs\hoyeah\Debug\hoyeah.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.25
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Edit #2. How exactly would I go about changing it to multibyte?
That's a well known problem with VS10 Beta. You need to change the default encoding to Multibyte from Unicode to make it work.
int main() maybe ?
Try also changing the destination of the project to something simpler and not that long since I believe I also had the same error when the destination was too long.
Also did you choose a console application when creating the project?
If that didn't help, google gave this as possible answers too :
"You could try going to your
project's Properties > Configuration
Properties > Manifest Tool > Input
and Output, and set your "Embed
Manifest" option to "No"."
"I had a similar problem like this a
few months ago and I solved it by
going to project -> properties ->
Configuration Properties -> General
-> Character set. Under character set I changed it to Use Multi-Byte
Character Set and then my compliment
issue went away."
Edit:
In regard to the latest error link here directly from microsoft. I'm afraid that from this point on it's google time as I'm all out of ideas if it doesn't work.
The link says : "As a workaround for Beta1 you can change the entry point to use "wmain" instead of "main" or change the character set of your project to use "Multi-Byte Character Set""
Easiest would be to just change the name of main to wmain then.
Ok, I got it to compile using a win32 console ap, changing to Multibyte, and using the following code:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
Now to try to figure something else out. I'm not used to VS so...
Thanks everyone.