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. QMake INSTALL not picking up binaries
Forum Updated to NodeBB v4.3 + New Features

QMake INSTALL not picking up binaries

Scheduled Pinned Locked Moved Installation and Deployment
qmakeinstallpro file
3 Posts 2 Posters 2.4k 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.
  • V Offline
    V Offline
    VRonin
    wrote on 14 Jul 2015, 15:20 last edited by
    #1

    Hi eveyone,
    I bult a library using Qt and now I'm trying to deploy it, belo par of my .pro file:

    target.path=$$PREFIX/lib
    headers.path=$$PREFIX/include
    headers.files = *.h
    INSTALLS += headers target
    

    while the includes are copied successully, the binaries are never copied when calling make install

    coplete .pro file:

    TEMPLATE = lib
    isEmpty(PREFIX) {
     warning("PREFIX not specified")
     PREFIX = ../QBbgLib
    }
    CONFIG(debug, debug|release) {
        win32: TARGETNAME=QBbgLibd
        mac: TARGETNAME=QBbgLib_debug
        DESTDIRNAME = ../Win32/Debug
        MOC_DIR += ./GeneratedFiles/debug
        OBJECTS_DIR += debug
    }
    CONFIG(release, debug|release) {
        TARGETNAME = QBbgLib
        DESTDIRNAME = ../Win32/Release
        MOC_DIR += ./GeneratedFiles/release
        OBJECTS_DIR += release
    }
    TARGET=$$TARGETNAME
    DESTDIR=$$DESTDIRNAME
    QT += core
    DEFINES += QBBG_LIB_BUILD QT_DLL QBBGLIB_LIB
    INCLUDEPATH += $(BLPPATH)/include \
        ./GeneratedFiles \
        . \
        ./GeneratedFiles/Debug
    LIBS += -L"$(BLPPATH)/lib" \
        -lblpapi3_32
    DEPENDPATH += .
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles
    include(QBbgLib.pri)
    target.path=$$PREFIX/lib
    headers.path=$$PREFIX/include
    headers.files = *.h
    INSTALLS += headers target
    

    Im running Qt 5.4.1 on VS2013 compiler on windows

    Thanks in advance

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Jul 2015, 21:53 last edited by
      #2

      Hi,

      It seems that you are not putting your target executable to be part of the installation.

      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
      • V Offline
        V Offline
        VRonin
        wrote on 15 Jul 2015, 07:34 last edited by
        #3

        Thanks for your answer
        It's actually a dll but I get what you are saying.
        I tried adding

        target.files = $$DESTDIRNAME/*.dll
        target.files += $$DESTDIRNAME/*.lib
        target.files += $$DESTDIRNAME/*.pdb
        

        where DESTDIRNAME is the same value as DESTDIR but no change

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        0

        1/3

        14 Jul 2015, 15:20

        • Login

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