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. How To solved this error :-1: error: No rule to make target
QtWS25 Last Chance

How To solved this error :-1: error: No rule to make target

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 2.3k 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.
  • V Offline
    V Offline
    vaibs1224
    wrote on 5 Sept 2019, 09:01 last edited by
    #1

    :-1: error: No rule to make target 'c:/stlRepair_file/stlonly/../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/libBufferOverflowU.a', needed by 'debug/stlonly.exe'. Stop.

    0_1567673926704_9f804db4-bc64-46ed-84e8-15679c83b343-image.png

    A 1 Reply Last reply 5 Sept 2019, 20:28
    0
    • V vaibs1224
      5 Sept 2019, 09:01

      :-1: error: No rule to make target 'c:/stlRepair_file/stlonly/../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/libBufferOverflowU.a', needed by 'debug/stlonly.exe'. Stop.

      0_1567673926704_9f804db4-bc64-46ed-84e8-15679c83b343-image.png

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 5 Sept 2019, 20:28 last edited by
      #2

      @vaibs1224 can you please post you pro file as text?

      does a minimal example work?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        spobit
        wrote on 6 Sept 2019, 05:43 last edited by spobit 9 Jun 2019, 05:53
        #3

        Hi.

        There is a code for windows shared library:

        *.pro

        unix {
            SOURCES += process_stub_unix.c
            solaris-.*: LIBS += -lsocket
        } else {
            SOURCES += process_stub_win.c
            LIBS += -lshell32
        }
        

        Makefile:

        LIBS          =  "C:\Windows Kits\10\lib\10.0.17763.0\um\x64\shell32.lib"
        

        I thinks a test shoud do by yourself for windows static library. You alse need use everything to search bufferoverflow.

        And the error say it is a 'target', maybe you can find issue from makefile.

        I found the static file extension is .a, are you sure you make it at windows, I'm confused.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vaibs1224
          wrote on 10 Sept 2019, 08:22 last edited by
          #4

          @aha_1980

          #-------------------------------------------------

          Project created by QtCreator 2019-08-30T13:32:14

          #-------------------------------------------------

          QT += core gui

          greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

          TARGET = stlonly
          TEMPLATE = app

          The following define makes your compiler emit warnings if you use

          any feature of Qt which has been marked as deprecated (the exact warnings

          depend on your compiler). Please consult the documentation of the

          deprecated API in order to know how to port your code away from it.

          DEFINES += QT_DEPRECATED_WARNINGS

          You can also make your code fail to compile if you use deprecated APIs.

          In order to do so, uncomment the following line.

          You can also select to disable deprecated APIs only up to a certain version of Qt.

          #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

          CONFIG += c++11

          SOURCES +=
          main.cpp
          mainwindow.cpp
          stlfix.c

          HEADERS +=
          ../pg/pgapi.h
          ../pg/pgkey.h
          ../pg/pgmacros.h
          ../pg/pgrender.h
          error.h
          mainwindow.h
          stlfix.h
          window.h

          FORMS +=
          mainwindow.ui

          Default rules for deployment.

          qnx: target.path = /tmp/$${TARGET}/bin
          else: unix:!android: target.path = /opt/$${TARGET}/bin
          !isEmpty(target.path): INSTALLS += target
          INCLUDEPATH += C:\cygwin64\usr\include\X11
          LIBS += C:\cygwin64\usr\include\

          #INCLUDEPATH += C:\stlRepair_file
          #LIBS += -L/C:\stlRepair_file\lib\amd\winxp64\msoft14\dos_\ -lpg -lpgogl

          #INCLUDEPATH += C:\cygwin64\usr\include\X11
          #LIBS += C:\cygwin64\usr\include
          #INCLUDEPATH += C:\cygwin64\usr\include
          #LIBS += C:\cygwin64\usr\include\

          #INCLUDEPATH += -L\C:\stlRepair_file\bin
          #LIBS += -L/C:\stlRepair_file\lib\amd\winxp64\msoft14\dos_\ -lpg -lpgogl

          win32: LIBS += -L$$PWD/../lib/amd/winxp64/msoft14/dos_/ -lpg

          INCLUDEPATH += $$PWD/../
          DEPENDPATH += $$PWD/../

          win32: LIBS += -L$$PWD/../lib/amd/winxp64/msoft14/dos_/ -lpgogl

          INCLUDEPATH += $$PWD/../
          DEPENDPATH += $$PWD/../

          win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../lib/amd/winxp64/msoft14/dos_/ -lpgogl
          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../lib/amd/winxp64/msoft14/dos_/ -lpgogl

          INCLUDEPATH += $$PWD/../
          DEPENDPATH += $$PWD/../
          #win32: LIBS += -L\C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64 -lBufferOverflow
          #INCLUDEPATH += C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64
          #LIBS += C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64\

          win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/' -lBufferOverflowU
          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/' -lBufferOverflowU

          INCLUDEPATH += $$PWD/'../../Program Files (x86)/Windows Kits'
          DEPENDPATH += $$PWD/'../../Program Files (x86)/Windows Kits'

          win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/libBufferOverflowU.a'
          else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/libBufferOverflowU.a'
          else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/BufferOverflowU.lib'
          else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/BufferOverflowU.lib'

          I think ,I have miss some step for linking.Please help

          1 Reply Last reply
          0

          2/4

          5 Sept 2019, 20:28

          • Login

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