LNK2019: unresolved external symbol "public: __cdecl cv::structured_light::SinusoidalPattern::Params::Params
-
wrote on 26 Apr 2017, 17:19 last edited by
Hi i want to create sinusoidal pattern using opencv in QT and currently use this opencv library structured_light while i write this line
cv::structured_light::SinusoidalPattern::Params params
it give error..
-
Hi i want to create sinusoidal pattern using opencv in QT and currently use this opencv library structured_light while i write this line
cv::structured_light::SinusoidalPattern::Params params
it give error..
wrote on 26 Apr 2017, 18:22 last edited byAs the error message already says, there is an unresolved symbol.
Probably you have linked with a wrong or even no library.Apparently you are using a MS compiler and linker. Did the error occur first time after you the structure_light stuff?
Could you link successfully with cv before? -
wrote on 26 Apr 2017, 18:23 last edited by
@koahnig yes it occur first time.
-
@koahnig yes it occur first time.
wrote on 26 Apr 2017, 18:29 last edited by -
wrote on 26 Apr 2017, 18:52 last edited by
@koahnig other library work fine.
-
Hi,
Are you linking against the contribute module that contains structured_light ?
-
wrote on 27 Apr 2017, 15:55 last edited by
@SGaist yes...basically i pick this library from contribute module...because structure light library is not available in downloaded opencv..
-
@SGaist yes...basically i pick this library from contribute module...because structure light library is not available in downloaded opencv..
wrote on 27 Apr 2017, 16:03 last edited byIs this additional feature part of your project?
When the feature is still part of your project, then yiou need to compile and link it with your project, but that part is missing.
Or did you compile it and try to link it to your application?
When you have compiled it and made a separate library, you need to add the library for linking with the project.
Are you using Qt creator?
-
Is this additional feature part of your project?
When the feature is still part of your project, then yiou need to compile and link it with your project, but that part is missing.
Or did you compile it and try to link it to your application?
When you have compiled it and made a separate library, you need to add the library for linking with the project.
Are you using Qt creator?
wrote on 27 Apr 2017, 17:32 last edited by@koahnig yes this is main feature of our project i picked up folder and file of structured light then paste into opencv folder...basically i am beginner
-
@koahnig yes this is main feature of our project i picked up folder and file of structured light then paste into opencv folder...basically i am beginner
wrote on 27 Apr 2017, 18:04 last edited byAre you using Qt creator?
-
Are you using Qt creator?
wrote on 28 Apr 2017, 12:43 last edited by@koahnig yes i am using qt creator 5.7
-
@koahnig yes i am using qt creator 5.7
wrote on 28 Apr 2017, 13:07 last edited byIn Qt creator you have a project file with the extension .pro
Check the entries in this file. There typically some entries like
SOURCES += main.cpp\ MainWindow.cpp \ MyRadio.cpp \ MyRadioLine.cpp \ MyLine.cpp HEADERS += MainWindow.h \ MyRadio.h \ MyRadioLine.h \ MyLine.h FORMS += MainWindow.ui
Under SOURCES all files for compilation have to be listed.
Under HEADERS all include files are listed.Most likely the source file with your source code of structured_light is missing.
If so, the source file is not compiled and cannot be linked to your application.
6/12