-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
openCV debug mode LNK2019 / LNK1120 error #12487
Comments
Well I can try it, but this changes my local repo to version dbfe6cc. Thus the version of the Point Cloud Library (PCL) that I also need for my project gets changed from 1.9.1-11 to 1.9.1-13 and this will break my code since not all features are included in the current PCL version. Is it possible to run two separate vcpkg versions in parallel one for PCL and the other for OpenCV to overcome this issue or is there a better solution? Thanks! |
Okay. Since I am not working with git on a daily basis can you explain this with a little bit more details please? I tried the following:
I am 100% sure that these are the wrong steps because I ended up with PCL 1.9.1-13 again... |
@jagrme00
Or you can wait for the PR merged into master and then try this again. |
@NancyLi1013 @jagrme00 to do it with less line:
|
@jagrme00 Thanks. |
@NancyLi1013 sorry for my delay. Currently I have some other topics which require more attention than this issue. Thanks for your help. |
My problems are solved now. The above mentioned approach #12487 (comment) is working for me. |
Thanks for your update. |
Hello,
I'm trying to build a x64-windows project in debug mode but I get the following two errors:
Error | LNK2019 | unresolved external symbol "void __cdecl cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" (?cvtColor@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@HH@Z) referenced in function "public: static void __cdecl IntensityToRGBConverter::WinterColormap(double,double *)" (?WinterColormap@IntensityToRGBConverter@@SAXNPEAN@Z) | AMADEUS | C:\MA_Repo\30_Code\85_Code_Gruenewald\01_RTMaps\MyRTMaps_SDK\AMADEUS.u\Intensity_To_RGB_Converter.obj | 1 |
Error | LNK1120 | 1 unresolved externals | AMADEUS | C:\MA_Repo\30_Code\85_Code_Gruenewald\01_RTMaps\MyRTMaps_SDK\packages\debug\AMADEUS.pck | 1 |
The build errors are disappearing when I switch to release mode.
I use vcpkg version f2e9ef7, with
opencv4:x64-windows 4.1.1-3 computer vision library
opencv4[dnn]:x64-windows Enable dnn module
opencv4[jpeg]:x64-windows JPEG support for opencv
opencv4[opengl]:x64-windows opengl support for opencv
opencv4[png]:x64-windows PNG support for opencv
opencv4[tiff]:x64-windows TIFF support for opencv
opencv4[webp]:x64-windows WebP support for opencv
opencv:x64-windows 4.1.1-1 Computer vision library
opencv[dnn]:x64-windows Enable dnn module
opencv[jpeg]:x64-windows JPEG support for opencv
opencv[opengl]:x64-windows opengl support for opencv
opencv[png]:x64-windows PNG support for opencv
opencv[tiff]:x64-windows TIFF support for opencv
opencv[webp]:x64-windows WebP support for opencv
Why is this happening?
Thanks in advance!
The text was updated successfully, but these errors were encountered: