andrewssobral / bgslibrary

A C++ Background Subtraction Library with wrappers for Python, MATLAB, Java and GUI on QT
MIT License
2.2k stars 740 forks source link

unresolved error #196

Open SabraHashemi opened 3 years ago

SabraHashemi commented 3 years ago

i want to change code of an algorithm so i need to add it to my visual not build it by placinf src directory it errors for 17 mouduls

Severity Code Description Project Path File Line Source Suppression State Error LNK2001 unresolved external symbol "public: __cdecl bgslibrary::algorithms::SuBSENSE::SuBSENSE(void)" (??0SuBSENSE@algorithms@bgslibrary@@QEAA@XZ) MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS\Source.obj 1 Build

Severity Code Description Project Path File Line Source Suppression State Error LNK2001 unresolved external symbol "public: __cdecl bgslibrary::algorithms::AdaptiveSelectiveBackgroundLearning::AdaptiveSelectiveBackgroundLearning(void)" (??0AdaptiveSelectiveBackgroundLearning@algorithms@bgslibrary@@QEAA@XZ) MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS\Source.obj 1 Build

Severity Code Description Project Path File Line Source Suppression State Error LNK2001 unresolved external symbol "public: __cdecl bgslibrary::algorithms::PAWCS::PAWCS(void)" (??0PAWCS@algorithms@bgslibrary@@QEAA@XZ) MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS\Source.obj 1 Build

Severity Code Description Project Path File Line Source Suppression State Error LNK2001 unresolved external symbol "public: __cdecl bgslibrary::algorithms::ViBe::ViBe(void)" (??0ViBe@algorithms@bgslibrary@@QEAA@XZ) MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS D:\New folder (2)\MulticueBGS\MulticueBGS\Source.obj 1 Build

and so on

im opencv4.2 and visual studio 2019

andrewssobral commented 2 years ago

Hi @SabraHashemi , Sorry for my delayed feedback to you. Could you please send me more info about this error? I know it's a long time ago, but it's not clear to me how can I reproduce it. I also want to tell you I just released a new version of the BGSLibrary, now v3.1.0. I tested it on Windows, Mac and Linux, both compiling the C++ library on OpenCV 3.4.7, 3.4.16 and 4.6.0. I also tested its respective Python wrapper and GT user interface. Everything is working for me, could you please check in your side if this new version fix your issues? Thanks in advance, Andrews

andrewssobral commented 2 years ago

@SabraHashemi you can find here: https://github.com/andrewssobral/bgslibrary/wiki/Installation-instructions---Windows#how-to-compile-on-windows-10--msvs2019--opencv-347 How to build the bgs library on Windows 10 + OpenCV + Visual Studio 2019