WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] dejavu font pathway issue with a compile error  (Read 2916 times)

aus9

  • Guest
[SOLVED] dejavu font pathway issue with a compile error
« on: March 16, 2013, 12:13:26 AM »
Hi

EDIT on sym link partial success but still need advice please

I have 2 issues with this but let me reveal my simple way first.
I load dejavu-fonts-ttf.tcz and test its loaded.......check
As I am running a build script, I tried to refresh my cache as a local user and root user with
Code: [Select]
(I am already root)
# fc-cache
# su -c 'fc-cache ' tc

in running "make check" I can't get past this error

Code: [Select]
# make check
Could not open "/usr/share/fonts/dejavu/DejaVuSans.ttf": No such file or directory

(after error research shows)
sudo find / -name DejaVuSans.ttf
/tmp/tcloop/dejavu-fonts-ttf/usr/local/share/fonts/dejavu/DejaVuSans.ttf
/usr/local/share/fonts/dejavu/DejaVuSans.ttf

Notice compiler is looking at usr/share/fonts but file is under usr/local/share/fonts


issue 2
./configure --help suggests you can set your
Quote
--with-fontdir=path     Specify path to font config directory ( default:
                          fonts/conf.d/).

AFAIK we have /etc/fonts/conf.d

but my configure has prefix=/usr/local and so the configure result screen looks like this

Code: [Select]
Environment settings:
CFLAGS:          -march=i486 -mtune=i686 -Os -pipe -Wall -pedantic -std=gnu99 -D_GNU_SOURCE
CXXFLAGS:        -march=i486 -mtune=i686 -Os -pipe -Wall -pedantic -D_GNU_SOURCE
LDFLAGS:         -Wl,-O1
Build configuration:
cups-config:     system
font directory:  ${prefix}/etc/fonts/conf.d
init directory:  /etc/init.d
gs-path:         /usr/bin/gs
imagefilters:    yes
jpeg:            yes
pdftops:         gs
pdftops-path:    /usr/bin/gs
png:             yes
php:             no
php-config:      system
test-font:       /usr/share/fonts/dejavu/DejaVuSans.ttf
tiff:            yes
avahi:           no
browsing:        none
werror:          no

now my configure line ....it may change has no attempt to set that fonts as I am stumped

Quote
./configure --prefix=/usr/local --with-gs-path=/usr/bin/gs --with-pdftops-path=/usr/bin/gs \
--disable-avahi

This appears to be my culprit
font directory:  ${prefix}/etc/fonts/conf.d

BTW I selected these flags but it still giving me pedantic
Quote
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe "
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe "
export LDFLAGS="-Wl,-O1"

I am currently thinking I may have to remove the prefix line to force the compile into normal /etc/fonts etc?
any advice will be greatly appreciated

###########   would it be acceptable to ##########
add a sym link form /usr/local/share/fonts/dejavu to /usr/share/fonts/dejavu?

Would I then need to have that for tcz to work in future, by adding a tce.installed script?

that does the following:

ln -s /usr/local/share/fonts/dejavu/ /usr/share/fonts/dejavu
fc-cache

by doing so I get past make check error

Gordon
« Last Edit: March 16, 2013, 04:51:48 AM by aus9 »

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: dejavu font pathway issue with a compile error
« Reply #1 on: March 16, 2013, 01:14:37 AM »
Try with:
Code: [Select]
./configure --prefix=/usr/local --with-gs-path=/usr/bin/gs --with-pdftops-path=/usr/bin/gs \
--disable-avahi --with-fontdir=/etc/fonts/conf.d \
--with-test-font-path=/usr/local/share/fonts/dejavu/DejaVuSans.ttf

aus9

  • Guest
Re: dejavu font pathway issue with a compile error
« Reply #2 on: March 16, 2013, 03:38:44 AM »
AmatCoder
will do

its good to see what I wrote, silly me I meant  "path=/usr/local/bin/etc"  I must pay more attention to what I am writing eh? ok using my new config line I get this config result screen

Quote
font directory:  ${prefix}/etc//etc/fonts/conf.d

ok I will remove that string and try again

edit again

new config line now reads
Quote
./configure --prefix=/usr/local --with-gs-path=/usr/local/bin/gs --with-pdftops-path=/usr/local/bin/gs \
--disable-avahi --with-test-font-path=/usr/local/share/fonts/dejavu/DejaVuSans.ttf

config result screen now reads
Code: [Select]
Environment settings:
CFLAGS:          -march=i486 -mtune=i686 -Os -pipe  -Wall -pedantic -std=gnu99 -D_GNU_SOURCE
CXXFLAGS:        -march=i486 -mtune=i686 -Os -pipe  -Wall -pedantic -D_GNU_SOURCE
LDFLAGS:         -Wl,-O1
Build configuration:
cups-config:     system
font directory:  ${prefix}/etc/fonts/conf.d
init directory:  /etc/init.d
gs-path:         /usr/local/bin/gs
imagefilters:    yes
jpeg:            yes
pdftops:         gs
pdftops-path:    /usr/local/bin/gs
png:             yes
php:             no
php-config:      system
test-font:       /usr/local/share/fonts/dejavu/DejaVuSans.ttf
tiff:            yes
avahi:           no
browsing:        none
werror:          no

Let me see how that goes, its much improved

whether I should disable avahi or not time will tell

thanks heaps....no more edits this post
« Last Edit: March 16, 2013, 03:51:25 AM by aus9 »

aus9

  • Guest
Re: dejavu font pathway issue with a compile error
« Reply #3 on: March 16, 2013, 03:55:09 AM »
just ran a ----make check----with result
Quote
All 6 tests passed

no need for sym link for font path so I can remove tce.installed as well.

its looking better

aus9

  • Guest
Re: [SOLVED] dejavu font pathway issue with a compile error
« Reply #4 on: March 16, 2013, 04:54:17 AM »
cups-filters compiles but will need new cups, not yet build

For the moment marked as solved,

I suspect that the config result screen showing pedantic, is throwing up some errors I don't understand. But as make check is passing all tests lets hope its all good.

thanks AmatCoder

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: dejavu font pathway issue with a compile error
« Reply #5 on: March 16, 2013, 07:10:39 AM »
Quote
font directory:  ${prefix}/etc//etc/fonts/conf.d

I see. Then it needs:
Code: [Select]
./configure --prefix=/usr/local --with-gs-path=/usr/bin/gs --with-pdftops-path=/usr/bin/gs \
--disable-avahi --sysconfdir=/etc \
--with-test-font-path=/usr/local/share/fonts/dejavu/DejaVuSans.ttf


I suspect that the config result screen showing pedantic, is throwing up some errors I don't understand. But as make check is passing all tests lets hope its all good.

Don't worry about this...-pedantic is an option of gcc to "issue all the warnings demanded by strict ISO C/C++...". It's setted by developer into some makefile, those errors are not related with the building.


thanks AmatCoder
No problem. ;)


aus9

  • Guest
Re: [SOLVED] dejavu font pathway issue with a compile error
« Reply #6 on: March 16, 2013, 04:26:23 PM »
as I am the local village idiot, I elected not to run
Quote
--sysconfdir=/etc

as my prev post output only seemed to confuse me, so with no string for that it built

Quote
usr/local/etc/cups/cups-browsed.conf
usr/local/etc/fonts/conf.d/99pdftoopvp.conf

so it looks to my 6 brain cells to be a misleading switch.

cheers
« Last Edit: March 16, 2013, 05:06:05 PM by aus9 »