Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Symbols not found for architecture x86_64 MacOS Yosemite
Forum Updated to NodeBB v4.3 + New Features

Symbols not found for architecture x86_64 MacOS Yosemite

Scheduled Pinned Locked Moved Installation and Deployment
36 Posts 4 Posters 5.8k Views 1 Watching
  • 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.
  • S saeedBaba

    THANKS ALOT!

    IT IS FINALLY WORKING!!!!

    can you give me a reputation so I can post faster?

    one more question:
    How can I know what libraries to include for the future? how should I check?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #24

    @saeedBaba said in Symbols not found for architecture x86_64 MacOS Yosemite:

    How can I know what libraries to include for the future? how should I check?

    In case of OpenCV you can see in the documentation URL: https://docs.opencv.org/3.4/d4/da8/group__imgcodecs.html and from the include header (at least in this case):

    #include <opencv2/imgcodecs.hpp>
    

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • S Offline
      S Offline
      saeedBaba
      wrote on last edited by
      #25

      @jsulm said in Symbols not found for architecture x86_64 MacOS Yosemite:

      https://docs.opencv.org/3.4/d4/da8/group__imgcodecs.html

      for example, I get the same error for this code:
      1- where should I check for what to include?

      #include "opencv2/core.hpp"
      #include "opencv2/imgproc.hpp"
      #include "opencv2/highgui.hpp"
      #include "opencv2/videoio.hpp"
      #include <iostream>
      
      using namespace cv;
      using namespace std;
      
      void drawText(Mat & image);
      
      int main()
      {
          cout << "Built with OpenCV " << CV_VERSION << endl;
          Mat image;
          VideoCapture capture;
          capture.open(0);
          if(capture.isOpened())
          {
              cout << "Capture is opened" << endl;
              for(;;)
              {
                  capture >> image;
                  if(image.empty())
                      break;
                  drawText(image);
                  imshow("Sample", image);
                  if(waitKey(10) >= 0)
                      break;
              }
          }
          else
          {
              cout << "No capture" << endl;
              image = Mat::zeros(480, 640, CV_8UC1);
              drawText(image);
              imshow("Sample", image);
              waitKey(0);
          }
          return 0;
      }
      
      void drawText(Mat & image)
      {
          putText(image, "Hello OpenCV",
                  Point(20, 50),
                  FONT_HERSHEY_COMPLEX, 1, // font face and scale
                  Scalar(255, 255, 255), // white
                  1, LINE_AA); // line thickness and type
      }
      

      2- Is there any way to include the whole thing in .pro file and then just include required hpp in the cpp file? I do the same thing when using CMake.

      jsulmJ 1 Reply Last reply
      0
      • S saeedBaba

        @jsulm said in Symbols not found for architecture x86_64 MacOS Yosemite:

        https://docs.opencv.org/3.4/d4/da8/group__imgcodecs.html

        for example, I get the same error for this code:
        1- where should I check for what to include?

        #include "opencv2/core.hpp"
        #include "opencv2/imgproc.hpp"
        #include "opencv2/highgui.hpp"
        #include "opencv2/videoio.hpp"
        #include <iostream>
        
        using namespace cv;
        using namespace std;
        
        void drawText(Mat & image);
        
        int main()
        {
            cout << "Built with OpenCV " << CV_VERSION << endl;
            Mat image;
            VideoCapture capture;
            capture.open(0);
            if(capture.isOpened())
            {
                cout << "Capture is opened" << endl;
                for(;;)
                {
                    capture >> image;
                    if(image.empty())
                        break;
                    drawText(image);
                    imshow("Sample", image);
                    if(waitKey(10) >= 0)
                        break;
                }
            }
            else
            {
                cout << "No capture" << endl;
                image = Mat::zeros(480, 640, CV_8UC1);
                drawText(image);
                imshow("Sample", image);
                waitKey(0);
            }
            return 0;
        }
        
        void drawText(Mat & image)
        {
            putText(image, "Hello OpenCV",
                    Point(20, 50),
                    FONT_HERSHEY_COMPLEX, 1, // font face and scale
                    Scalar(255, 255, 255), // white
                    1, LINE_AA); // line thickness and type
        }
        

        2- Is there any way to include the whole thing in .pro file and then just include required hpp in the cpp file? I do the same thing when using CMake.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #26

        @saeedBaba said in Symbols not found for architecture x86_64 MacOS Yosemite:

        Is there any way to include the whole thing in .pro file

        You should only link what is really needed. Else you will have to provide libs which are not used by your app making your package unnecessary big.

        "I get the same error for this code" - if it is the same error, then the solution is also same.
        But I guess the error is not same? Please post the error.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          saeedBaba
          wrote on last edited by saeedBaba
          #27

          Log file for the code with videocapture .

          16:21:02: Running steps for project opencv_test_qmake...
          16:21:02: Starting: "/Users/apple/Qt6/6.1.1/clang_64/bin/qmake" /usr/local/lib/C++Project/Qt6/opencv_test_qmake/opencv_test_qmake.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=qml_debug
          Info: creating stash file /usr/local/lib/C++Project/Qt6/build-opencv_test_qmake-Desktop_Qt_6_1_1_clang_64bit-Debug/.qmake.stash
          16:21:03: The process "/Users/apple/Qt6/6.1.1/clang_64/bin/qmake" exited normally.
          16:21:03: Starting: "/usr/bin/make" -f /usr/local/lib/C++Project/Qt6/build-opencv_test_qmake-Desktop_Qt_6_1_1_clang_64bit-Debug/Makefile qmake_all
          make: Nothing to be done for `qmake_all'.
          16:21:03: The process "/usr/bin/make" exited normally.
          16:21:03: Starting: "/usr/bin/make" -j8
          /Users/apple/Qt6/6.1.1/clang_64/libexec/uic ../opencv_test_qmake/dialog.ui -o ui_dialog.h
          /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../opencv_test_qmake -I. -I../../../../include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -F/Users/apple/Qt6/6.1.1/clang_64/lib -o main.o ../opencv_test_qmake/main.cpp
          /Library/Developer/CommandLineTools/usr/bin/clang++ -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -dM -E -o moc_predefs.h /Users/apple/Qt6/6.1.1/clang_64/mkspecs/features/data/dummy.cpp
          /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../opencv_test_qmake -I. -I../../../../include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -F/Users/apple/Qt6/6.1.1/clang_64/lib -o dialog.o ../opencv_test_qmake/dialog.cpp
          /Users/apple/Qt6/6.1.1/clang_64/libexec/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /usr/local/lib/C++Project/Qt6/build-opencv_test_qmake-Desktop_Qt_6_1_1_clang_64bit-Debug/moc_predefs.h -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -I/usr/local/lib/C++Project/Qt6/opencv_test_qmake -I/usr/local/include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1 -I/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/usr/include -F/Users/apple/Qt6/6.1.1/clang_64/lib ../opencv_test_qmake/dialog.h -o moc_dialog.cpp
          /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../opencv_test_qmake -I. -I../../../../include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -F/Users/apple/Qt6/6.1.1/clang_64/lib -o moc_dialog.o moc_dialog.cpp
          /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/apple/Qt6/6.1.1/clang_64/lib -o opencv_test_qmake.app/Contents/MacOS/opencv_test_qmake main.o dialog.o moc_dialog.o   -F/Users/apple/Qt6/6.1.1/clang_64/lib -L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_features2d -lopencv_highgui -lopencv_calib3d -lopencv_imgcodecs -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL   
          
          
          Undefined symbols for architecture x86_64:
            "cv::VideoCapture::open(int, int)", referenced from:
                _main in main.o
            "cv::VideoCapture::VideoCapture()", referenced from:
                _main in main.o
            "cv::VideoCapture::~VideoCapture()", referenced from:
                _main in main.o
            "cv::VideoCapture::operator>>(cv::Mat&)", referenced from:
                _main in main.o
            "cv::VideoCapture::isOpened() const", referenced from:
                _main in main.o
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          make: *** [opencv_test_qmake.app/Contents/MacOS/opencv_test_qmake] Error 1
          16:21:06: The process "/usr/bin/make" exited with code 2.
          Error while building/deploying project opencv_test_qmake (kit: Desktop Qt 6.1.1 clang 64bit)
          When executing step "Make"
          16:21:06: Elapsed time: 00:04.
          
          jsulmJ 1 Reply Last reply
          0
          • S saeedBaba

            Log file for the code with videocapture .

            16:21:02: Running steps for project opencv_test_qmake...
            16:21:02: Starting: "/Users/apple/Qt6/6.1.1/clang_64/bin/qmake" /usr/local/lib/C++Project/Qt6/opencv_test_qmake/opencv_test_qmake.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=qml_debug
            Info: creating stash file /usr/local/lib/C++Project/Qt6/build-opencv_test_qmake-Desktop_Qt_6_1_1_clang_64bit-Debug/.qmake.stash
            16:21:03: The process "/Users/apple/Qt6/6.1.1/clang_64/bin/qmake" exited normally.
            16:21:03: Starting: "/usr/bin/make" -f /usr/local/lib/C++Project/Qt6/build-opencv_test_qmake-Desktop_Qt_6_1_1_clang_64bit-Debug/Makefile qmake_all
            make: Nothing to be done for `qmake_all'.
            16:21:03: The process "/usr/bin/make" exited normally.
            16:21:03: Starting: "/usr/bin/make" -j8
            /Users/apple/Qt6/6.1.1/clang_64/libexec/uic ../opencv_test_qmake/dialog.ui -o ui_dialog.h
            /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../opencv_test_qmake -I. -I../../../../include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -F/Users/apple/Qt6/6.1.1/clang_64/lib -o main.o ../opencv_test_qmake/main.cpp
            /Library/Developer/CommandLineTools/usr/bin/clang++ -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -dM -E -o moc_predefs.h /Users/apple/Qt6/6.1.1/clang_64/mkspecs/features/data/dummy.cpp
            /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../opencv_test_qmake -I. -I../../../../include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -F/Users/apple/Qt6/6.1.1/clang_64/lib -o dialog.o ../opencv_test_qmake/dialog.cpp
            /Users/apple/Qt6/6.1.1/clang_64/libexec/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /usr/local/lib/C++Project/Qt6/build-opencv_test_qmake-Desktop_Qt_6_1_1_clang_64bit-Debug/moc_predefs.h -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -I/usr/local/lib/C++Project/Qt6/opencv_test_qmake -I/usr/local/include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1 -I/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/usr/include -F/Users/apple/Qt6/6.1.1/clang_64/lib ../opencv_test_qmake/dialog.h -o moc_dialog.cpp
            /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wall -Wextra -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../opencv_test_qmake -I. -I../../../../include/opencv4 -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtWidgets.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtGui.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Users/apple/Qt6/6.1.1/clang_64/mkspecs/macx-clang -F/Users/apple/Qt6/6.1.1/clang_64/lib -o moc_dialog.o moc_dialog.cpp
            /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/apple/Qt6/6.1.1/clang_64/lib -o opencv_test_qmake.app/Contents/MacOS/opencv_test_qmake main.o dialog.o moc_dialog.o   -F/Users/apple/Qt6/6.1.1/clang_64/lib -L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_features2d -lopencv_highgui -lopencv_calib3d -lopencv_imgcodecs -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL   
            
            
            Undefined symbols for architecture x86_64:
              "cv::VideoCapture::open(int, int)", referenced from:
                  _main in main.o
              "cv::VideoCapture::VideoCapture()", referenced from:
                  _main in main.o
              "cv::VideoCapture::~VideoCapture()", referenced from:
                  _main in main.o
              "cv::VideoCapture::operator>>(cv::Mat&)", referenced from:
                  _main in main.o
              "cv::VideoCapture::isOpened() const", referenced from:
                  _main in main.o
            ld: symbol(s) not found for architecture x86_64
            clang: error: linker command failed with exit code 1 (use -v to see invocation)
            make: *** [opencv_test_qmake.app/Contents/MacOS/opencv_test_qmake] Error 1
            16:21:06: The process "/usr/bin/make" exited with code 2.
            Error while building/deploying project opencv_test_qmake (kit: Desktop Qt 6.1.1 clang 64bit)
            When executing step "Make"
            16:21:06: Elapsed time: 00:04.
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #28

            @saeedBaba

            #include <opencv2/videoio.hpp>
            

            So, it is -lopencv_videoio

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • S Offline
              S Offline
              saeedBaba
              wrote on last edited by
              #29

              Thanks.

              How did you find it?
              How should I find future libraries to include?

              jsulmJ 1 Reply Last reply
              0
              • S saeedBaba

                Thanks.

                How did you find it?
                How should I find future libraries to include?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #30

                @saeedBaba said in Symbols not found for architecture x86_64 MacOS Yosemite:

                How did you find it?

                From the include file name. This is very OpenCV specific, maybe there is some documentation/explanation in that project.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  saeedBaba
                  wrote on last edited by saeedBaba
                  #31

                  @jsulm said in Symbols not found for architecture x86_64 MacOS Yosemite:

                  opencv2/videoio.hpp

                  What I am asking is that, do you just google

                  opencv2/videoio.hpp
                  

                  or there is a documentation link you look into?

                  jsulmJ 1 Reply Last reply
                  0
                  • S saeedBaba

                    @jsulm said in Symbols not found for architecture x86_64 MacOS Yosemite:

                    opencv2/videoio.hpp

                    What I am asking is that, do you just google

                    opencv2/videoio.hpp
                    

                    or there is a documentation link you look into?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by jsulm
                    #32

                    @saeedBaba I googled for cv::VideoCapture and got https://docs.opencv.org/3.4/d8/dfe/classcv_1_1VideoCapture.html where you can see the include:

                    #include <opencv2/videoio.hpp>
                    

                    And in case of OpenCV it looks like a header file corresponds to a lib: videoio.hpp -> opencv_videoio
                    But this is so in case of OpenCV, not necesserily every lib out there!

                    Qt does it more clear: it tells you what to add to pro file to use a class. For example in https://doc.qt.io/qt-5/qwidget.html you can see:

                    QT += widgets
                    

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1
                    • S Offline
                      S Offline
                      saeedBaba
                      wrote on last edited by
                      #33

                      @jsulm said in Symbols not found for architecture x86_64 MacOS Yosemite:

                      https://docs.opencv.org/3.4/d8/dfe/classcv_1_1VideoCapture.html

                      but this link does not mention anything about -lopencv_videoio
                      How did you find that?

                      jsulmJ 1 Reply Last reply
                      0
                      • S saeedBaba

                        @jsulm said in Symbols not found for architecture x86_64 MacOS Yosemite:

                        https://docs.opencv.org/3.4/d8/dfe/classcv_1_1VideoCapture.html

                        but this link does not mention anything about -lopencv_videoio
                        How did you find that?

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #34

                        @saeedBaba Again: I deduce the lib name from the include file.

                        #include <opencv2/videoio.hpp>
                        

                        So, header file name is videoio.hpp, lib name is opencv_videoio

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        2
                        • S Offline
                          S Offline
                          saeedBaba
                          wrote on last edited by
                          #35

                          Hi there

                          I need to install opencv on qt on windows device. I was wondering if you could give me a link to an instruction or tutorial, preferably one that foes not need to alter Cmake since I have had download issues with cmake before.

                          Thanks

                          jsulmJ 1 Reply Last reply
                          0
                          • S saeedBaba

                            Hi there

                            I need to install opencv on qt on windows device. I was wondering if you could give me a link to an instruction or tutorial, preferably one that foes not need to alter Cmake since I have had download issues with cmake before.

                            Thanks

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #36

                            @saeedBaba Official documentation is here: https://docs.opencv.org/3.4/d3/d52/tutorial_windows_install.html
                            You should consider asking in an OpenCV forum if you have problems building it, as OpenCV has nothing to do with Qt.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            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