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. Libicu, needed by Qt5Core, compilation issues. Please help!! Worked fine in 18.04, but not 16.04.

Libicu, needed by Qt5Core, compilation issues. Please help!! Worked fine in 18.04, but not 16.04.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
compilationubuntu 16.04qtcoreerrorhelp install
8 Posts 3 Posters 3.7k 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.
  • Z Offline
    Z Offline
    zeethree50
    wrote on 21 Oct 2020, 18:40 last edited by zeethree50
    #1

    Hello QT friends. Thank you taking the time to read this.

    I had been working on this project in Ubuntu 18.04 LTS and had been working with multiple libraries utilizing Protobuf, GRPC, GNU Radio, ArcGIS SDK, among a few other things.

    Down the road I find out we have to STIG the machine, some government security process, which in the end, made us downgrade to 16.04 LTS to fulfill all the requirements needed.

    This caused a lot of issues for us in many ways, but nothing that wasn't fixable. Currently, I have been trying to figure out this next problem before seeking out for help. I've only been programming for a few years, so I am sorry if this turns out to be a single mistake.

    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so -lGL -lpthread
    cp -f -R "/home/labuser/dev/lewe-master/LeweGui/qdarkstyle" "/home/labuser/dev/build-LEWE2-Desktop_Qt_5_15_1_GCC_64bit-Debug/LeweGui"
    make[1]: Leaving directory '/home/labuser/dev/build-LEWE2-Desktop_Qt_5_15_1_GCC_64bit-Debug/LeweApp'
    /usr/bin/ld: warning: libicui18n.so.56, needed by /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld: warning: libicuuc.so.56, needed by /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld: warning: libicudata.so.56, needed by /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_getAlias_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to uenum_next_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to u_strToUpper_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_fromUnicode_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to uenum_close_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_openTimeZoneIDEnumeration_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_getDSTSavings_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_setMillis_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucol_getSortKey_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_get_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_compareNames_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucol_setAttribute_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_open_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_openTimeZones_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_getAvailableName_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_close_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_getDefaultName_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_getDefaultTimeZone_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucol_strcoll_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_close_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_countAvailable_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to u_strToLower_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_getStandardName_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_getTimeZoneDisplayName_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_setSubstChars_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to u_errorName_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucol_close_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucol_open_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_clone_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_open_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_openCountryTimeZones_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_countAliases_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucal_inDaylightTime_56' /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to ucnv_toUnicode_56'
    /opt/Qt/5.15.1/gcc_64/lib/libQt5Core.so: undefined reference to `ucnv_getMaxCharSize_56'
    collect2: error: ld returned 1 exit status
    Makefile:548: recipe for target 'LeweGui' failed
    make[1]: Leaving directory '/home/labuser/dev/build-LEWE2-Desktop_Qt_5_15_1_GCC_64bit-Debug/LeweGui'
    make[1]: *** [LeweGui] Error 1
    Makefile:143: recipe for target 'sub-LeweGui-make_first' failed
    make: *** [sub-LeweGui-make_first] Error 2
    18:29:06: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project LEWE2 (kit: Desktop Qt 5.15.1 GCC 64bit)
    When executing step "Make"


    When I look at the folder, I can see the files are there but I don't know what I can do fix this issue. This works no problem in 18.04. It was working in Redhat 7 before finding out, it wasn't optimal for 16.04

    What could be causing issues for me using 16.04 LTS. I've tried google searching the libs needed by QTCore and I'd tried setting LD paths and other types of linking issues, although I could be doing it wrong, but I am stuck and looking for guidance.

    Thank you for reading. Have a good day.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Oct 2020, 18:42 last edited by
      #2

      Hi,

      What version of ICU do you have on your system ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Z 1 Reply Last reply 21 Oct 2020, 18:54
      0
      • S SGaist
        21 Oct 2020, 18:42

        Hi,

        What version of ICU do you have on your system ?

        Z Offline
        Z Offline
        zeethree50
        wrote on 21 Oct 2020, 18:54 last edited by
        #3

        @SGaist

        uconv v2.1 ICU 55.1

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Oct 2020, 18:55 last edited by
          #4

          Si here is your issue: it's below the version expected by the prebuilt version of Qt you are using.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Z 1 Reply Last reply 21 Oct 2020, 19:10
          1
          • S SGaist
            21 Oct 2020, 18:55

            Si here is your issue: it's below the version expected by the prebuilt version of Qt you are using.

            Z Offline
            Z Offline
            zeethree50
            wrote on 21 Oct 2020, 19:10 last edited by
            #5

            @SGaist I understand.

            labuser@THORE0001:/opt/Qt/5.15.1/gcc_64/lib$ ls
            cmake libQt5Nfc.prl
            libicudata.so libQt5Nfc.so
            libicudata.so.56 libQt5Nfc.so.5
            libicudata.so.56.1 libQt5Nfc.so.5.15
            libicui18n.so libQt5Nfc.so.5.15.1
            libicui18n.so.56 libQt5OpenGLExtensions.a
            libicui18n.so.56.1 libQt5OpenGLExtensions.la
            libicuio.so libQt5OpenGLExtensions.prl
            libicuio.so.56 libQt5OpenGL.la
            libicuio.so.56.1 libQt5OpenGL.prl
            libicule.so libQt5OpenGL.so
            libicule.so.56 libQt5OpenGL.so.5
            libicule.so.56.1 libQt5OpenGL.so.5.15
            libiculx.so libQt5OpenGL.so.5.15.1
            libiculx.so.56 libQt5PacketProtocol.a
            libiculx.so.56.1 libQt5PacketProtocol.la
            libicutest.so libQt5PacketProtocol.prl
            libicutest.so.56 libQt5PlatformCompositorSupport.a
            libicutest.so.56.1 libQt5PlatformCompositorSupport.la
            libicutu.so libQt5PlatformCompositorSupport.prl
            libicutu.so.56 libQt5Positioning.la
            libicutu.so.56.1 libQt5Positioning.prl
            libicuuc.so libQt5PositioningQuick.la
            libicuuc.so.56 libQt5PositioningQuick.prl


            labuser@THORE0001:/opt/Qt/5.15.1/gcc_64/lib$ sudo apt install libicu-dev
            [sudo] password for labuser:
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            libicu-dev is already the newest version (55.1-7ubuntu0.5).


            labuser@THORE0001:/opt/Qt/5.15.1/gcc_64/lib$ find libicu*
            libicudata.so
            libicudata.so.56
            libicudata.so.56.1
            libicui18n.so
            libicui18n.so.56
            libicui18n.so.56.1
            libicuio.so
            libicuio.so.56
            libicuio.so.56.1
            libicule.so
            libicule.so.56
            libicule.so.56.1
            libiculx.so
            libiculx.so.56
            libiculx.so.56.1
            libicutest.so
            libicutest.so.56
            libicutest.so.56.1
            libicutu.so
            libicutu.so.56
            libicutu.so.56.1
            libicuuc.so
            libicuuc.so.56
            libicuuc.so.56.1


            Although I have libicu56 in the file directory, my machine uses 55. I'm assuming it needs to be 56, or is this not the case?

            Cheers,
            Armando o/

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 21 Oct 2020, 19:13 last edited by
              #6

              One thing you can test: use LD_LIBRARY_PATH to point to the folder where libicu 56 is located before starting your application.

              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
              1
              • Z Offline
                Z Offline
                zeethree50
                wrote on 23 Oct 2020, 15:50 last edited by
                #7

                Yes. Thank you SGaist.

                In Kits, I was able to select my current kit and under Enviroment put: LD_LIBRARY_PATH=/opt/Qt/5.15.1/gcc_64/lib:${LD_LIBRARY_PATH}

                And it worked for me. Cheers mate.

                P 1 Reply Last reply 23 Oct 2020, 23:43
                0
                • Z zeethree50
                  23 Oct 2020, 15:50

                  Yes. Thank you SGaist.

                  In Kits, I was able to select my current kit and under Enviroment put: LD_LIBRARY_PATH=/opt/Qt/5.15.1/gcc_64/lib:${LD_LIBRARY_PATH}

                  And it worked for me. Cheers mate.

                  P Offline
                  P Offline
                  Pablo J. Rogina
                  wrote on 23 Oct 2020, 23:43 last edited by
                  #8

                  @zeethree50 said in Libicu, needed by Qt5Core, compilation issues. Please help!! Worked fine in 18.04, but not 16.04.:

                  And it worked for me

                  Great, so please don't forget to mark your post as solved!

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0

                  5/8

                  21 Oct 2020, 19:10

                  • Login

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