Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. C:\Users\' is not recognized as an internal or external command
Forum Updated to NodeBB v4.3 + New Features

C:\Users\' is not recognized as an internal or external command

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.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.
  • M Offline
    M Offline
    mehdi.nine
    wrote on last edited by
    #1

    Hi, i want compile opencv for QT. i use this tutorial
    @
    http://www.laganiere.name/opencvCookbook/chap1s1_2.shtml
    @
    in step 8 i have this error:
    @
    C:\opencv_bin1>mingw32-make [ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.obj 'C:\Users' is not recognized as an internal or external command, operable program or batch file. 3rdparty\zlib\CMakeFiles\zlib.dir\build.make:53: recipe for target '3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.obj' failed mingw32-make[2]: *** [3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.obj] Error 1 CMakeFiles\Makefile2:269: recipe for target '3rdparty/zlib/CMakeFiles/zlib.dir/all' failed mingw32-make[1]: *** [3rdparty/zlib/CMakeFiles/zlib.dir/all] Error 2 makefile:112: recipe for target 'all' failed mingw32-make: *** [all] Error 2
    @
    i think it is from path variable but i don't see mistake in it.
    any idea?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      This has nothing to do with Qt. Qt is a library not a compiler.

      OpenCV's CMake build script is trying to execute the command "C:\Users", which the command shell is correctly identifying is not an executable (it's a directory). Often these things are the result of spaces in paths and scripting that is not expecting that.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mehdi.nine
        wrote on last edited by
        #3

        my address is
        @C:\opencv_Bin@
        so no space in path .

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          This has nothing to do with Qt. Qt is a library not a compiler.

          Run "mingw32-make VERBOSE=1" and capture the output. Look for the actual command that is failing, and I expect it will become obvious.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mehdi.nine
            wrote on last edited by
            #5

            i did that. this is output:

            http://upload7.ir/images/47225304934033403040.jpg

            my opencv version is 2.44 and cmake is 2.6(because cmake 2.8.11 have error when i work with that).
            i check that file adler32.c.obj doesn't exist. but this files is generated with Cmake and it must generate adler32.c.obj.

            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