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. Problems installing opencv for Qt (chmod not found)
Forum Updated to NodeBB v4.3 + New Features

Problems installing opencv for Qt (chmod not found)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 804 Views 2 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.
  • NiagarerN Offline
    NiagarerN Offline
    Niagarer
    wrote on last edited by
    #1

    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. RoginaP 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      NiagarerN 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        What command line are you using ?

        NiagarerN Offline
        NiagarerN Offline
        Niagarer
        wrote on last edited by Niagarer
        #3

        @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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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

          NiagarerN 1 Reply Last reply
          0
          • SGaistS SGaist

            So Windows own cmd ?

            NiagarerN Offline
            NiagarerN Offline
            Niagarer
            wrote on last edited by Niagarer
            #5

            @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
            0
            • NiagarerN Niagarer

              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. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @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
              0

              • Login

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