Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. mingw32-make: [install_target] make (e=2): The system cannot find the file specified. (Windows 10, Android)
Forum Updated to NodeBB v4.3 + New Features

mingw32-make: [install_target] make (e=2): The system cannot find the file specified. (Windows 10, Android)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 9.2k 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
    Furkanzmc
    wrote on last edited by Furkanzmc
    #1

    I used to be able to simply build an APK package with Qt Creator. But now with Qt 5.7.1 and Qt Creator 4.2 I get the following error:

    12:59:11: The process "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    12:59:11: Starting: "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:/Users/furkanzmc/ProjectBuilds/Ekinoks/Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0/Debug/android-build" install
    cp -f libEkinoks.so C:/Users/furkanzmc/ProjectBuilds/Ekinoks/Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0/Debug/android-build/libs/armeabi-v7a/libEkinoks.so
    Makefile:841: recipe for target 'install_target' failed
    process_begin: CreateProcess(NULL, cp -f libEkinoks.so C:/Users/furkanzmc/ProjectBuilds/Ekinoks/Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0/Debug/android-build/libs/armeabi-v7a/libEkinoks.so, ...) failed.
    make (e=2): The system cannot find the file specified.
    
    mingw32-make: [install_target] Error 2 (ignored)
    

    cp -f command gives the following error on PowerShell

    Copy-Item : Parameter cannot be processed because the parameter name 'f' is ambiguous. Possible matches include: -Force
     -Filter.
    At line:1 char:4
    + cp -f
    +    ~~
        + CategoryInfo          : InvalidArgument: (:) [Copy-Item], ParameterBindingException
        + FullyQualifiedErrorId : AmbiguousParameter,Microsoft.PowerShell.Commands.CopyItemCommand
    

    So I think mingw32-make is calling the cp with wrong parameter. Is there a way for me to override that behaviour?
    A possible solution is disabling the make install step and manually copying the libEkinoks.so file to the target folder. I can also add a custom step to copy that file every time. But I still have to run make install. So it's not a real solution.

    jsulmJ 1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      I don't think it tries to use PowerShell's cp, but it thinks that the Unix set of commands are available. This might give some ideas:
      http://stackoverflow.com/questions/28801754/qmake-generated-makefile-for-win32-g-platform-contains-unix-commands

      Of course, as the building worked before, this could be a bug in 5.7.1. I'd try 5.8 -- it is now at release candidate stage and should work pretty well.

      1 Reply Last reply
      0
      • F Furkanzmc

        I used to be able to simply build an APK package with Qt Creator. But now with Qt 5.7.1 and Qt Creator 4.2 I get the following error:

        12:59:11: The process "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
        12:59:11: Starting: "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:/Users/furkanzmc/ProjectBuilds/Ekinoks/Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0/Debug/android-build" install
        cp -f libEkinoks.so C:/Users/furkanzmc/ProjectBuilds/Ekinoks/Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0/Debug/android-build/libs/armeabi-v7a/libEkinoks.so
        Makefile:841: recipe for target 'install_target' failed
        process_begin: CreateProcess(NULL, cp -f libEkinoks.so C:/Users/furkanzmc/ProjectBuilds/Ekinoks/Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0/Debug/android-build/libs/armeabi-v7a/libEkinoks.so, ...) failed.
        make (e=2): The system cannot find the file specified.
        
        mingw32-make: [install_target] Error 2 (ignored)
        

        cp -f command gives the following error on PowerShell

        Copy-Item : Parameter cannot be processed because the parameter name 'f' is ambiguous. Possible matches include: -Force
         -Filter.
        At line:1 char:4
        + cp -f
        +    ~~
            + CategoryInfo          : InvalidArgument: (:) [Copy-Item], ParameterBindingException
            + FullyQualifiedErrorId : AmbiguousParameter,Microsoft.PowerShell.Commands.CopyItemCommand
        

        So I think mingw32-make is calling the cp with wrong parameter. Is there a way for me to override that behaviour?
        A possible solution is disabling the make install step and manually copying the libEkinoks.so file to the target folder. I can also add a custom step to copy that file every time. But I still have to run make install. So it's not a real solution.

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

        @Furkanzmc Why do you use MinGW for Android?
        It looks like your Android Kit isn't configured properly.

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

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Furkanzmc
          wrote on last edited by
          #4

          Thanks @mvuori, that did solve my problem. Tuırns out I had SourceTree's local git in my PATH, removing that from PATH solved the issue.

          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