Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

DESTDIR for libraries on linux



  • On windows I am using DESTDIR within qmake for placing libraries and dlls in a specific folder.
    When using this on Ubuntu 16.04 only libxxxx.so.1.0.0 is being moved and the creation of the different links triggers an error message. As a result only libxxxx.so.1.0.0 is being moved to the destination and the exact complete file name of the library has to be used when linking with the library.
    Is there a better way than using DESTDIR?


  • Lifetime Qt Champion

    Hi,

    Sounds strange... can you show your .pro file ?



  • @SGaist

    Thanks for feedback.

    I wasn't sure if there is a linux issue I am not aware off.

    The .pro is quite complicated. However, as I found out it is not the .pro and the complexity. The problem stems from opening the project in a shared folder through Virtual Box. The build will reside then also on the shared folder, which is a windows managed file partition on a HD. DESTDIR was already on a pure linux partition, but there wasn't the problem.

    Anyway copying the complete set of folders to the linux partition solves apparently the problem.

    It is never a good idea to mix too much Windows and Linux. ;)


  • Lifetime Qt Champion

    Indeed, it's usually better to have git in between these two.


Log in to reply