LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-03-2009, 07:33 PM   #16
octoberblu3
Member
 
Registered: Oct 2005
Distribution: Slackware64-current
Posts: 67

Rep: Reputation: 22

Quote:
Originally Posted by dlee99 View Post
So the libs Petri mentions are missing

Which sources exactly do I have to download to build?
Go to any Slackware mirror and go to slackware64-13.0/extra/source/kde3-compat/qt3/ (or just hit the link in the 3rd post.) Download everything in the directory including the profile.d directory.
Code:
mkdir qt3
cd qt3
wget ftp://ftp.slackware.no/pub/linux/slackware/slackware64-current/extra/source/kde3-compat/qt3/*
mkdir profile.d
cd profile.d
wget ftp://ftp.slackware.no/pub/linux/slackware/slackware64-current/extra/source/kde3-compat/qt3/profile.d/*
cd ..
Make sure the .SlackBuild file is executable
Code:
chmod 755 qt3.SlackBuild
Assuming you are running 64-bit, change the ARCH line in the SlackBuild to ARCH=x86_64, save and exit.

Go superuser and run the SlackBuild
Code:
su
./qt3.SlackBuild
This should build a new qt3 with the appropriate links, but it does so in the working /opt/kde3/lib64/qt3 directory. So you need to remove the old package, clean up and reinstall the new good package.
Code:
removepkg qt3
cd /opt/kde3/lib64/
rm -r qt3
installpkg /tmp/qt3-3.3.8b-x86_64-opt2.txz
I hope this helps.
 
Old 09-03-2009, 07:39 PM   #17
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Well, guys/gals, I hate to say it but none of the above worked for me. I rebuilt qt3, uninstalled the installed one, then installed the new one. Fonts still look like crap. Anyone try anything else?
 
Old 09-04-2009, 03:32 AM   #18
dlee99
LQ Newbie
 
Registered: Mar 2006
Location: Berkel en Rodenrijs
Distribution: Slackware64-current
Posts: 21

Rep: Reputation: 2
@ octoberblu3

This is exactly what I did but it didn't work for me either

dlee99
 
Old 09-04-2009, 07:25 AM   #19
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
I also followed the instructions and rebuilt qt3. Still no antialiasing.
 
Old 09-04-2009, 11:02 PM   #20
octoberblu3
Member
 
Registered: Oct 2005
Distribution: Slackware64-current
Posts: 67

Rep: Reputation: 22
Quote:
Originally Posted by dlee99 View Post
@ octoberblu3

This is exactly what I did but it didn't work for me either

dlee99
Well, I don't know if you could reinstall/rebuild the other programs now or reset any preferences that might be caching the old fonts. It seems strange that some programs pick up the new "features" of the lib while others don't.
 
Old 09-05-2009, 05:09 AM   #21
dlee99
LQ Newbie
 
Registered: Mar 2006
Location: Berkel en Rodenrijs
Distribution: Slackware64-current
Posts: 21

Rep: Reputation: 2
It seems that somewhere in the slackbuild script during configuring it is determined that the package doesn't get built against the required libs (xft,xrender and others?)

I am no expert at all so I was not able to find how the configuring sets the parms to build against the correct libs.

This is what the configuring displays in the terminal during execution of the slackbuild script:

Code:
Build type:    linux-g++
Platform notes:         

            - Also available for Linux: linux-kcc linux-icc linux-cxx

Configuration .......  nocrosscompiler minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace network canvas table xml sql opengl release dll thread largefile stl ipv6 system-mng mng system-jpeg jpeg system-png png gif system-zlib bigcodecs x11sm xshape xkb                                                                           
STL support ......... yes                                                                                                            
PCH support ......... no                                                                                                             
IPv6 support ........ yes                                                                                                            
Thread support ...... yes                                                                                                            
NIS support ......... no                                                                                                             
CUPS support ........ no                                                                                                             
Large File support .. partial                                                                                                        
GIF support ......... yes                                                                                                            
MNG support ......... yes (system)                                                                                                   
JPEG support ........ yes (system)                                                                                                   
PNG support ......... yes (system)                                                                                                   
zlib support ........ system                                                                                                         
OpenGL support ...... yes                                                                                                            
NAS sound support ... no                                                                                                             
Session management .. yes                                                                                                            
XShape support ...... yes                                                                                                            
Xinerama support .... no                                                                                                             
Tablet support ...... no                                                                                                             
Xcursor support ..... no                                                                                                             
XRandR support ...... no                                                                                                             
XRender support ..... no                                                                                                             
Xft support ......... no                                                                                                             
XKB Support ......... yes
Petri?


dlee99
 
Old 09-05-2009, 05:41 AM   #22
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by dlee99 View Post
It seems that somewhere in the slackbuild script during configuring it is determined that the package doesn't get built against the required libs (xft,xrender and others?)

I am no expert at all so I was not able to find how the configuring sets the parms to build against the correct libs.

This is what the configuring displays in the terminal during execution of the slackbuild script:

Code:
Build type:    linux-g++
Platform notes:         
...
XRandR support ......no                                                                                                             
XRender support ..... no                                                                                                             
Xft support ......... no                                                                                                             
XKB Support ......... yes
I don't know why Xft support got disabled. Actually the SlackBuild enabled Xft explicitly.
Code:
# And here's what we are currently using.  The "yes" agrees to the GPL, so don't run this script if you
# don't agree.  :-)
echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure \
 -prefix /opt/kde3/lib${LIBDIRSUFFIX}/qt3-${VERSION} \
 -release \
 -system-zlib \
 -system-libpng \
 -qt-imgfmt-png \
 -system-libmng \
 -qt-imgfmt-mng \
 -system-libjpeg \
 -qt-imgfmt-jpeg \
 -qt-gif \
 -thread \
 -stl \
 -no-g++-exceptions \
 -xft \
 -plugin-sql-mysql \
 -plugin-style-cde \
 -plugin-style-compact \
 -qt-style-motif \
 -plugin-style-motifplus \
 -plugin-style-platinum \
 -plugin-style-sgi \
 -plugin-style-windows \
 -enable-opengl
 
Old 09-05-2009, 05:49 AM   #23
dlee99
LQ Newbie
 
Registered: Mar 2006
Location: Berkel en Rodenrijs
Distribution: Slackware64-current
Posts: 21

Rep: Reputation: 2
@grissiom

You are right so it must be checked elsewhere in the script.

Could it be determined by the capabilities of the loaded graphics module? (radeon in my case)

dlee99
 
Old 09-05-2009, 11:53 AM   #24
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
I think I found something interesting:
1) Use Ctrl+C to break the build progress when running qt3.SlackBuild
2) cd /opt/kde3/lib64/qt3 && ./configure -v -xft #yes, it build the package in /opt/kde3/lib64/qt3

then you can see messages like this:
Code:
...
Xcursor auto-detection... ()                                                                
  Could not find Xcursor lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib /lib           
Xcursor disabled.                                                                           
XRandR auto-detection... ()                                                                 
  Could not find XRandR lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib /lib            
XRandR disabled.                                                                            
XRender auto-detection... ()                                                                
  Could not find XRender lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib /lib           
XRender disabled.
...
Actually x-libs is in /usr/X11R6/lib64 instead /usr/X11R6/lib (slackware64 box). So, you should add one line

" -L/usr/X11R6/lib${LIBDIRSUFFIX} \"

after

"echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure \"

Now the final configuration is:
Code:
Build type:    linux-g++
Platform notes:         

            - Also available for Linux: linux-kcc linux-icc linux-cxx

Configuration .......  nocrosscompiler minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace network canvas table xml opengl sql opengl release dll thread largefile stl ipv6 system-mng mng system-jpeg jpeg system-png png gif system-zlib nis cups bigcodecs x11sm xshape xinerama xcursor xrandr xrender xftfreetype xkb                                                                                                                            
STL support ......... yes                                                                                                      
PCH support ......... no                                                                                                       
IPv6 support ........ yes                                                                                                      
Thread support ...... yes                                                                                                      
NIS support ......... yes                                                                                                      
CUPS support ........ yes                                                                                                      
Large File support .. partial                                                                                                  
GIF support ......... yes                                                                                                      
MNG support ......... yes (system)                                                                                             
JPEG support ........ yes (system)                                                                                             
PNG support ......... yes (system)                                                                                             
zlib support ........ system                                                                                                   
OpenGL support ...... yes                                                                                                      
NAS sound support ... no                                                                                                       
Session management .. yes                                                                                                      
XShape support ...... yes                                                                                                      
Xinerama support .... yes                                                                                                      
Tablet support ...... no                                                                                                       
Xcursor support ..... yes                                                                                                      
XRandR support ...... yes
XRender support ..... yes
Xft support ......... yes
XKB Support ......... yes
which will fully utilize your system. After upgrade with the newly build package, ugly fonts gone in qt3 apps ;D
 
Old 09-05-2009, 01:46 PM   #25
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
grissiom, you sir are the man. Added that line, rebuilt, now everthing looks good.
 
Old 09-05-2009, 01:49 PM   #26
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Thanks grissiom.
 
Old 09-05-2009, 02:41 PM   #27
dlee99
LQ Newbie
 
Registered: Mar 2006
Location: Berkel en Rodenrijs
Distribution: Slackware64-current
Posts: 21

Rep: Reputation: 2
It Works!

Thanks grissiom, very good!

But why did it work for others without this change?

I understand that they did not have to change the slackbuild?

dlee99
 
Old 09-05-2009, 02:47 PM   #28
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,463

Rep: Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373
Thanks Grissiom! That's a really weird one, since /usr/X11R6/lib64 == /usr/lib64 (it's just a symlink), and on an x86_64 Linux system /usr/lib64 _should_ be in the default search path, but as you've discovered qt3 needs to be told. I did verify that -L/usr/lib64 (or -L/usr/lib${LIBDIRSUFFIX}) works just as well. Anyway, thanks again! Very good detective work there.
 
Old 09-05-2009, 02:54 PM   #29
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,729

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
I guess it worked without that line for some of us because we had the 32-bit compatibility libraries installed. When configure checked for the existence of those libraries, it found that they were there, but it actually found the 32-bit versions. And then it built the qt package with those libraries. The linker then of course managed to link to the correct ones, so the package was ok.

Just guessing, but maybe the Slackbuild also worked ok for Eric because he already had the compat32 support working, but then Pat rebuilt the package without that...
 
Old 09-05-2009, 03:02 PM   #30
dlee99
LQ Newbie
 
Registered: Mar 2006
Location: Berkel en Rodenrijs
Distribution: Slackware64-current
Posts: 21

Rep: Reputation: 2
Quote:
Originally Posted by Petri Kaukasoina View Post
I guess it worked without that line for some of us because we had the 32-bit compatibility libraries installed. When configure checked for the existence of those libraries, it found that they were there, but it actually found the 32-bit versions. And then it built the qt package with those libraries. The linker then of course managed to link to the correct ones, so the package was ok.

Just guessing, but maybe the Slackbuild also worked ok for Eric because he already had the compat32 support working, but then Pat rebuilt the package without that...
Makes sense,

Indeed I don't have the 32bit compat pkgs installed but I'm glad it works now.

dlee99
 
  


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
Qt4 and font antialiasing not working on 12.2.0 freejack Slackware 2 01-01-2009 02:30 PM
No font antialiasing after update to GTK+ 2.10.4 AntZero Slackware 10 09-27-2006 01:29 AM
font antialiasing gone after installing a new theme venkatrao Linux - General 1 05-07-2005 01:07 AM
Font rendering ugly without antialiasing spidernik84 Fedora 1 03-18-2004 09:37 PM
Mozilla Font Antialiasing? Crickit Linux - Software 3 04-10-2003 05:35 AM

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

All times are GMT -5. The time now is 02:00 PM.

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