Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. multiple target patterns. Stop.
QtWS25 Last Chance

multiple target patterns. Stop.

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 5.8k 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.
  • M Offline
    M Offline
    MONTIN
    wrote on 18 Nov 2013, 13:14 last edited by
    #1

    Hi all,

    I am a beginer with Qt511 under windows XP with Qtcreator 2.8.1 and mingW48_32
    I first try a console application "hello world", of course it works but when I add an external library without invoking it in the same code, I get this error : "Makefile.Debug:76: erreur : multiple target patterns. Stop."
    What does that mean and how to fix it ?

    Thanks

    Montin

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 18 Nov 2013, 14:07 last edited by
      #2

      How are you adding this external library? What have you changed in your project?

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MONTIN
        wrote on 18 Nov 2013, 14:59 last edited by
        #3

        Thanks for your reply.

        I added it via the IDE (Right clic on the project and add a library, I tryed both the static and dynamic linking for windows only)

        Montin

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MONTIN
          wrote on 18 Nov 2013, 15:25 last edited by
          #4

          he project that works:

          QT += core
          QT -= gui
          TARGET = Test_0
          CONFIG += console
          CONFIG -= app_bundle
          TEMPLATE = app
          SOURCES += main.cpp

          and the second that does not works :

          QT += core
          QT -= gui
          TARGET = Test_0
          CONFIG += console
          CONFIG -= app_bundle
          TEMPLATE = app
          SOURCES += main.cpp

          win32:CONFIG(release, debug|release): LIBS += -L$$PWD/C:/MCC/CWIN/ -lcbw32
          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/C:/MCC/CWIN/ -lcbw32d

          INCLUDEPATH += $$PWD/C:/MCC/CWIN
          DEPENDPATH += $$PWD/C:/MCC/CWIN

          win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/C:/MCC/CWIN/cbw32.lib
          else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/C:/MCC/CWIN/cbw32d.lib

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 18 Nov 2013, 17:31 last edited by
            #5

            Those 2 lines seem unnecessary:
            @
            win32:CONFIG: PRE_TARGETDEPS += $$PWD/C:/MCC/CWIN/cbw32.lib
            else:win32:CONFIG: PRE_TARGETDEPS += $$PWD/C:/MCC/CWIN/cbw32d.lib
            @

            (Z(:^

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MONTIN
              wrote on 22 Nov 2013, 07:41 last edited by
              #6

              Thanks
              Without these lines it does not work. I have reinstalled qt51 and now it works but only in release mode in debug mode i get this error

              :-1: erreur : No rule to make target 'C:/qt/test/TestConsole0/../../../MCC/CWIN/cbw32d.lib', needed by 'debug\TestConsole0.exe'. Stop.

              ??

              Can you help ?
              Montin

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MONTIN
                wrote on 22 Nov 2013, 15:32 last edited by
                #7

                I found a solution, maybe it is not the good one but it works.
                When adding the library cbw32.lib under qtcreator I had cheked the option "add the d suffix for debug" BUT the file cdw32d.lib is not existing in my environnement that's why I had this error. Now it works.
                Thanks sierdzio, with your reply, I did not feel alone with my problem ant it helps very much.
                Montin

                1 Reply Last reply
                0

                6/7

                22 Nov 2013, 07:41

                • Login

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