Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

/bin/sh: 1: Syntax error: "(" unexpected - now what ?



  • My project run / executed YESTERDAY as expected .
    TODAY - after power down and fresh power up I get this error.

    WHY and how DO I FIX SOMETHING i did not CONTRIBUTED TO?

    WHAT created this "syntax" error in Makefile I have no control ower at this point?

    WHY
    ( enter your answer here )

    HOW
    ( enter your answer here )

    WHAT
    ( enter your answer here )

    12:08:50: Running steps for project btscanner...
    12:08:50: Configuration unchanged, skipping qmake step.
    12:08:50: Starting: "/usr/bin/make" -j
    /usr/lib/x86_64-linux-gnu/qt5/bin/uic /media/z/DOC_COPY_LABEL/Projects\ /QT_Repository\ (copy)/examples/bluetooth/btscanner/device.ui -o .uic/ui_device.h
    /usr/lib/x86_64-linux-gnu/qt5/bin/uic /media/z/DOC_COPY_LABEL/Projects\ /QT_Repository\ (copy)/examples/bluetooth/btscanner/service.ui -o .uic/ui_service.h
    Makefile:328: recipe for target '.uic/ui_device.h' failed
    Makefile:331: recipe for target '.uic/ui_service.h' failed
    /bin/sh: 1: Syntax error: "(" unexpected
    make: *** [.uic/ui_device.h] Error 2
    make: *** Waiting for unfinished jobs....
    /bin/sh: 1: Syntax error: "(" unexpected
    make: *** [.uic/ui_service.h] Error 2
    12:08:50: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project btscanner (kit: Desktop)
    When executing step "Make"
    12:08:50: Elapsed time: 00:00.

    Addendum
    Here is SAME problem in another project - unexpected '(" !!!!

    d2d0ffe9-6410-4284-97cd-b5d80f1f95c0-image.png

    How do I access Makefile where the "error" is detected ?

    Answer
    You can access project Makefile here .......


  • Lifetime Qt Champion

    Hi
    WHY
    it seems the auto generated file ui_device.h has some error

    HOW
    Did you change the UI file in Designer ?

    WHAT
    Go to
    alt text
    then RIGHT click on build folder path
    alt text
    Goto folder
    Then press ctrl +a to select all
    then press delete to clean whole build folder.
    leave no files left

    Then go to
    alt text

    and see if error still persists.



  • I'm guessing that it objects to the "(copy)" in the path.



  • @mranger90
    If that is the issue, there is also a space in /Projects / which might cause a problem. But it might be something else.


Log in to reply