Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. LNK2019: unresolved external symbol "public: __cdecl cv::structured_light::SinusoidalPattern::Params::Params

LNK2019: unresolved external symbol "public: __cdecl cv::structured_light::SinusoidalPattern::Params::Params

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
12 Posts 3 Posters 3.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Faisal_Ali
    wrote on last edited by
    #1

    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..

    K 1 Reply Last reply
    0
    • F Faisal_Ali

      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..

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Faisal_Ali

      As 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?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Faisal_Ali
        wrote on last edited by
        #3

        @koahnig yes it occur first time.

        K 1 Reply Last reply
        0
        • F Faisal_Ali

          @koahnig yes it occur first time.

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @Faisal_Ali

          Is the problem limited to structured_light?

          Are you using other opencv stuff?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Faisal_Ali
            wrote on last edited by
            #5

            @koahnig other library work fine.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Are you linking against the contribute module that contains structured_light ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Faisal_Ali
                wrote on last edited by
                #7

                @SGaist yes...basically i pick this library from contribute module...because structure light library is not available in downloaded opencv..

                K 1 Reply Last reply
                0
                • F Faisal_Ali

                  @SGaist yes...basically i pick this library from contribute module...because structure light library is not available in downloaded opencv..

                  K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  @Faisal_Ali

                  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?

                  Vote the answer(s) that helped you to solve your issue(s)

                  F 1 Reply Last reply
                  0
                  • K koahnig

                    @Faisal_Ali

                    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?

                    F Offline
                    F Offline
                    Faisal_Ali
                    wrote on last edited by
                    #9

                    @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

                    K 1 Reply Last reply
                    0
                    • F Faisal_Ali

                      @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

                      K Offline
                      K Offline
                      koahnig
                      wrote on last edited by
                      #10

                      @Faisal_Ali

                      Are you using Qt creator?

                      Vote the answer(s) that helped you to solve your issue(s)

                      F 1 Reply Last reply
                      0
                      • K koahnig

                        @Faisal_Ali

                        Are you using Qt creator?

                        F Offline
                        F Offline
                        Faisal_Ali
                        wrote on last edited by
                        #11

                        @koahnig yes i am using qt creator 5.7

                        K 1 Reply Last reply
                        0
                        • F Faisal_Ali

                          @koahnig yes i am using qt creator 5.7

                          K Offline
                          K Offline
                          koahnig
                          wrote on last edited by
                          #12

                          @Faisal_Ali

                          In 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.

                          Vote the answer(s) that helped you to solve your issue(s)

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved