编译错误 expected primary-expression before ‘>’ token
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.4k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I'm submitting a ... (check one with "x")
[ ] bug report
[ x ] help wanted
[ ] feature request
Current behavior
编译EasyPR, 使用OpenCv 3.4.1 和 OpenCv 3.2.0都出现了以下错误:
/home/xxx/EasyPR/include/easypr/config.h:143:42: error: expected primary-expression before ‘>’ token
model = ml::ANN_MLP::load<ml::ANN_MLP>(path);
OpenCv是按照如下命令编译的
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
Expected/desired behavior
Reproduction of the problem
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce.
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
-
System: Ubuntu 16.04
-
Compiler version/IDE: gcc 5.4.0
-
CMake version: 3.5.1
-
OpenCV version: [3.4.1 | 3.2.0 ]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at include/easypr/config.h line 143 and inspect the ml::ANN_MLP::load expression against the OpenCV 3.2.0 and 3.4.1 APIs. Reproduce the failure on Ubuntu 16.04 with GCC 5.4.0 using the reported CMake command. Done means EasyPR compiles successfully with the supported OpenCV version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, opencv
- Domain
- build-system, computer-vision
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100