LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error when executing make for kcodecs (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-when-executing-make-for-kcodecs-4175605110/)

spies9149 05-02-2017 04:25 PM

Error when executing make for kcodecs
 
I'm trying to install the kde-frameworks from the BLFS book and when trying to install the kcodecs package I get this error:

/opt/qt5/bin/lconvert: error while loading shared libraries: libQt5Xml.so.5: cannot open shared object file: No such file or directory
make[2]: *** [CMakeFiles/translations_99.dir/build.make:61: zh_HK/kcodecs5_qt.qm] Error 127
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/translations_99.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I know that it is a problem with lconvert not finding libQt5Xml.so.5 but when I checked /opt/qt5/lib/ libQt5Xml.so.5 was present I also tried "export LD_LIBRARY_PATH=/opt/qt54/lib" but this didn't solve the problem.

If anyone could help that would be much appreciated. Thanks.

Luridis 05-02-2017 05:08 PM

Try typing...

Code:

ldconfig -v 2>/dev/null | grep -v ^$'\t'
And see if it's in the default search path. If it's not, you need to go back and add it to ld.so.conf or as a file in ld.so.conf.d.

spies9149 05-03-2017 01:52 AM

Thanks that solved that problem but after it gets past this I get this error:
/opt/qt5/bin/uic: relocation error: /opt/qt5/bin/uic: symbol qt_hash_seed, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
Sorry this is my first time building a desktop interface with LFS.
Thanks for any help.

Krejzi 05-03-2017 05:52 AM

You seem to have two different Qt5 versions on your system, with one being in ld.so.conf, other being referenced in PATH.

spies9149 05-03-2017 05:55 AM

Is there a way I can work around or remove a version?

Krejzi 05-03-2017 05:57 AM

Just remove references to it from /etc/ld.so.conf and /etc/profile.d, or fix them to reference newest one, only.

spies9149 05-04-2017 03:36 AM

Thank you very much that solved that problem, I have this error occurring now:
-- Building PolkitQt5-1 KAuth backend
CMake Error at src/ConfigureChecks.cmake:153 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
src/CMakeLists.txt:5 (include)
Thank you for all you assistance.


All times are GMT -5. The time now is 06:09 AM.