Skip to content

Errors with the visual studio project provided Windows 10 vs Community 2019 Version 16.6.3 #5

@andrejmz

Description

@andrejmz

Hi

Thank you for having provided the project.
The problem is I cant load the .sln file i have an error that says it can not find this file

tf-cpp-pose-estimation-master\lib\Deep Learning and Computer Vision libraries.prop.

Then when i try to remake the solution by adding file by file i have these errors:

1>------ Build started: Project: TensorTest, Configuration: Release x64 ------
1>PoseEstimationSimpleApp.cpp
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\string_coding.h(44,1): warning C4267: 'argument': conversion from 'size_t' to 'tensorflow::uint32', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\unsupported\Eigen\CXX11\src\Tensor\Tensor.h(76,1): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\unsupported\Eigen\CXX11\src\Tensor\TensorMap.h(31): message : see reference to class template instantiation 'Eigen::Tensor<T,1,1,int>' being compiled
1> with
1> [
1> T=float
1> ]
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\framework\tensor_types.h(105): message : see reference to class template instantiation 'Eigen::TensorMap<Eigen::Tensor<T,1,1,int>,16,Eigen::MakePointer>' being compiled
1> with
1> [
1> T=float
1> ]
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\framework\node_def_util.h(120,20): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\lib\core\arena.h(46,1): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(500,34): warning C4244: 'return': conversion from 'const tensorflow::int64' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(505,23): warning C4244: 'return': conversion from 'tensorflow::int64' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(541,28): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(550,28): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(7,21): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(7,21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(7,27): error C3646: 'points': unknown override specifier
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(7,27): error C2143: syntax error: missing ',' before '['
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(7,28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(8,3): error C2143: syntax error: missing ')' before ';'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(8,3): error C2059: syntax error: ')'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(8,3): error C2238: unexpected token(s) preceding ';'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(16,65): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(16,65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(16,35): error C2143: syntax error: missing ',' before '&'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,20): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,20): error C2143: syntax error: missing ';' before '('
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,48): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,48): error C2143: syntax error: missing ',' before '&'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(17,62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,31): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,31): error C2327: 'AffineTransform::Point2f': is not a type name, static, or enumerator
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,24): error C2065: 'Point2f': undeclared identifier
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,13): error C2923: 'std::vector': 'Point2f' is not a valid template type argument for parameter '_Ty'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,13): error C2976: 'std::vector': too few template arguments
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(412): message : see declaration of 'std::vector'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,74): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,74): error C2327: 'AffineTransform::Point2f': is not a type name, static, or enumerator
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,67): error C2065: 'Point2f': undeclared identifier
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,56): error C2923: 'std::vector': 'Point2f' is not a valid template type argument for parameter '_Ty'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(18,56): error C2976: 'std::vector': too few template arguments
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(412): message : see declaration of 'std::vector'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,31): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,31): error C2327: 'AffineTransform::Point2f': is not a type name, static, or enumerator
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,24): error C2065: 'Point2f': undeclared identifier
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,13): error C2923: 'std::vector': 'Point2f' is not a valid template type argument for parameter '_Ty'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,13): error C2976: 'std::vector': too few template arguments
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(412): message : see declaration of 'std::vector'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,73): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,73): error C2327: 'AffineTransform::Point2f': is not a type name, static, or enumerator
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,66): error C2065: 'Point2f': undeclared identifier
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,55): error C2923: 'std::vector': 'Point2f' is not a valid template type argument for parameter '_Ty'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(19,55): error C2976: 'std::vector': too few template arguments
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(412): message : see declaration of 'std::vector'
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(21,10): error C2653: 'cv': is not a class or namespace name
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(21,19): error C3646: 'transform': unknown override specifier
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(21,19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(76,58): warning C4244: 'argument': conversion from 'double' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(76,93): warning C4244: 'argument': conversion from 'double' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(79,78): warning C4244: 'argument': conversion from 'double' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(79,43): warning C4244: 'argument': conversion from 'double' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(126,65): error C2664: 'AffineTransform::AffineTransform(AffineTransform &&)': cannot convert argument 1 from 'cv::Rect2f' to 'const AffineTransform::PointTriple &'
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(126,65): message : Reason: cannot convert from 'cv::Rect2f' to 'const AffineTransform::PointTriple'
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimationSimpleApp\PoseEstimationSimpleApp.cpp(126,39): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>C:\libSrc\bunchOfHeaders\AffineTransform.h(15,2): message : see declaration of 'AffineTransform::AffineTransform'
1>TensorMat.cpp
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(230,1): warning C4003: not enough arguments for function-like macro invocation 'max'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(229,1): error C2589: '(': illegal token on right side of '::'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(230,1): error C2062: type 'unknown-type' unexpected
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(230,1): error C2059: syntax error: ')'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(230,1): error C2143: syntax error: missing ';' before '{'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(231,1): warning C4003: not enough arguments for function-like macro invocation 'max'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(231,1): error C2589: '(': illegal token on right side of '::'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(231,1): error C2062: type 'unknown-type' unexpected
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(231,1): error C2059: syntax error: ')'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(231,1): error C2143: syntax error: missing ';' before '{'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(232,1): warning C4003: not enough arguments for function-like macro invocation 'max'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(232,1): error C2589: '(': illegal token on right side of '::'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(232,1): error C2062: type 'unknown-type' unexpected
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(232,1): error C2059: syntax error: ')'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(232,1): error C2143: syntax error: missing ';' before '{'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(233,1): warning C4003: not enough arguments for function-like macro invocation 'max'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(233,1): error C2589: '(': illegal token on right side of '::'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(233,1): error C2062: type 'unknown-type' unexpected
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(233,1): error C2059: syntax error: ')'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(233,1): error C2143: syntax error: missing ';' before '{'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(234,1): warning C4003: not enough arguments for function-like macro invocation 'max'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(234,1): error C2589: '(': illegal token on right side of '::'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(234,1): error C2062: type 'unknown-type' unexpected
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(234,1): error C2059: syntax error: ')'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(234,1): error C2143: syntax error: missing ';' before '{'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(235,1): warning C4003: not enough arguments for function-like macro invocation 'max'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(235,1): error C2589: '(': illegal token on right side of '::'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(235,1): error C2062: type 'unknown-type' unexpected
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(235,1): error C2059: syntax error: ')'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\logging.h(235,1): error C2143: syntax error: missing ';' before '{'
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\platform\default\string_coding.h(44,1): warning C4267: 'argument': conversion from 'size_t' to 'tensorflow::uint32', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\unsupported\Eigen\CXX11\src\Tensor\Tensor.h(76,1): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\unsupported\Eigen\CXX11\src\Tensor\TensorMap.h(31): message : see reference to class template instantiation 'Eigen::Tensor<T,1,1,int>' being compiled
1> with
1> [
1> T=float
1> ]
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\framework\tensor_types.h(105): message : see reference to class template instantiation 'Eigen::TensorMap<Eigen::Tensor<T,1,1,int>,16,Eigen::MakePointer>' being compiled
1> with
1> [
1> T=float
1> ]
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\framework\node_def_util.h(120,20): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\lib\core\arena.h(46,1): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(500,34): warning C4244: 'return': conversion from 'const tensorflow::int64' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(505,23): warning C4244: 'return': conversion from 'tensorflow::int64' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(541,28): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
1>C:\tensorflow_r1.10\tensorflow\r1.10\include\tensorflow\core\graph\graph.h(550,28): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimation\TensorMat.cpp(46,29): warning C4244: 'argument': conversion from 'const _Tp' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1> and
1> [
1> _Tp=float
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimation\TensorMat.cpp(46,16): warning C4244: 'argument': conversion from 'const _Tp' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1> and
1> [
1> _Tp=float
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimation\TensorMat.cpp(47,42): warning C4244: 'argument': conversion from 'const _Tp' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1> and
1> [
1> _Tp=float
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimation\TensorMat.cpp(47,23): warning C4244: 'argument': conversion from '_Tp' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1> and
1> [
1> _Tp=float
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimation\TensorMat.cpp(48,37): warning C4244: 'argument': conversion from '_Tp' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1> and
1> [
1> _Tp=float
1> ]
1>C:\Users\mz\Downloads\tf-cpp-pose-estimation-master\tf-cpp-pose-estimation-master\PoseEstimation\TensorMat.cpp(48,16): warning C4244: 'argument': conversion from 'const _Tp' to '_Tp', possible loss of data
1> with
1> [
1> _Tp=int
1> ]
1> and
1> [
1> _Tp=float
1> ]
1>Done building project "TensorTest.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Can you help ?

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions