-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation Error while running OpenCV 3.3.1 src code with MinGW and Cmake. #10272
Comments
Looks like compiler flags are misused:
Clear CMake cache (clear build directory) and try again. |
Ah, clearly my fault there, I see. But after making sure, it was correct, regenerating the project with Cmake and another compiling attempt, I am still stuck at the detection_base_tracker.cpp. |
|
Alright, so I redone it as you told me, but the error still occurs. Here is the log from the compilation attempt.
|
Try to run your MinGW compiler with this code:
|
I have a same issue please provide me some solution...... |
Alright, I just wanted to leave a note, that the problem got solved and I was able to successfully compile the source files into binaries, but I haven't tried to use them. Either way, this issue can be closed. When I installed MinGW for the first time, I selected under "Threads" the option "win32", as I thought this was the obvious choice. But to use OpenCV under Windows, you need to select "posix" instead of "win32" threads. This came to my mind while browsing through this thread. In conclusion, if you are not able to compile the source files at this very class/file (detection_based_tracker.cpp.obj), it is very likely due to this. So, if you are intending of using your own compiled version of OpenCV, I suggest you this: I understand, there are different options and ways, this is sole the way, I handled it. And I hope, it might help one or another C++ or OpenCV rookie. Cheers. |
This comment has been minimized.
This comment has been minimized.
seems to be....just unzip it....And add "bin" directory to the environment variable... |
Hi there,
I am trying to compile OpenCV for my systems with MinGW 7.2.0., configured as win32 and CMake 3.10. But since half a week I got this error and I tried a lot, googled a lot and now kinda at the wit's end. Most solutions are seem so simple, yet this specify problem got questioned very rarely and there is no real solution to it, which is why I am raising this issue.
Thanks in advance!
Here is the log from the compiling process:
And here is my Cmake File:
The text was updated successfully, but these errors were encountered: