[Qbs] avoid RPATH pointing to Qt installation folder

Heiko Nardmann heiko.nardmann at itechnical.de
Tue Oct 8 13:35:59 CEST 2019


Am 08.10.19 um 12:00 schrieb Christian Kandeler:
> On Tue, 8 Oct 2019 11:39:09 +0200
> Heiko Nardmann <heiko.nardmann at itechnical.de> wrote:
>
>> The question is whether to include Qt.core.libPath (as defined inside
>> core.qbs) into the list of rpaths. If I put it into the list then it
>> also is part of the binaries RPATH - which I want to avoid. I I leave it
>> out then I get ld error wrt. the ICU libs - which Qt.core is depending on.
> I don't know what error you are getting. If it's just that the lib is not found, try setting cpp.libraryPaths.
>
>
> Christian
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs

Here is the commandline that I use and the resulting error message with
cpp.rpaths empty inside core.qbs:

    /home/heiko.nardmann/QtCreator/4.8.2/bin/qbs build --build-directory
    build --file test.qbs  --command-echo-mode command-line
    config:linux64-gcc-qt5-12-3-debug profile:linux64-gcc-qt5-12-3 
    qbs.buildVariant:debug

    Restoring build graph from disk

    Resolving project for configuration linux64-gcc-qt5-12-3-debug

    Building for configuration linux64-gcc-qt5-12-3-debug

    /usr/bin/g++ -Wl,-m,elf_x86_64
    -L/home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib -m64 -o
    /home/heiko.nardmann/projects/trunk/QBS-Probleme/Qt-Deps/build/linux64-gcc-qt5-12-3-debug/A.6dcd4ce2/A
    /home/heiko.nardmann/projects/trunk/QBS-Probleme/Qt-Deps/build/linux64-gcc-qt5-12-3-debug/A.6dcd4ce2/3a52ce780950d4d9/A.cpp.o
    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3
    -lpthread

    ERROR: /usr/bin/g++ -Wl,-m,elf_x86_64
    -L/home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib -m64 -o
    /home/heiko.nardmann/projects/trunk/QBS-Probleme/Qt-Deps/build/linux64-gcc-qt5-12-3-debug/A.6dcd4ce2/A
    /home/heiko.nardmann/projects/trunk/QBS-Probleme/Qt-Deps/build/linux64-gcc-qt5-12-3-debug/A.6dcd4ce2/3a52ce780950d4d9/A.cpp.o
    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3
    -lpthread

     

    ERROR: /usr/bin/ld: warning: libicui18n.so.56, needed by
    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3,
    not found (try using -rpath or -rpath-link)

    /usr/bin/ld: warning: libicuuc.so.56, needed by
    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3,
    not found (try using -rpath or -rpath-link)

    /usr/bin/ld: warning: libicudata.so.56, needed by
    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3,
    not found (try using -rpath or -rpath-link)

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_clone_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_close_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucol_setAttribute_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_setSubstChars_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_close_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_openTimeZoneIDEnumeration_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_fromUnicode_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `uenum_close_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_getDefaultName_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_inDaylightTime_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_compareNames_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_open_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_getAlias_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_countAvailable_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `u_strToLower_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_getDefaultTimeZone_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_openCountryTimeZones_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_getDSTSavings_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucol_close_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_openTimeZones_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_getStandardName_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_countAliases_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucol_open_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_open_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_setMillis_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_get_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `uenum_next_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_getMaxCharSize_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucol_strcoll_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `u_errorName_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_getAvailableName_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucal_getTimeZoneDisplayName_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `u_strToUpper_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucnv_toUnicode_56'

    /home/heiko.nardmann/Qt/Online/5.12.3/gcc_64/lib/libQt5Core.so.5.12.3:
    undefined reference to `ucol_getSortKey_56'

    collect2: error: ld returned 1 exit status

    ERROR: Process failed with exit code 1.

    The following products could not be built for configuration
    linux64-gcc-qt5-12-3-debug:

    A


/Kind regards,/

  Heiko


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20191008/8defd74e/attachment-0001.html>


More information about the Qbs mailing list