Cygwin make error : *** target pattern contains no `%'

后端 未结 11 1375
旧巷少年郎
旧巷少年郎 2020-12-08 07:07

I got this error while (re)building, using cygwin make.exe version :3.81.

Error : *** target pattern contains no `%\'.
相关标签:
11条回答
  • 2020-12-08 07:11

    Most likely due to the presence of a colon following a drive letter. For example consider

    build : $(NativeHeaders)/*
    

    If

    NativeHeaders=../../../cpp/generated
    

    then all is well, but

    NativeHeaders=C:/dev/folder/cpp/generated
    

    results in the error that you get.

    0 讨论(0)
  • 2020-12-08 07:13

    In my case I was using CMake under Cygwin when I got this error. It turned out the Windows version of CMake was executed. Subsequently, Windows paths were used in the make file. I installed Cygwin's version of CMake through the setup program and got it working.

    0 讨论(0)
  • 2020-12-08 07:15

    Try this if you're running Eclipse C/C++ and referencing files from Cygwin under Windows, make sure c:/cygwin/bin or c:/cygwin64/bin comes after your preferred compiler tools in your Windows Path environment.

    Example: Path = ;C:\yagarto\bin;C:\yagarto-tools\bin;C:\cygwin64\bin;

    After making the changes, exit Eclipse and restart for it to take effect (simply restarting Eclipse without exiting won't fix the problem.

    0 讨论(0)
  • 2020-12-08 07:18

    I had to change the following in my make file to be compatible with Make_381:
    before:
    ARDUINO_BASE_DIR = C:\programs/arduino

    now:
    ARDUINO_BASE_DIR = \\programs/arduino

    0 讨论(0)
  • 2020-12-08 07:21

    In my project, obj folder was probably corrupted and I was getting this error. Manually deleted obj folder. Then ndk-build completed fine.

    0 讨论(0)
  • 2020-12-08 07:24

    I had this problem on Linux when the build directory contained a ":" caused by doing a mercurial checkout which created a directory named "server:port".

    0 讨论(0)
提交回复
热议问题