Skip to content
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

which opencv version to use? #25

Open
khcf123 opened this issue Dec 19, 2021 · 2 comments
Open

which opencv version to use? #25

khcf123 opened this issue Dec 19, 2021 · 2 comments

Comments

@khcf123
Copy link

khcf123 commented Dec 19, 2021

I am currently using opencv version 4.5.4 to compile this project. It turns out giving me these errors:

ndarray_converter.obj : error LNK2001: unresolved external symbol "public: void __cdecl cv::Mat::copyTo(class cv::debug_build_guard::_OutputArray const &)const " (?copyTo@Mat@cv@@QEBAXAEBV_OutputArray@debug_build_guard@2@@z) [C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\temp.win-amd64-3.10\Release\Engine.vcxproj]
Blend2DGUI.obj : error LNK2001: unresolved external symbol "public: class cv::Mat & __cdecl cv::Mat::setTo(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_InputArray const &)" (?setTo@Mat@cv@@QEAAAEAV12@AEBV_InputArray@debug_build_guard@2@0@Z) [C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\temp.win-amd64-3.10\Release\Engine.vcxproj]
Blend2DGUI.obj : error LNK2001: unresolved external symbol "bool __cdecl cv::imencode(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class cv::debug_build_guard::_InputArray const &,class std::vector<unsigned char,class std::allocator > &,class std::vector<int,class std::allocator > const &)" (?imencode@cv@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@AEBV_InputArray@debug_build_guard@1@AEAV?$vector@EV?$allocator@E@std@@@3@AEBV?$vector@HV?$allocator@H@std@@@3@@z) [C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\temp.win-amd64-3.10\Release\Engine.vcxproj]
Blend2DGUI.obj : error LNK2001: unresolved external symbol "class cv::Mat __cdecl cv::imdecode(class cv::debug_build_guard::_InputArray const &,int)" (?imdecode@cv@@ya?AVMat@1@AEBV_InputArray@debug_build_guard@1@H@Z) [C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\temp.win-amd64-3.10\Release\Engine.vcxproj]
Blend2DGUI.obj : error LNK2001: unresolved external symbol "void __cdecl cv::inRange(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &)" (?inRange@cv@@YAXAEBV_InputArray@debug_build_guard@1@00AEBV_OutputArray@31@@z) [C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\temp.win-amd64-3.10\Release\Engine.vcxproj]
C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\lib.win-amd64-3.10\DeepRTS\Engine.cp310-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals [C:\Users\alexa\AppData\Local\Temp\pip-req-build-z8212hxv\build\temp.win-amd64-3.10\Release\Engine.vcxproj]

What to do to solve these issues? Thanks!!

@perara
Copy link
Member

perara commented Dec 20, 2021

Hi there!
I've have just kept to the latest one, but I can see that I've commented out the OpenCV installation through pmm so the linking might bug out on Windows.
If you remove the comment on OpenCV in CMakeLists.txt#L88 that might solve this issue.

If this does not help, I suppose the linking is not working properly on windows..

It should also be noted that I have not gotten the time to ensure that this compiles on Windows as I currently only have Linux environments, but I hope to be able to do a roundup on adding Windows (and IOS) support later next year (sorry!).

@khcf123
Copy link
Author

khcf123 commented Dec 25, 2021

I already remove the comment on OpenCV in CMakeLists.txt#L88, but still cannot solve this issue. I am compiling on windows 10.

Anymore advice, thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants