LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-04-2014, 06:32 AM   #1
hitormiss
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Rep: Reputation: 0
Slackware 14.1 x64 -- Qt 5.2.1 -- Failing to compile 32bit code. KDE applets issues.


I recently installed slackware 14.1 on a development station. I work on both 32bit and 64bit projects. The compiler option -m32 was not working, so I installed multilib and got the latest 32 bit libraries.

Now I don't have an issue with getting code to start to compile but I do get an error saying the version found libQt5Core.so is not compatible with -lQt5Core.

Additionally, I have XFCE window manager installed. XFCE uses some KDE applets, such as KUser, Konsole, KTimer, KWrite, etc. Seeing how KDE was developed in Qt, none of these programs work.

Observations: when running for example, kuser from command line, I get an error:
error while loading shared libraries: libQtNetwork.so.4: cannot open shared object file: No such file or directory.

I have uninstalled Qt 4 upon installing Slackware, mainly because I need to use Qt 5 for my projects. I am wondering if the Qt 5 libraries are not compatible with Qt 4. <-- that seems silly. But regardless, the multilib contains a Qt 4 compatibility library. So unless the issue is that I am missing the Qt 4 64 bit library I am at a loss.

Things I have done:

-Installed multilib
-Copied all Qt*.pc files to the /usr/lib64/pkgconfig/ so that when running pkg-config --modversion Qt5Core it actually works, previously it was not.

If anyone has had a similar issue and can advise it would be greatly appreciated.
 
Old 04-04-2014, 06:47 AM   #2
hitormiss
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Installed qt-4.8.5-x86_64-2.txz

Installing the qt libary which came with the initial installation seems to have fixed the issue with running apps like KUser and all.

This has made no impact on my issue of compiling, which leads me to believe there is another configuration issue going on.
 
Old 04-04-2014, 06:51 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
You can not use Qt 5 with Slackware's packages because they depend on Qt 4. Yes, they are incompatible.
Once you removed Slackware's qt4 package all those programs that depend on it (all of KDE for instance) stopped working.

Eric
 
Old 04-04-2014, 07:02 AM   #4
hitormiss
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Alien Bob, whilst I was typing up my thread I realized that I should try re-installing the qt-4.8.5 library, and that has since fixed my issue of the kde applications not functioning.

I still have another issue -- which I do not have on other distros -- where Qt barks saying that it cannot find core libraries, ie. widgets, gui, core, network, serialport, etc.

Qt Error:

skipping incompatible /opt/Qt/5.2.1/gcc_64/lib/libQt5Core.so when searching for -lQt5Core
cannot find -lQt5Core
 
Old 04-04-2014, 07:27 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Quote:
Originally Posted by hitormiss View Post
Qt Error:

skipping incompatible /opt/Qt/5.2.1/gcc_64/lib/libQt5Core.so when searching for -lQt5Core
cannot find -lQt5Core
This looks like you are on a multilib system and the linker skips the version of a library that it can not use (for instance if you are compiling a 32-bit program the linker will skip any 64-bit library with the message "skipping incompatible library").
The "cannot find -lQt5Core" which follows next seems to indicate that you are compiling a 32-bit program but forgot to install 32-bit Qt5 libraries on your multilib system.

Eric
 
Old 04-04-2014, 07:40 AM   #6
hitormiss
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
The issue with the Qt 32bit libraries is what I was suspecting. Presently the multilib available from alien only contains qt-4.8.5. I am thinking I may just have to download Qt 5 32bit. <-- I will then have 3 installations of Qt. Is there a way I can generate my own Qt compat32 for Qt 5? I am presently searching the Qt site for version 5 libraries.




**It would be nice if you could do this from the Qt Maintenance Tool. Perhaps I will have to suggest that on their forum**

Last edited by hitormiss; 04-04-2014 at 07:47 AM.
 
Old 04-04-2014, 09:17 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
If you have a 32-bit Qt5 package for Slackware, you can create a compat32 version of it that you can install on your multilib Slackware.

You can compile the 32-bit Qt5 package on that multilib computer, no need for a separate 32-bit Slackware computer. For example (actual package name will likely differ but the i486 versus x86_64 is accurate):
Code:
# source /etc/profile.d/32env.sh
# ARCH=i486 ./qt5.SlackBuild
# convertpkg-compat32 -i /tmp/qt-5.2.1-i486-1.txz
# upgradepkg --install-new /tmp/qt-compat32-5.2.1-x86_64-1compat32.txz
# logout
PS: the "logout" command is needed if you want to compile 64-bit programs by default again.

Eric
 
Old 04-04-2014, 11:09 AM   #8
hitormiss
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
This fixed the issue.

Much obliged for your help Eric!!!

Last edited by hitormiss; 04-11-2014 at 07:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux mint 64bit package required to compile 32bit nasm code jdubya Linux - Newbie 10 11-07-2013 12:01 PM
Many KDE issues in -current (32bit) clicketyclack Slackware 9 08-25-2012 12:54 PM
Slackware 13.37 x64 & Windows 7 x64 Dual Boot Issues toolman30044 Slackware 4 08-08-2011 03:39 PM
Can't compile in Slackware 13.1 x64 chaoschief Slackware 2 12-15-2010 08:01 PM
How to compile source code as 32bit under 64bit OS. Brian1 Linux - Software 2 12-15-2007 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration