Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: aus9 on March 16, 2013, 03: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
(I am already root)
# fc-cache
# su -c 'fc-cache ' tc
in running "make check" I can't get past this error
# 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
--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
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
./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
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
-
Try with:
./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
-
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
font directory: ${prefix}/etc//etc/fonts/conf.d
ok I will remove that string and try again
edit again
new config line now reads
./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
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
-
just ran a ----make check----with result
All 6 tests passed
no need for sym link for font path so I can remove tce.installed as well.
its looking better
-
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
-
font directory: ${prefix}/etc//etc/fonts/conf.d
I see. Then it needs:
./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. ;)
-
as I am the local village idiot, I elected not to run
--sysconfdir=/etc
as my prev post output only seemed to confuse me, so with no string for that it built
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