How to fix missed libicui18n.so.74 when adding qmake to Qt Creator?
-
Hello.
Yesterday, I built Qt 6.11.2 from source on my Ubuntu 24.04 laptop for I wanted to learn Qt Quick and QML (as a C++ dev, I already had some experience with Qt Widgets, but mostly only with their side of the framework). The building went well, and soon I got it done. Yet, I couldn't add this build to Qt Creator 20.0.1, when I was manually adding qmake or qmake6 to Qt Versions within Kits, I got an error:
The qmake executable /home/tea/Apps/qt-6.11.2/bin/qmake could not be added: "/home/tea/Apps/qt-6.11.2/bin/qmake" produced no output: /home/tea/Apps/qt-6.11.2/bin/qmake: error while loading shared libraries: libicui18n.so.74: cannot open shared object file: No such file or directory.
Today I've confirmed with apt that I actually do have ICU installed in the system:
libicu74 is already the newest version (74.2-1ubuntu3.1). libicu74 set to manually installed.The exact library
libicui18n.so.74.2lies in/usr/lib/x86_64-linux-gnu/.Right now I don't know what to do to fix that. Maybe, that's me doing anything wrong, or that's another issue. So, any help would be highly appreciated.
-
Hello.
Yesterday, I built Qt 6.11.2 from source on my Ubuntu 24.04 laptop for I wanted to learn Qt Quick and QML (as a C++ dev, I already had some experience with Qt Widgets, but mostly only with their side of the framework). The building went well, and soon I got it done. Yet, I couldn't add this build to Qt Creator 20.0.1, when I was manually adding qmake or qmake6 to Qt Versions within Kits, I got an error:
The qmake executable /home/tea/Apps/qt-6.11.2/bin/qmake could not be added: "/home/tea/Apps/qt-6.11.2/bin/qmake" produced no output: /home/tea/Apps/qt-6.11.2/bin/qmake: error while loading shared libraries: libicui18n.so.74: cannot open shared object file: No such file or directory.
Today I've confirmed with apt that I actually do have ICU installed in the system:
libicu74 is already the newest version (74.2-1ubuntu3.1). libicu74 set to manually installed.The exact library
libicui18n.so.74.2lies in/usr/lib/x86_64-linux-gnu/.Right now I don't know what to do to fix that. Maybe, that's me doing anything wrong, or that's another issue. So, any help would be highly appreciated.
@Irimitlad said in How to fix missed libicui18n.so.74 when adding qmake to Qt Creator?:
The exact library libicui18n.so.74.2 lies in /usr/lib/x86_64-linux-gnu/.
and is there libicui18n.so.74 symbolic link in /usr/lib/x86_64-linux-gnu/ pointing to it?
Is there a reason to build Qt by yourself? -
Hello.
Yesterday, I built Qt 6.11.2 from source on my Ubuntu 24.04 laptop for I wanted to learn Qt Quick and QML (as a C++ dev, I already had some experience with Qt Widgets, but mostly only with their side of the framework). The building went well, and soon I got it done. Yet, I couldn't add this build to Qt Creator 20.0.1, when I was manually adding qmake or qmake6 to Qt Versions within Kits, I got an error:
The qmake executable /home/tea/Apps/qt-6.11.2/bin/qmake could not be added: "/home/tea/Apps/qt-6.11.2/bin/qmake" produced no output: /home/tea/Apps/qt-6.11.2/bin/qmake: error while loading shared libraries: libicui18n.so.74: cannot open shared object file: No such file or directory.
Today I've confirmed with apt that I actually do have ICU installed in the system:
libicu74 is already the newest version (74.2-1ubuntu3.1). libicu74 set to manually installed.The exact library
libicui18n.so.74.2lies in/usr/lib/x86_64-linux-gnu/.Right now I don't know what to do to fix that. Maybe, that's me doing anything wrong, or that's another issue. So, any help would be highly appreciated.
Hi and welcome to devnet,
Can you also share the output of
ldd /home/tea/Apps/qt-6.11.2/bin/qmake? -
First, thank you everyone for helping.
Both
libicui18n.soandlibicui18n.so.74in the directory point tolibicui18n.so.74.2. The same trio lies in/usr/local/lib/:lrwxrwxrwx 1 root root 18 Oct 2 2024 /usr/local/lib/libicui18n.so -> libicui18n.so.74.2 lrwxrwxrwx 2 root root 18 Aug 9 2024 /usr/local/lib/libicui18n.so.74 -> libicui18n.so.74.2 -rwxrwxrwx 2 root root 3455304 Aug 9 2024 /usr/local/lib/libicui18n.so.74.2 lrwxrwxrwx 1 root root 18 Aug 9 2024 /usr/lib/x86_64-linux-gnu/libicui18n.so -> libicui18n.so.74.2 lrwxrwxrwx 2 root root 18 Aug 9 2024 /usr/lib/x86_64-linux-gnu/libicui18n.so.74 -> libicui18n.so.74.2 -rwxrwxrwx 2 root root 3455304 Aug 9 2024 /usr/lib/x86_64-linux-gnu/libicui18n.so.74.2Speaking of my reasons, I built Qt from its Git repo back then working with Widgets. However, that was in 2023 under a commercial license belonging to a company I worked for at the time. Actually, this time with my home laptop ,I tried the online installer first. It just didn't go well, the installer kept getting stuck at 90% of retrieving metadata, the cause of which I don't know, there were no error messages or anything else, and my net connection worked fine, too.
As for
ldd, the paths seem to be correct:linux-vdso.so.1 (0x00007457a56c3000) libQt6Core.so.6 => /home/tea/Apps/qt-6.11.2/bin/../lib/libQt6Core.so.6 (0x00007457a4e00000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007457a4a00000) libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007457a4600000) libicui18n.so.74 => /usr/local/lib/libicui18n.so.74 (0x00007457a4200000) libicuuc.so.74 => /usr/lib/x86_64-linux-gnu/libicuuc.so.74 (0x00007457a3e00000) libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007457a4cb7000) libz.so.1 => /usr/lib/x86_64-linux-gnu/libz.so.1 (0x00007457a54be000) libdouble-conversion.so.3 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007457a4ca2000) libb2.so.1 => /usr/lib/x86_64-linux-gnu/libb2.so.1 (0x00007457a4c84000) libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007457a4941000) libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007457a4887000) libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007457a4117000) libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007457a4859000) /lib64/ld-linux-x86-64.so.2 (0x00007457a56c5000) libicudata.so.74 => /usr/lib/x86_64-linux-gnu/libicudata.so.74 (0x00007457a2000000) libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007457a403f000) libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007457a45aa000) -
First, thank you everyone for helping.
Both
libicui18n.soandlibicui18n.so.74in the directory point tolibicui18n.so.74.2. The same trio lies in/usr/local/lib/:lrwxrwxrwx 1 root root 18 Oct 2 2024 /usr/local/lib/libicui18n.so -> libicui18n.so.74.2 lrwxrwxrwx 2 root root 18 Aug 9 2024 /usr/local/lib/libicui18n.so.74 -> libicui18n.so.74.2 -rwxrwxrwx 2 root root 3455304 Aug 9 2024 /usr/local/lib/libicui18n.so.74.2 lrwxrwxrwx 1 root root 18 Aug 9 2024 /usr/lib/x86_64-linux-gnu/libicui18n.so -> libicui18n.so.74.2 lrwxrwxrwx 2 root root 18 Aug 9 2024 /usr/lib/x86_64-linux-gnu/libicui18n.so.74 -> libicui18n.so.74.2 -rwxrwxrwx 2 root root 3455304 Aug 9 2024 /usr/lib/x86_64-linux-gnu/libicui18n.so.74.2Speaking of my reasons, I built Qt from its Git repo back then working with Widgets. However, that was in 2023 under a commercial license belonging to a company I worked for at the time. Actually, this time with my home laptop ,I tried the online installer first. It just didn't go well, the installer kept getting stuck at 90% of retrieving metadata, the cause of which I don't know, there were no error messages or anything else, and my net connection worked fine, too.
As for
ldd, the paths seem to be correct:linux-vdso.so.1 (0x00007457a56c3000) libQt6Core.so.6 => /home/tea/Apps/qt-6.11.2/bin/../lib/libQt6Core.so.6 (0x00007457a4e00000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007457a4a00000) libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007457a4600000) libicui18n.so.74 => /usr/local/lib/libicui18n.so.74 (0x00007457a4200000) libicuuc.so.74 => /usr/lib/x86_64-linux-gnu/libicuuc.so.74 (0x00007457a3e00000) libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007457a4cb7000) libz.so.1 => /usr/lib/x86_64-linux-gnu/libz.so.1 (0x00007457a54be000) libdouble-conversion.so.3 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007457a4ca2000) libb2.so.1 => /usr/lib/x86_64-linux-gnu/libb2.so.1 (0x00007457a4c84000) libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007457a4941000) libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007457a4887000) libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007457a4117000) libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007457a4859000) /lib64/ld-linux-x86-64.so.2 (0x00007457a56c5000) libicudata.so.74 => /usr/lib/x86_64-linux-gnu/libicudata.so.74 (0x00007457a2000000) libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007457a403f000) libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007457a45aa000)@Irimitlad said in How to fix missed libicui18n.so.74 when adding qmake to Qt Creator?:
libicui18n.so.74 => /usr/local/lib/libicui18n.so.74 (0x00007457a4200000)
Why is it looking in /usr/local/lib?
Did you install this lib by yourself?Regarding installer being stuck: take a look at https://wiki.qt.io/Online_Installer_4.x#Selecting_a_mirror_for_opensource