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. Syntax error: EOF in backquote substitution make: *** [mainwindow.o] Error 2
Forum Updated to NodeBB v4.3 + New Features

Syntax error: EOF in backquote substitution make: *** [mainwindow.o] Error 2

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 2.5k 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.
  • H Offline
    H Offline
    Hisham
    wrote on last edited by
    #1

    I'm trying to compile a Qt project downloaded from Git hub. I got the following error,
    /bin/sh: 1: Syntax error: EOF in backquote substitution

    make: *** [mainwindow.o] Error 2
    10:24:29: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project FiniteElements (kit: Desktop)
    When executing step 'Make'

    My .pro file is as below,

    QT      += core gui opengl widgets
    DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000`
    TARGET   = FiniteElements
    TEMPLATE = app
    
    LIBS    += -lqwt
    
    INCLUDEPATH += "/usr/include/qwt/"
    
    
    
    SOURCES += main.cpp \
               mainwindow.cpp \
               FiniteElements.cpp\
               graph_plot.cpp
    
    HEADERS  += mainwindow.h\
                FiniteElements.h\
                graph_plot.h
    
    
    

    Can anyone help me to solve the issue?

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

      My first reaction was that this would be a case of not enough information.

      Then I spotted the character at the end of your DEFINES statement which clearly does not belong there.

      That would be my best guess as to the cause of this problem.

      Mike

      1 Reply Last reply
      1
      • H Hisham

        I'm trying to compile a Qt project downloaded from Git hub. I got the following error,
        /bin/sh: 1: Syntax error: EOF in backquote substitution

        make: *** [mainwindow.o] Error 2
        10:24:29: The process "/usr/bin/make" exited with code 2.
        Error while building/deploying project FiniteElements (kit: Desktop)
        When executing step 'Make'

        My .pro file is as below,

        QT      += core gui opengl widgets
        DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000`
        TARGET   = FiniteElements
        TEMPLATE = app
        
        LIBS    += -lqwt
        
        INCLUDEPATH += "/usr/include/qwt/"
        
        
        
        SOURCES += main.cpp \
                   mainwindow.cpp \
                   FiniteElements.cpp\
                   graph_plot.cpp
        
        HEADERS  += mainwindow.h\
                    FiniteElements.h\
                    graph_plot.h
        
        
        

        Can anyone help me to solve the issue?

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

        @Hisham said in Syntax error: EOF in backquote substitution make: *** [mainwindow.o] Error 2:

        DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000`

        Could be that ` at the end of this line:

        DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000`
        

        Remove it, run qmake again and then make.

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

        1 Reply Last reply
        1

        • Login

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