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. No Rule to make target C:/...../x86Debug/lib/liblibcurl_a_debug.a, needed by debug/AlgoApplicationUI.exe. Stop
Forum Updated to NodeBB v4.3 + New Features

No Rule to make target C:/...../x86Debug/lib/liblibcurl_a_debug.a, needed by debug/AlgoApplicationUI.exe. Stop

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 770 Views 1 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.
  • L Offline
    L Offline
    Laner107
    wrote on last edited by
    #1

    I just recently installed libcurl library and i am newer to C++ and libraries in general and i used the library installation wizard through QT but now i keep getting this error, I will attach my AlgoApplicationUi.pro code which if im correct is basically the makefile, just easier to edit.

    QT      += core gui
    QT      += core gui charts
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    CONFIG += c++11
    
    # The following define makes your compiler emit warnings if you use
    # any Qt feature that has been marked 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
    TEMPLATE = app
    RC_FILE = myapp.rc.txt
    
    # You can also make your code fail to compile if it uses 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
    
    SOURCES += \
        MainWindow.cpp \
        login.cpp \
        main.cpp \
        webscrapper.cpp
    
    HEADERS += \
        MainWindow.h \
        login.h \
        webscrapper.h
    
    FORMS += \
        MainWindow.ui \
        login.ui \
    
    
    DISTFILES += \
        Contents/banner.qml
    
    RESOURCES += \
        res.qrc
    
    
    
    unix|win32: LIBS += -L$$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/ -llibcurl_a_debug
    
    INCLUDEPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
    DEPENDPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
    
    win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/libcurl_a_debug.lib
    else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/liblibcurl_a_debug.a
    
    

    My include path to get the the folder that has curl.h is
    C:\Users\laner\Documents\GitHub\AlgoApp\Program\Libraries\curl-7.69.1\x86Debug_include\curl

    My .lib file path is
    C:\Users\laner\Documents\GitHub\AlgoApp\Program\Libraries\curl-7.69.1\x86Debug\lib\libcurl_a_debug

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You have a typo in your file. It's libcurl not liblibcurl.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        You have a typo in your file. It's libcurl not liblibcurl.

        L Offline
        L Offline
        Laner107
        wrote on last edited by
        #3

        @SGaist I appreciate the response! I changed it to

        unix|win32: LIBS += -L$$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/-libcurl_a_debug
        
        INCLUDEPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
        DEPENDPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
        
        win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/libcurl_a_debug.lib
        else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/libcurl_a_debug.a
        
        

        and still getting the same compiler error? Any other noticeable errors you can think of?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Laner107 said in No Rule to make target C:/...../x86Debug/lib/liblibcurl_a_debug.a, needed by debug/AlgoApplicationUI.exe. Stop:

          unix|win32: LIBS += -L$$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/-libcurl_a_debug

          That also looks wrong. You are missing a space before the minus sign there and it's "-lcurl_a_debug"

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply
          0
          • SGaistS SGaist

            @Laner107 said in No Rule to make target C:/...../x86Debug/lib/liblibcurl_a_debug.a, needed by debug/AlgoApplicationUI.exe. Stop:

            unix|win32: LIBS += -L$$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/-libcurl_a_debug

            That also looks wrong. You are missing a space before the minus sign there and it's "-lcurl_a_debug"

            L Offline
            L Offline
            Laner107
            wrote on last edited by
            #5

            @SGaist Okay so now I got

            
            unix|win32: LIBS += -L$$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/ -lcurl_a_debug
            
            INCLUDEPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
            DEPENDPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
            
            win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/libcurl_a_debug.lib
            else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/libcurl_a_debug.a
            

            but still same error, I also appreciate your help in trying to fix this!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I just realized, unless you are currently actively developing libcurl in parallel of your application, you shouldn't really need to use PRE_TARGETDEPS. Try building your application without it.

              It does not solve the problem at hand but should allow you to continue developing.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 1 Reply Last reply
              0
              • SGaistS SGaist

                I just realized, unless you are currently actively developing libcurl in parallel of your application, you shouldn't really need to use PRE_TARGETDEPS. Try building your application without it.

                It does not solve the problem at hand but should allow you to continue developing.

                L Offline
                L Offline
                Laner107
                wrote on last edited by
                #7

                @SGaist So something like

                
                LIBS += -L$$PWD/../../Libraries/curl-7.69.1/x86Debug/lib/ -llibcurl_a_debug
                INCLUDEPATH += $$PWD/.ech./../Libraries/curl-7.69.1/x86Debug/_include/curl
                DEPENDPATH += $$PWD/../../Libraries/curl-7.69.1/x86Debug/_include/curl
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Drop the lib from libcurl_a_debug

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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