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. Unable to copy library at DESTDIR

Unable to copy library at DESTDIR

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.7k Views 3 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.
  • yuvaramY Offline
    yuvaramY Offline
    yuvaram
    wrote on last edited by yuvaram
    #1

    Hi,

    Below lines are used in my .pro file.
    #Supporting DLLs
    dlls.path += $${DESTDIR}
    dlls.files += $$[QT_INSTALL_BINS]/libstdc++-6.dll
    dlls.files += $$[QT_INSTALL_BINS]/Qt5Core.dll
    dlls.files += $$[QT_INSTALL_BINS]/Qt5Gui.dll
    INSTALLS += dlls

    : Added "install" as make argument.
    After compilation Qt5core and Qt5Gui are copied successfully. But there is error message for libstdc++-6.dll (which is present at C:\Qt\Qt5.4.0\5.4\mingw491_32\bin)

    Error :
    C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\libstdc++-6.dll
    The system cannot find the file specified.
    Makefile.Debug:3465: recipe for target 'install_dlls' failed
    mingw32-make[1]: [install_dlls] Error 1 (ignored)

    Yuvaram Aligeti
    Embedded Qt Developer
    : )

    joeQJ 1 Reply Last reply
    0
    • yuvaramY yuvaram

      Hi,

      Below lines are used in my .pro file.
      #Supporting DLLs
      dlls.path += $${DESTDIR}
      dlls.files += $$[QT_INSTALL_BINS]/libstdc++-6.dll
      dlls.files += $$[QT_INSTALL_BINS]/Qt5Core.dll
      dlls.files += $$[QT_INSTALL_BINS]/Qt5Gui.dll
      INSTALLS += dlls

      : Added "install" as make argument.
      After compilation Qt5core and Qt5Gui are copied successfully. But there is error message for libstdc++-6.dll (which is present at C:\Qt\Qt5.4.0\5.4\mingw491_32\bin)

      Error :
      C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\libstdc++-6.dll
      The system cannot find the file specified.
      Makefile.Debug:3465: recipe for target 'install_dlls' failed
      mingw32-make[1]: [install_dlls] Error 1 (ignored)

      joeQJ Offline
      joeQJ Offline
      joeQ
      wrote on last edited by joeQ
      #2

      @yuvaram Hi,friend,welcome.

      Why didn't i find QT_INSTALL_BINS variable in my windows and mac ? is it custom?

      Just do it!

      yuvaramY 1 Reply Last reply
      0
      • C Offline
        C Offline
        Charlie_Hdz
        wrote on last edited by
        #3

        @yuvaram

        I don't understand very well the context.

        Why don't you use LIBRARY and LIBS instead of dlls.files?

        Why don't you look at documentation to see which one works for you?

        Thank you.

        Kind Regards,
        Enrique Hernandez
        gearstech.com.mx
        chernandez@gearstech.com.mx

        yuvaramY 1 Reply Last reply
        0
        • joeQJ joeQ

          @yuvaram Hi,friend,welcome.

          Why didn't i find QT_INSTALL_BINS variable in my windows and mac ? is it custom?

          yuvaramY Offline
          yuvaramY Offline
          yuvaram
          wrote on last edited by
          #4

          @joeQ
          refer http://doc.qt.io/qt-5/qmake-environment-reference.html

          Yuvaram Aligeti
          Embedded Qt Developer
          : )

          1 Reply Last reply
          0
          • C Charlie_Hdz

            @yuvaram

            I don't understand very well the context.

            Why don't you use LIBRARY and LIBS instead of dlls.files?

            Why don't you look at documentation to see which one works for you?

            Thank you.

            yuvaramY Offline
            yuvaramY Offline
            yuvaram
            wrote on last edited by
            #5

            @Charlie_Hdz
            my requirement is to copy dependency libraries of my executable into DESTDIR,
            one of the dependency library is libstdc++-6.dll

            Yuvaram Aligeti
            Embedded Qt Developer
            : )

            kshegunovK 1 Reply Last reply
            0
            • yuvaramY yuvaram

              @Charlie_Hdz
              my requirement is to copy dependency libraries of my executable into DESTDIR,
              one of the dependency library is libstdc++-6.dll

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #6

              I assume this is an install target? If my memory serves me there was some bug with install targets so some of the dlls that come from mingw are not copied. If it copies your other binaries then you've probably hit that. I'll try to find the relevant thread.

              Here you go: https://forum.qt.io/topic/73235/copying-dlls-into-target-directory

              Read and abide by the 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