Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Lady Luck brings added income today. Lady friend takes it away tonight.


comp / comp.lang.tcl / Re: Build from source, get terrible fonts

SubjectAuthor
* Build from source, get terrible fontsLuc
+* Re: Build from source, get terrible fontsRich
|+* Re: Build from source, get terrible fontsLuc
||+* Re: Build from source, get terrible fontsJoerg Mertens
|||+* Re: Build from source, get terrible fontsLuc
||||+* Re: Build from source, get terrible fontsRich
|||||`* Re: Build from source, get terrible fontsRobert Heller
||||| +* Re: Build from source, get terrible fontsJoerg Mertens
||||| |`- Re: Build from source, get terrible fontsRobert Heller
||||| `- Re: Build from source, get terrible fontsBenjamin Riefenstahl
||||`* Re: Build from source, get terrible fontsJoerg Mertens
|||| `* Re: Build from source, get terrible fontsLuc
||||  +- Re: Build from source, get terrible fontsRich
||||  `- Re: Build from source, get terrible fontsJoerg Mertens
|||+- Re: Build from source, get terrible fontsRich
|||`- Re: Build from source, get terrible fontsRobert Heller
||`- Re: Build from source, get terrible fontsRich
|`- Re: Build from source, get terrible fontsRobert Heller
+* Re: Build from source, get terrible fontsAnssi Saari
|`- Re: Build from source, get terrible fontsRobert Heller
`- Re: Build from source, get terrible fontsgreg

1
Subject: Build from source, get terrible fonts
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 00:11 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Build from source, get terrible fonts
Date: Fri, 21 Jun 2024 21:11:58 -0300
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <20240621211158.31b71097@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jun 2024 02:11:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1c8b987d75435a3d7048c19b9c681f30";
logging-data="3576307"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bPuWhCkhBupfecfXKISayiMV7eiliiwU="
Cancel-Lock: sha1:JS80r2/dG48yfLOP8ivqJhl/Py8=
View all headers

I built and installed Tcl and Tk 8.6.13 from source. And it works.

Except the fonts. The fonts look awful. Maybe they don't have antialias,
maybe it's something else, I'm not sure. I just know they look awful.
Really awful.

I also have 8.6.6 from my distro's repository and a compact/portable
version of 8.6.13 in FreeWrap, and their fonts look fine. Only my
compiled Tk looks bad.

Then I tried 8.6.14 and had the exact same problem.

Do you people have any idea why? What do you suggest I do to pinpoint
the cause of the problem?

In case you're wondering, I configured it like this:

$ ./configure --disable-symbols --enable-shared --enable-threads --enable-64bit --prefix /opt/tcltk8614 --with-tcl=/home/luc/newtcl/tcl8.6.14/unix

--
Luc
>>

Subject: Re: Build from source, get terrible fonts
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 01:34 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 01:34:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <v559nk$3hr1k$2@dont-email.me>
References: <20240621211158.31b71097@lud1.home>
Injection-Date: Sat, 22 Jun 2024 03:34:44 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="43a00a6c9df3184c62368e08b74e19b2";
logging-data="3730484"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vv5aWGQsx+z8msTUqWEdD"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:Iq6eXHTkXSAGuiED+uKiLOZ/uuw=
View all headers

Luc <luc@sep.invalid> wrote:
> I built and installed Tcl and Tk 8.6.13 from source. And it works.
>
> Except the fonts. The fonts look awful. Maybe they don't have antialias,
> maybe it's something else, I'm not sure. I just know they look awful.
> Really awful.
>
> I also have 8.6.6 from my distro's repository and a compact/portable
> version of 8.6.13 in FreeWrap, and their fonts look fine. Only my
> compiled Tk looks bad.
>
> Then I tried 8.6.14 and had the exact same problem.
>
> Do you people have any idea why?

Run an ldd on the wish which has "good fonts" and on the one that has
"bad fonts". Compare what is linked. I bet you find the "bad fonts"
wish does not link to libfreetype.

> What do you suggest I do to pinpoint the cause of the problem?

The above.

> In case you're wondering, I configured it like this:
>
> $ ./configure --disable-symbols --enable-shared --enable-threads
> --enable-64bit --prefix /opt/tcltk8614
> --with-tcl=/home/luc/newtcl/tcl8.6.14/unix

Check ./configure --help.

See if there is an "enable truetype" or "enable freetype" option.

If yes, rebuild while specifying that option. If you get errors, then
make sure you have the freetype "development" package installed (too
many debian/ubuntu derived distros separate everything into "use" an
"development" packages, and then omit installing the "development"
packages (which made /some/ sense years ago when a 4G hard drive was
considered large). But now, the result is things like 'true type'
support won't be auto-detected by configure unless the development
packages for it are first installed, leading to oddness like what you
just experienced -- the distro package works fine, your custom built
one has weirdness.

Subject: Re: Build from source, get terrible fonts
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 03:05 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 00:05:58 -0300
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <20240622000558.43bb941b@lud1.home>
References: <20240621211158.31b71097@lud1.home>
<v559nk$3hr1k$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jun 2024 05:05:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1c8b987d75435a3d7048c19b9c681f30";
logging-data="3761415"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vGKBoDzxmuFevFctg7YoucYVtJ/xGQ7s="
Cancel-Lock: sha1:p1Bxsc6RAvW/PwwAj0jb0qfSAeU=
View all headers

On Sat, 22 Jun 2024 01:34:44 -0000 (UTC), Rich wrote:

>Check ./configure --help.

The only relevant thing I can find is

--enable-xft use freetype/fontconfig/xft (default: on)

But default is on. I recompiled with --enable-xft and the problem
persists.

>Run an ldd on the wish which has "good fonts" and on the one that has
>"bad fonts". Compare what is linked. I bet you find the "bad fonts"
>wish does not link to libfreetype.

They have a lot in common. These are the lines that the "good" has and
the "bad" or "ugly" doesn't:

libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6
libXss.so.1 => /usr/lib/x86_64-linux-gnu/libXss.so.1
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16

and

libXft-dev => I installed it
libfontconfig-dev => I installed it
libfreetype-dev => already had it
libXss-dev => I installed it
libXext-dev => I installed it
libXrender-dev => I installed it
libexpat-dev => already had it
libpng16-dev => already had it

I recompiled. And the problem persists. And ldd tells me that the libraries
linked in the good one are still absent in my own build.

Now I have no idea what else I need to install to make fonts look good.

--
Luc
>>

Subject: Re: Build from source, get terrible fonts
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 04:24 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 04:24:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <v55jm1$3jhli$1@dont-email.me>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home>
Injection-Date: Sat, 22 Jun 2024 06:24:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="43a00a6c9df3184c62368e08b74e19b2";
logging-data="3786418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fXP1VX6Dq444SlflPkFHI"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:J2Mt/axaN88W3q3LOfh9RFSuElo=
View all headers

Luc <luc@sep.invalid> wrote:
> On Sat, 22 Jun 2024 01:34:44 -0000 (UTC), Rich wrote:
>
>>Run an ldd on the wish which has "good fonts" and on the one that has
>>"bad fonts". Compare what is linked. I bet you find the "bad fonts"
>>wish does not link to libfreetype.
>
> They have a lot in common. These are the lines that the "good" has
> and the "bad" or "ugly" doesn't:
>
> libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2
> libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
> libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6
> libXss.so.1 => /usr/lib/x86_64-linux-gnu/libXss.so.1
> libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
> libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1
> libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
> libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16
>
> and
>
> libXft-dev => I installed it
> libfontconfig-dev => I installed it
> libfreetype-dev => already had it
> libXss-dev => I installed it
> libXext-dev => I installed it
> libXrender-dev => I installed it
> libexpat-dev => already had it
> libpng16-dev => already had it
>
> I recompiled. And the problem persists. And ldd tells me that the
> libraries linked in the good one are still absent in my own build.
>
> Now I have no idea what else I need to install to make fonts look
> good.

Well, obviously there's still some missing critical library "dev pack".
Unfortunately for you, I use a distro that does not do the stupid split
of "user" vs. "dev" for every package and instead just installs
everything needed for development with each package (Slackware) and so
I can't comment on what additional development package you may need to
install. You might try googling for your distro and "how to compile a
program that needs freetype on (distro)" and see if anything recommends
another dev pack that is still missing.

Subject: Re: Build from source, get terrible fonts
From: Joerg Mertens
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 10:05 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!jmertens.eternal-september.org!.POSTED!not-for-mail
From: joerg-mertens@t-online.de (Joerg Mertens)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 12:05:01 +0200
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <v567ke$3n28n$1@jmertens.eternal-september.org>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home>
Injection-Date: Sat, 22 Jun 2024 12:05:03 +0200 (CEST)
Injection-Info: jmertens.eternal-september.org; posting-host="5d4d83005d3402d814048c2d19517f5b";
logging-data="3901790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194sC0olBtbaBrWcypUtYWuEifePfq3Rjg="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
Cancel-Lock: sha1:cD4CBsFqws+h7M6hLldNI8VPP0c=
View all headers

Luc <luc@sep.invalid> wrote:
> On Sat, 22 Jun 2024 01:34:44 -0000 (UTC), Rich wrote:
>
>>Check ./configure --help.
>
> The only relevant thing I can find is
>
> --enable-xft use freetype/fontconfig/xft (default: on)
>
> But default is on. I recompiled with --enable-xft and the problem
> persists.
>
>
>
>>Run an ldd on the wish which has "good fonts" and on the one that has
>>"bad fonts". Compare what is linked. I bet you find the "bad fonts"
>>wish does not link to libfreetype.
>
> They have a lot in common. These are the lines that the "good" has and
> the "bad" or "ugly" doesn't:
>
> libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2
> libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
> libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6
> libXss.so.1 => /usr/lib/x86_64-linux-gnu/libXss.so.1
> libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
> libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1
> libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
> libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16
>
> and
>
> libXft-dev => I installed it
> libfontconfig-dev => I installed it
> libfreetype-dev => already had it
> libXss-dev => I installed it
> libXext-dev => I installed it
> libXrender-dev => I installed it
> libexpat-dev => already had it
> libpng16-dev => already had it
>
> I recompiled. And the problem persists. And ldd tells me that the libraries
> linked in the good one are still absent in my own build.
>
> Now I have no idea what else I need to install to make fonts look good.

A few things you could check:

What does the configure output look like? Was it still unable to
find the missing libraries?

Just making sure: have you started the recompile in a clean source
tree? Safest way is to delete and unpack it again.

What do these "-dev"-packages contain? Shared objects? Header files?
Where are these installed in relation to the system development
files?

Subject: Re: Build from source, get terrible fonts
From: greg
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 10:26 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: gregor.ebbing@gmx.de (greg)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 12:26:01 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <v568rp$3n9oh$1@dont-email.me>
References: <20240621211158.31b71097@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jun 2024 12:26:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="aec08ac5a0701a149d7dc63c517ec55c";
logging-data="3909393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iJXIBgsUm/vkn3/0jUy3/1xM0StlJBic="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/e2INqQux0b30/8hLj8xTA7NEnA=
In-Reply-To: <20240621211158.31b71097@lud1.home>
Content-Language: de-DE
View all headers

Am 22.06.24 um 02:11 schrieb Luc:
> I built and installed Tcl and Tk 8.6.13 from source. And it works.
>
> Except the fonts. The fonts look awful. Maybe they don't have antialias,
> maybe it's something else, I'm not sure. I just know they look awful.
> Really awful.
>
> I also have 8.6.6 from my distro's repository and a compact/portable
> version of 8.6.13 in FreeWrap, and their fonts look fine. Only my
> compiled Tk looks bad.
>
> Then I tried 8.6.14 and had the exact same problem.
>
> Do you people have any idea why? What do you suggest I do to pinpoint
> the cause of the problem?
>
> In case you're wondering, I configured it like this:
>
> $ ./configure --disable-symbols --enable-shared --enable-threads --enable-64bit --prefix /opt/tcltk8614 --with-tcl=/home/luc/newtcl/tcl8.6.14/unix
>

Hello,
I don't know which distro you are using.
For example, with Debian I look at the tk-dev package to see what
dependencies exist.

apt-cache depends tk-dev
or
apt show tk-dev
then continue with
apt-cache depends tk8.6-dev

or with red hat
dnf repoquery --requires tcl-devel

Gregor

Subject: Re: Build from source, get terrible fonts
From: Anssi Saari
Newsgroups: comp.lang.tcl
Organization: An impatient and LOUD arachnid
Date: Sat, 22 Jun 2024 13:47 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anssi.saari@usenet.mail.kapsi.fi (Anssi Saari)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 16:47:12 +0300
Organization: An impatient and LOUD arachnid
Lines: 5
Message-ID: <sm0v821rswv.fsf@lakka.kapsi.fi>
References: <20240621211158.31b71097@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 22 Jun 2024 15:47:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5fe1498fd44f4839c349566be6affefc";
logging-data="3975020"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wrarZS3I85Edhdy1845aC"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:Gi7CZFtANdMFxR8Clx174Y/3JG8=
sha1:Ae6b38f4dobJQRvyARx4P1DkGV4=
View all headers

Luc <luc@sep.invalid> writes:

> What do you suggest I do to pinpoint the cause of the problem?

I suggest you dig up the configure options your distro uses.

Subject: Re: Build from source, get terrible fonts
From: Robert Heller
Newsgroups: comp.lang.tcl
Organization: Deepwoods Software
Date: Sat, 22 Jun 2024 13:57 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-3.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 22 Jun 2024 13:57:43 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.18)
Subject: Re: Build from source, get terrible fonts
In-Reply-To: <v559nk$3hr1k$2@dont-email.me>
References: <20240621211158.31b71097@lud1.home>
<v559nk$3hr1k$2@dont-email.me>
Newsgroups: comp.lang.tcl
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <l3adnfzAzcTKRev7nZ2dnZfqnPGdnZ2d@giganews.com>
Date: Sat, 22 Jun 2024 13:57:43 +0000
Lines: 70
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-uiI9sg5zdWX+uAL+rGkvaXwgrdy93zxoXGJPqItYo4R7siL/Jg9+PMlYGdy/vmuiEy9BOUKaPchGY9m!/ghux7B8uh55sWqe2Ncp1xyw3elh/23/jvU+isX0xzpC0xf1xnGEL88xF6ecZ/CeuYgKXghW+Sl4!g+w=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Sat, 22 Jun 2024 01:34:44 -0000 (UTC) Rich <rich@example.invalid> wrote:

>
> Luc <luc@sep.invalid> wrote:
> > I built and installed Tcl and Tk 8.6.13 from source. And it works.
> >
> > Except the fonts. The fonts look awful. Maybe they don't have antialias,
> > maybe it's something else, I'm not sure. I just know they look awful.
> > Really awful.
> >
> > I also have 8.6.6 from my distro's repository and a compact/portable
> > version of 8.6.13 in FreeWrap, and their fonts look fine. Only my
> > compiled Tk looks bad.
> >
> > Then I tried 8.6.14 and had the exact same problem.
> >
> > Do you people have any idea why?
>
> Run an ldd on the wish which has "good fonts" and on the one that has
> "bad fonts". Compare what is linked. I bet you find the "bad fonts"
> wish does not link to libfreetype.
>
> > What do you suggest I do to pinpoint the cause of the problem?
>
> The above.
>
> > In case you're wondering, I configured it like this:
> >
> > $ ./configure --disable-symbols --enable-shared --enable-threads
> > --enable-64bit --prefix /opt/tcltk8614
> > --with-tcl=/home/luc/newtcl/tcl8.6.14/unix
>
> Check ./configure --help.
>
> See if there is an "enable truetype" or "enable freetype" option.
>
> If yes, rebuild while specifying that option. If you get errors, then
> make sure you have the freetype "development" package installed (too
> many debian/ubuntu derived distros separate everything into "use" an
> "development" packages, and then omit installing the "development"
> packages (which made /some/ sense years ago when a 4G hard drive was
> considered large). But now, the result is things like 'true type'
> support won't be auto-detected by configure unless the development
> packages for it are first installed, leading to oddness like what you
> just experienced -- the distro package works fine, your custom built
> one has weirdness.

It is pretty "standard" for both Debian and RedHat based distros to split off
the "development" library packages. Under Debian for most lib<mumble> package
there is a corresponding lib<mumble>-dev package and under RedHat for some
<mumble> packages there is a <mumble>-devel package. I helieve the idea is
the difference between a "user" experience and a "developer" experience and
keeping things lean for servers and desktop users, by not cluttering things up
with the header and linker files (and whatever else is needed for building
applications).

Debian further complicates things but not necessarily exactly matching the
lib<mumble> with the lib<mumble>-dev, which can be something of a bitch to get
the -dev package you need installed. Things like lib<mumble>-dev goes with
lib<mymble>N, where N is the major version number.

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: Build from source, get terrible fonts
From: Robert Heller
Newsgroups: comp.lang.tcl
Organization: Deepwoods Software
Date: Sat, 22 Jun 2024 13:57 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.quux.org!weretis.net!feeder9.news.weretis.net!border-1.nntp.ord.giganews.com!border-3.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 22 Jun 2024 13:57:44 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.18)
Subject: Re: Build from source, get terrible fonts
In-Reply-To: <v567ke$3n28n$1@jmertens.eternal-september.org>
References: <20240621211158.31b71097@lud1.home>
<v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home>
<v567ke$3n28n$1@jmertens.eternal-september.org>
Newsgroups: comp.lang.tcl
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <HMmdneCo_qDFRev7nZ2dnZfqnPudnZ2d@giganews.com>
Date: Sat, 22 Jun 2024 13:57:44 +0000
Lines: 76
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-2kSKYlvjzPuKBjgP5DxZgFF4tVTnnHYNid6GSsSXcrDWKwwZ0mkHAjBSrOHUEmHOxx/Q2qvqEhm5s8H!p1Y3Zc5t/CIg+E2+mwUgwL5Z0I9qb240y7/FKAJWm7/b3d4g0Ju3hWHgfblfx8dvJ/cUVswO2XYv!SGY=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Sat, 22 Jun 2024 12:05:01 +0200 Joerg Mertens <joerg-mertens@t-online.de> wrote:

>
> Luc <luc@sep.invalid> wrote:
> > On Sat, 22 Jun 2024 01:34:44 -0000 (UTC), Rich wrote:
> >
> >>Check ./configure --help.
> >
> > The only relevant thing I can find is
> >
> > --enable-xft use freetype/fontconfig/xft (default: on)
> >
> > But default is on. I recompiled with --enable-xft and the problem
> > persists.
> >
> >
> >
> >>Run an ldd on the wish which has "good fonts" and on the one that has
> >>"bad fonts". Compare what is linked. I bet you find the "bad fonts"
> >>wish does not link to libfreetype.
> >
> > They have a lot in common. These are the lines that the "good" has and
> > the "bad" or "ugly" doesn't:
> >
> > libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2
> > libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
> > libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6
> > libXss.so.1 => /usr/lib/x86_64-linux-gnu/libXss.so.1
> > libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
> > libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1
> > libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
> > libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16
> >
> > and
> >
> > libXft-dev => I installed it
> > libfontconfig-dev => I installed it
> > libfreetype-dev => already had it
> > libXss-dev => I installed it
> > libXext-dev => I installed it
> > libXrender-dev => I installed it
> > libexpat-dev => already had it
> > libpng16-dev => already had it
> >
> > I recompiled. And the problem persists. And ldd tells me that the libraries
> > linked in the good one are still absent in my own build.
> >
> > Now I have no idea what else I need to install to make fonts look good.
>
> A few things you could check:
>
> What does the configure output look like? Was it still unable to
> find the missing libraries?
>
> Just making sure: have you started the recompile in a clean source
> tree? Safest way is to delete and unpack it again.

+1 +1!

>
> What do these "-dev"-packages contain? Shared objects? Header files?
> Where are these installed in relation to the system development
> files?

The -dev packages contain header files, link libraries, and config files
(PKG_CONFIG or something like that).

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: Build from source, get terrible fonts
From: Robert Heller
Newsgroups: comp.lang.tcl
Organization: Deepwoods Software
Date: Sat, 22 Jun 2024 15:19 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 22 Jun 2024 15:19:23 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.18)
Subject: Re: Build from source, get terrible fonts
In-Reply-To: <sm0v821rswv.fsf@lakka.kapsi.fi>
References: <20240621211158.31b71097@lud1.home>
<sm0v821rswv.fsf@lakka.kapsi.fi>
Newsgroups: comp.lang.tcl
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <z5acnQ0TVobmduv7nZ2dnZfqn_udnZ2d@giganews.com>
Date: Sat, 22 Jun 2024 15:19:23 +0000
Lines: 22
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-fLMySeGwAAH9ECh9Wba4A9MXc8RuvjJbPPt4Pb9gO5ruiaOLdLJhWGG40ZnFZN1JEyut7zWyIlorLuh!6Jyse/Z9a6eOmGqf53OoV3ItAkyTtK1XCIIuIbSeaeOVGIqJHr4seXd0LaXYempNa+XaUIJOxO42!MlA=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

Look in the repo files for tk<mumble>.debian.tar.gz. In the tar archive will
be the build commands (including the ./configure ... command used). Also in
the tk<mumble>.debian.tar.gz will be a file containing the build deps, which
you can check to see if you are still missing something.

At Sat, 22 Jun 2024 16:47:12 +0300 Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> wrote:

>
> Luc <luc@sep.invalid> writes:
>
> > What do you suggest I do to pinpoint the cause of the problem?
>
> I suggest you dig up the configure options your distro uses.
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: Build from source, get terrible fonts
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 16:01 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 13:01:25 -0300
Organization: A noiseless patient Spider
Lines: 100
Message-ID: <20240622130125.1ad691c1@lud1.home>
References: <20240621211158.31b71097@lud1.home>
<v559nk$3hr1k$2@dont-email.me>
<20240622000558.43bb941b@lud1.home>
<v567ke$3n28n$1@jmertens.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jun 2024 18:01:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1c8b987d75435a3d7048c19b9c681f30";
logging-data="4019793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/uimupsFfvRQu75LPoGfcxv/zaBU1fPw="
Cancel-Lock: sha1:IpNaiqY4Zt9kxRG91GWSuCrDVEQ=
View all headers

On Sat, 22 Jun 2024 12:05:01 +0200, Joerg Mertens wrote:

>Just making sure: have you started the recompile in a clean source
>tree? Safest way is to delete and unpack it again.

I always delete and unpack again.

>What does the configure output look like? Was it still unable to
>find the missing libraries?

It looks bad. It says "xft is unusable." I don't understand that at all.
I don't know C. I don't understand compiling.

checking for Tcl configuration... found /home/luc/newtcl/tcl8.6.14/unix/tclConfig.sh
checking for existence of /home/luc/newtcl/tcl8.6.14/unix/tclConfig.sh... loading
checking for tclsh... /usr/bin/tclsh8.6
checking for tclsh in Tcl build directory... /home/luc/newtcl/tcl8.6.14/unix/tclsh
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking if the compiler understands -pipe... yes
checking for pthread_mutex_init in -lpthread... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_atfork... yes
checking for building with threads... yes (threaded core)
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... yes
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... yes
checking if rpath support is requested... yes
checking system version... Linux-4.9.0-3-amd64
checking for dlopen in -ldl... yes
checking for ar... ar
checking if compiler accepts -m64 flag... yes
checking for cast to union support... yes
checking for working -fno-lto... yes
checking for build with symbols... no
checking for required early compiler flags... none
checking for 64-bit integer type... using long
checking whether byte ordering is bigendian... no
checking for fd_set in sys/types... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for intptr_t... yes
checking for uintptr_t... yes
checking pw_gecos in struct pwd... yes
checking for X... libraries , headers
checking for main in -lXbsd... no
checking whether to use xft... no
configure: WARNING: Can't find xft configuration, or xft is unusable
checking for X11/XKBlib.h... no
checking whether XKeycodeToKeysym is deprecated... yes
checking whether to try to use XScreenSaver... yes
checking for X11/extensions/scrnsaver.h... no
checking for XScreenSaverQueryInfo... no
checking for XScreenSaverQueryInfo in -lXext... no
checking for XScreenSaverQueryInfo in -lXss... no
checking whether char is unsigned... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tkConfig.sh
config.status: creating tk.pc

--
Luc
>>

Subject: Re: Build from source, get terrible fonts
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 16:04 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 16:04:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v56sma$3quo7$1@dont-email.me>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home> <v567ke$3n28n$1@jmertens.eternal-september.org>
Injection-Date: Sat, 22 Jun 2024 18:04:27 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="43a00a6c9df3184c62368e08b74e19b2";
logging-data="4029191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BgNNnpmaWH6d+m0nwhFHz"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:0fa1k+YHbV4nG/YyNnKhloQKkZg=
View all headers

Joerg Mertens <joerg-mertens@t-online.de> wrote:
> What do these "-dev"-packages contain? Shared objects? Header files?
> Where are these installed in relation to the system development
> files?

For distro's that do this splitting, the "-dev" packs usually contain
the header files, any *.a files (if static linking is an option), and
any other misc. "development" (i.e., needed to compile, vs. simply run
and link to the shared object) files.

Subject: Re: Build from source, get terrible fonts
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 22 Jun 2024 16:49 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sat, 22 Jun 2024 16:49:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <v56va9$3rfvu$1@dont-email.me>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home> <v567ke$3n28n$1@jmertens.eternal-september.org> <20240622130125.1ad691c1@lud1.home>
Injection-Date: Sat, 22 Jun 2024 18:49:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="43a00a6c9df3184c62368e08b74e19b2";
logging-data="4046846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1999eevydLMtJwo5v9UCbKy"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:KLWVYMIMiFDLjtb/NG6K77Ih1zY=
View all headers

Luc <luc@sep.invalid> wrote:
> On Sat, 22 Jun 2024 12:05:01 +0200, Joerg Mertens wrote:
>>What does the configure output look like? Was it still unable to
>>find the missing libraries?
>
> It looks bad. It says "xft is unusable." I don't understand that at all.

That is why it is not linking to xft, which implies there are still one
or more *-dev packs missing.

> I don't know C. I don't understand compiling.

Look at Robert Heller's post under this message id:

<z5acnQ0TVobmduv7nZ2dnZfqn_udnZ2d@giganews.com>

Then do what he suggests there. That may show which *-dev pack is
still missing, but is required.

Subject: Re: Build from source, get terrible fonts
From: Robert Heller
Newsgroups: comp.lang.tcl
Organization: Deepwoods Software
Date: Sat, 22 Jun 2024 18:50 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 22 Jun 2024 18:50:28 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.18)
Subject: Re: Build from source, get terrible fonts
In-Reply-To: <v56va9$3rfvu$1@dont-email.me>
References: <20240621211158.31b71097@lud1.home>
<v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home>
<v567ke$3n28n$1@jmertens.eternal-september.org>
<20240622130125.1ad691c1@lud1.home> <v56va9$3rfvu$1@dont-email.me>
Newsgroups: comp.lang.tcl
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <dHudnUk0wbNpger7nZ2dnZfqn_GdnZ2d@giganews.com>
Date: Sat, 22 Jun 2024 18:50:28 +0000
Lines: 71
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Qjiuze/vHCBpHszxQx7it1buYVeTnLwxgl98klQMbFtY6O/ENOtBUWFDLZ3S86VVRkDI2ItlQiVESld!e7zeG/WqP7WpNZ4Buf6lQ1y3UHVbAAFEWo1J9EjEU1LkRs6SNuVb+QEvy4LTXJk3AxxjZqWLk1Bm!5as=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Sat, 22 Jun 2024 16:49:13 -0000 (UTC) Rich <rich@example.invalid> wrote:

>
> Luc <luc@sep.invalid> wrote:
> > On Sat, 22 Jun 2024 12:05:01 +0200, Joerg Mertens wrote:
> >>What does the configure output look like? Was it still unable to
> >>find the missing libraries?
> >
> > It looks bad. It says "xft is unusable." I don't understand that at all.
>
> That is why it is not linking to xft, which implies there are still one
> or more *-dev packs missing.
>
> > I don't know C. I don't understand compiling.
>
> Look at Robert Heller's post under this message id:
>
> <z5acnQ0TVobmduv7nZ2dnZfqn_udnZ2d@giganews.com>
>
> Then do what he suggests there. That may show which *-dev pack is
> still missing, but is required.

I just grabed the Tk8.6 debian file for Debian Bookworm (what I am running on
my Raspberry Pi 5) and the revlevant info is:

from the control file:
Build-Depends: debhelper-compat (= 13), dpkg-dev (>= 1.16.1~), x11proto-core-dev,
libx11-dev, libxss-dev, libxext-dev, libxft-dev,
tcl8.6-dev (>= 8.6.8+dfsg-3~)

So Luc needs:

sudo apt install x11proto-core-dev libx11-dev libxss-dev libxext-dev libxft-dev

(probably only libxft-dev is actually needed)

He does not need debhelper-compat and dpkg-dev, since he is not building a
.deb file and does not need tcl8.6-dev, since he is building his own version
of tcl8.6 in a parallel directory and is alreaday accounting for that as
explained in the Tk source tree's README.

Then in rules:

override_dh_auto_configure:
TK_LIBRARY="/usr/share/tcltk/tk$(v)" \
CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
TK_SHLIB_LD_EXTRAS="-Wl,-soname,\$${TK_LIB_FILE}" \
dh_auto_configure -Dunix -- \
--includedir=/usr/include/tcl$(v) \
--with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH)/tcl$(v) \
--enable-shared \

This tells him what extra args to pass to configure (probably nothing he is
not already doing). It looks like all he needs to do is install libxft-dev
and he should be good to go.

I suspect that all downstream Debian based distros (Ubuntu, etc.) don't
re-package Tcl/Tk, beyond just using the base Debian build files.

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: Build from source, get terrible fonts
From: Joerg Mertens
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 23 Jun 2024 10:16 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!jmertens.eternal-september.org!.POSTED!not-for-mail
From: joerg-mertens@t-online.de (Joerg Mertens)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sun, 23 Jun 2024 12:16:29 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <v58slv$9sdt$1@jmertens.eternal-september.org>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home> <v567ke$3n28n$1@jmertens.eternal-september.org> <20240622130125.1ad691c1@lud1.home>
Injection-Date: Sun, 23 Jun 2024 12:16:32 +0200 (CEST)
Injection-Info: jmertens.eternal-september.org; posting-host="7789914b3cfc965f248a3a67d142435a";
logging-data="324034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SWTTK4C1OkrT2F4oSOsubCyehUpUMvr4="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
Cancel-Lock: sha1:sdT2mLHy1Jc7owvA09KF7j+7drY=
View all headers

Luc <luc@sep.invalid> wrote:
[...]
> checking whether to use xft... no
> configure: WARNING: Can't find xft configuration, or xft is unusable
> checking for X11/XKBlib.h... no
> checking whether XKeycodeToKeysym is deprecated... yes
[...]

I don't know if this will help but if you want to dive deeper into
the details here is some more information.

configure executes two commands to find out if it can use xft and
fontconfig:

$ pkg-config --cflags xft fontconfig

and

$ pkg-config --libs xft fontconfig

At least one of them fails or else configure wouldn't print the
warning. You can run the commands interactiveliy to see which files
it doesn't find.

The normal output is something like

-I/usr/X11R6/include -I/usr/X11R6/include/freetype2

and

-L/usr/X11R6/lib -lXft -lfontconfig -lfreetype

respectively.

Now pkg-config gets its information from the *.pc files which are
installed with most (or at least some) libraries. If for example
you have installed all the necessary xft packages, there will be a
file named xft.pc somewhere. This is the "xft configuration"
configure says it cannot find.

One thing you could do is ask your package database where the *.pc
files should be and check if they really exist. If they do exist,
pkg-config has a problem finding them, which can probably be solved
by setting the PKG_CONFIG_PATH environment variable to expand the
search path.

HTH

Subject: Re: Build from source, get terrible fonts
From: Joerg Mertens
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 23 Jun 2024 10:34 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!jmertens.eternal-september.org!.POSTED!not-for-mail
From: joerg-mertens@t-online.de (Joerg Mertens)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Sun, 23 Jun 2024 12:34:37 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <v58tnu$a42d$1@jmertens.eternal-september.org>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home> <v567ke$3n28n$1@jmertens.eternal-september.org> <20240622130125.1ad691c1@lud1.home> <v56va9$3rfvu$1@dont-email.me> <dHudnUk0wbNpger7nZ2dnZfqn_GdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jun 2024 12:34:39 +0200 (CEST)
Injection-Info: jmertens.eternal-september.org; posting-host="7789914b3cfc965f248a3a67d142435a";
logging-data="331862"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LSWbu1ziiadXo10gcU2Xowf/UDN7hK7g="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
Cancel-Lock: sha1:YI8+/jYhcvE/rfbIC6kJyXbvQlc=
View all headers

Robert Heller <heller@deepsoft.com> wrote:
[...]
> This tells him what extra args to pass to configure (probably nothing he is
> not already doing). It looks like all he needs to do is install libxft-dev
> and he should be good to go.

Interestingly, Google found an article in comp.lang.tcl from 2007
with the same `configure´ warning message [1]. This was on an
Ubuntu system but I guess the package system is the same. The
solution was indeed to install the libxft-dev package.

[1] https://groups.google.com/g/comp.lang.tcl/c/Cr0aaF8sIUs

Subject: Re: Build from source, get terrible fonts
From: Robert Heller
Newsgroups: comp.lang.tcl
Organization: Deepwoods Software
Date: Sun, 23 Jun 2024 15:59 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 23 Jun 2024 15:59:45 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.18)
Subject: Re: Build from source, get terrible fonts
In-Reply-To: <v58tnu$a42d$1@jmertens.eternal-september.org>
References: <20240621211158.31b71097@lud1.home>
<v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home>
<v567ke$3n28n$1@jmertens.eternal-september.org>
<20240622130125.1ad691c1@lud1.home> <v56va9$3rfvu$1@dont-email.me>
<dHudnUk0wbNpger7nZ2dnZfqn_GdnZ2d@giganews.com>
<v58tnu$a42d$1@jmertens.eternal-september.org>
Newsgroups: comp.lang.tcl
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <kS-dnZwXEJbs2-X7nZ2dnZfqnPednZ2d@giganews.com>
Date: Sun, 23 Jun 2024 15:59:45 +0000
Lines: 28
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-mCuXtcA3G4/BIpahPQ6dlgVCBknH66zZ5+23XCQ6jpTETVrf7fxmJVahf1VfR24k+AFNfBtbg4CAypH!Xb/KZwOrRB3thZy63oKAaOyq93448MWfVr7SPpuJRr7aYAGKplATjfRoF/xs+kBiEznHYUDKQdwg!YfY=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Sun, 23 Jun 2024 12:34:37 +0200 Joerg Mertens <joerg-mertens@t-online.de> wrote:

>
> Robert Heller <heller@deepsoft.com> wrote:
> [...]
> > This tells him what extra args to pass to configure (probably nothing he is
> > not already doing). It looks like all he needs to do is install libxft-dev
> > and he should be good to go.
>
> Interestingly, Google found an article in comp.lang.tcl from 2007
> with the same `configure´ warning message [1]. This was on an
> Ubuntu system but I guess the package system is the same. The
> solution was indeed to install the libxft-dev package.

Ubuntu is a Debian derived distro. Much of the Ubuntu repo is just rebuilds
of packages in the Debian distro.

>
> [1] https://groups.google.com/g/comp.lang.tcl/c/Cr0aaF8sIUs
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject:
From:
Newsgroups:
Date: Sun, 19 Jan 2025 17:46 UTC
<20240622130125.1ad691c1@lud1.home>
<v58slv$9sdt$1@jmertens.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jun 2024 23:00:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a00db476986ea53d28ff121e492a7097";
logging-data="536784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/syF+aEjWRi81DBVEa5DfC0URVJVVI9Po="
Cancel-Lock: sha1:KEDgZKL4i8XrPRqiTj6vOp//vgA=
View all headers

On Sun, 23 Jun 2024 12:16:29 +0200, Joerg Mertens wrote:

>I don't know if this will help but if you want to dive deeper into
>the details here is some more information.
>
>configure executes two commands to find out if it can use xft and
>fontconfig:
>
>$ pkg-config --cflags xft fontconfig
>
>and
>
>$ pkg-config --libs xft fontconfig
>
>At least one of them fails or else configure wouldn't print the
>warning. You can run the commands interactiveliy to see which files
>it doesn't find.
**************************

Yes, it helps although it won't solve my problem.

# > pkg-config --libs xft fontconfig
-lXft -lfontconfig -lfreetype
# > pkg-config --cflags xft fontconfig
Package 'x11' requires 'xcb >= 1.11.1' but version of xcb is 1.8.4

I give up. The entire system does a formidable job of excluding
people with older systems. The whole spaghetti entanglement of
dependencies puts in place a large number of checkpoints that
make sure violators will be caught even if they cheat. I am caught
again. I give up again.

Thank you.

--
Luc
>>

Subject: Re: Build from source, get terrible fonts
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 24 Jun 2024 01:31 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Mon, 24 Jun 2024 01:31:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v5ai9b$ncql$1@dont-email.me>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home> <v567ke$3n28n$1@jmertens.eternal-september.org> <20240622130125.1ad691c1@lud1.home> <v58slv$9sdt$1@jmertens.eternal-september.org> <20240623180031.549ee2a4@lud1.home>
Injection-Date: Mon, 24 Jun 2024 03:31:24 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4f815eae5751809843a0a06bc1417716";
logging-data="766805"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18i3GtVm/3dmSyOI5KT48dr"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:Q4S1VyO23NTJkK7gRANVfkKYGWE=
View all headers

Luc <luc@sep.invalid> wrote:
> On Sun, 23 Jun 2024 12:16:29 +0200, Joerg Mertens wrote:
>
>>I don't know if this will help but if you want to dive deeper into
>>the details here is some more information.
>>
>>configure executes two commands to find out if it can use xft and
>>fontconfig:
>>
>>$ pkg-config --cflags xft fontconfig
>>
>>and
>>
>>$ pkg-config --libs xft fontconfig
>>
>>At least one of them fails or else configure wouldn't print the
>>warning. You can run the commands interactiveliy to see which files
>>it doesn't find.
> **************************
>
> Yes, it helps although it won't solve my problem.
>
> # > pkg-config --libs xft fontconfig
> -lXft -lfontconfig -lfreetype
> # > pkg-config --cflags xft fontconfig
> Package 'x11' requires 'xcb >= 1.11.1' but version of xcb is 1.8.4

Well, there's the cause, you need to upgrade to a newer xcb.

> I give up. The entire system does a formidable job of excluding
> people with older systems. The whole spaghetti entanglement of
> dependencies puts in place a large number of checkpoints that
> make sure violators will be caught even if they cheat. I am caught
> again. I give up again.

Unfortunately if you want to stay with a "too old" system you do have
to accept that some things will move forward to the point that they
won't compile anymore. That's not the fault of the "system", that's a
conscious choice you made to stay behind.

Subject: Re: Build from source, get terrible fonts
From: Joerg Mertens
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 24 Jun 2024 17:32 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!jmertens.eternal-september.org!.POSTED!not-for-mail
From: joerg-mertens@t-online.de (Joerg Mertens)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Mon, 24 Jun 2024 19:32:04 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <v5cail$11p5k$1@jmertens.eternal-september.org>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me> <20240622000558.43bb941b@lud1.home> <v567ke$3n28n$1@jmertens.eternal-september.org> <20240622130125.1ad691c1@lud1.home> <v58slv$9sdt$1@jmertens.eternal-september.org> <20240623180031.549ee2a4@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Jun 2024 19:32:06 +0200 (CEST)
Injection-Info: jmertens.eternal-september.org; posting-host="d35407e2db1c9c8a86b0861272341238";
logging-data="1107134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OncZgKPBbG0dNtehiyTpnxLFBwL6QbNI="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
Cancel-Lock: sha1:jz5aUYWQRuD6STwxTbdnc+Lt8j8=
View all headers

Luc <luc@sep.invalid> wrote:

> # > pkg-config --libs xft fontconfig
> -lXft -lfontconfig -lfreetype
> # > pkg-config --cflags xft fontconfig
> Package 'x11' requires 'xcb >= 1.11.1' but version of xcb is 1.8.4

But 'x11' is already installed and running on your system, so how
can it have a wrong dependency? Is the output the same for
`pkg-config --cflags x11´? If yes, there is definitely something
wrong with your packages.

Subject: Re: Build from source, get terrible fonts
From: Benjamin Riefenstahl
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Tue, 25 Jun 2024 16:12 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: b.riefenstahl@turtle-trading.net (Benjamin Riefenstahl)
Newsgroups: comp.lang.tcl
Subject: Re: Build from source, get terrible fonts
Date: Tue, 25 Jun 2024 18:12:11 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <87tthh80is.fsf@turtle-trading.net>
References: <20240621211158.31b71097@lud1.home> <v559nk$3hr1k$2@dont-email.me>
<20240622000558.43bb941b@lud1.home>
<v567ke$3n28n$1@jmertens.eternal-september.org>
<20240622130125.1ad691c1@lud1.home> <v56va9$3rfvu$1@dont-email.me>
<dHudnUk0wbNpger7nZ2dnZfqn_GdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 25 Jun 2024 18:12:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f50da5853695aaa4fb112821b7464989";
logging-data="1723955"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lYGiZT1cTWytWhu/DnczTIa0FgFrdjqs="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:AMueOrbchp/7CxkSNWRRsorQeT4=
sha1:Fn6RCG6A3JRPbL9PE3RQIEUoCXM=
View all headers

Hi Robert, Luc,

Robert Heller writes:
> I just grabed the Tk8.6 debian file for Debian Bookworm (what I am
> running on my Raspberry Pi 5) and the revlevant info is:
>
> from the control file:
> Build-Depends: debhelper-compat (= 13), dpkg-dev (>= 1.16.1~), x11proto-core-dev,
> libx11-dev, libxss-dev, libxext-dev, libxft-dev,
> tcl8.6-dev (>= 8.6.8+dfsg-3~)
>
>
> So Luc needs:
>
> sudo apt install x11proto-core-dev libx11-dev libxss-dev libxext-dev libxft-dev
>
> (probably only libxft-dev is actually needed)

Note, there is also "apt-get build-dep emacs". This just installs all
the development packages that the Debian package needed. It will
probably install more than strictly needed, but it is easier to use.

benny

1

rocksolid light 0.9.8
clearnet tor