Skip to content

opencv3.2 编译报错解决 #152

@jjz

Description

@jjz

expected '(' for function-style cast or type construction. (check one with "chars_identify.cpp")

[ 25%] Building CXX object CMakeFiles/easypr.dir/src/core/chars_identify.cpp.o
.../c/EasyPR/src/core/chars_identify.cpp:20:41: error: expected '(' for function-style cast or type construction
    ann_ = ml::ANN_MLP::load<ml::ANN_MLP>(kDefaultAnnPath);
                             ~~~~~~~~~~~^
.../c/EasyPR/src/core/chars_identify.cpp:21:48: error: expected '(' for function-style cast or type construction
    annChinese_ = ml::ANN_MLP::load<ml::ANN_MLP>(kChineseAnnPath);
                                    ~~~~~~~~~~~^
.../c/EasyPR/src/core/chars_identify.cpp:32:43: error: expected '(' for function-style cast or type construction
      ann_ = ml::ANN_MLP::load<ml::ANN_MLP>(path);
                               ~~~~~~~~~~~^
.../c/EasyPR/src/core/chars_identify.cpp:42:50: error: expected '(' for function-style cast or type construction
      annChinese_ = ml::ANN_MLP::load<ml::ANN_MLP>(path);
                                      ~~~~~~~~~~~^
4 errors generated.
make[2]: *** [CMakeFiles/easypr.dir/src/core/chars_identify.cpp.o] Error 1
make[1]: *** [CMakeFiles/easypr.dir/all] Error 2
make: *** [all] Error 2

Please tell us about your environment:

  • System: Macos

  • Compiler version/IDE: gcc4.2.1

  • CMake version: 3.7.1

  • OpenCV version: 3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions