Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved Problems installing opencv for Qt (chmod not found)

    Installation and Deployment
    3
    6
    402
    Loading More Posts
    • 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.
    • Niagarer
      Niagarer last edited by

      Hi!
      I am trying to install opencv on my windows 10 notebook for Qt. I followed this guide: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows
      I installed Cmake successfully, Qt is already (5.10).
      But I have trouble running the mingw in the opencv-build folder.

      modules\core\CMakeFiles\pch_Generate_opencv_core.dir\build.make:62: recipe for target 'modules/core/precomp.hpp.gch/opencv_core_Release.gch' failed
      mingw32-make[2]: *** [modules/core/precomp.hpp.gch/opencv_core_Release.gch] Error 1
      CMakeFiles\Makefile2:1509: recipe for target 'modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all' failed
      mingw32-make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all] Error 2
      Makefile:161: recipe for target 'all' failed
      mingw32-make: *** [all] Error 2
      

      Then it tells me, command 'chmod' could not be found. I don't really understand, isn't chmod only a unix command?
      Thanks for help!

      Pablo J. Rogina 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        AFAIK, yes it's a Unix command. This is intriguing ?

        What command line are you using ?

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

        Niagarer 1 Reply Last reply Reply Quote 0
        • Niagarer
          Niagarer @SGaist last edited by Niagarer

          @sgaist said in Problems installing opencv for Qt (chmod not found):

          What command line are you using ?

          cmd:

          D:\opencv-build>mingw32-make
          
          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            So Windows own cmd ?

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

            Niagarer 1 Reply Last reply Reply Quote 0
            • Niagarer
              Niagarer @SGaist last edited by Niagarer

              @sgaist
              yes

              Edit
              The problem has shifted now (which doesn't mean, the chmod error isn't completely weird). I disabled ENABLE_PRECOMPILED_HEADERS in CMake, then regenerated the opencv-build directory via CMake once again and tried again. Now, I don't get the error again, but the make process keeps slowing down until it takes hours to complete one %. Canceling and restarting the make results in starting again at a lower percentage and still taking very long time to build one thing. It's just getting weirder... So I don't think, the problem is specific to this chmod thing but something fundamental is not working correctly although I followed the linked tutorial. Which makes it quite hard to isolate the source of the issue.

              1 Reply Last reply Reply Quote 0
              • Pablo J. Rogina
                Pablo J. Rogina @Niagarer last edited by

                @niagarer not that I've used myself, but is there any wrong with installing the pre-built binaries provided by OpenCV project?

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post