part-cw / lambdanative

LambdaNative is a cross-platform development environment written in Scheme, supporting Android, iOS, BlackBerry 10, OS X, Linux, Windows, OpenBSD, NetBSD, FreeBSD and OpenWrt.
http://www.lambdanative.org
Other
1.39k stars 86 forks source link

Error with Xelatex when building DemoSensors #218

Open BusFactor1Inc opened 5 years ago

BusFactor1Inc commented 5 years ago

When testing, I can build Calculator fine, but when trying to build DemoSensors I get the following errors:

bash-3.2$ ./configure DemoSensors ios
==> configured to build DemoSensors for ios in normal mode
 == using source in /Users/burton/lambdanative/apps/DemoSensors
bash-3.2$ make
=== using profile your profile name here [/Users/burton/lambdanative/PROFILE]..
=== configured to build DemoSensors version 1.6 for ios on macosx in normal mod\
e

==> checking for required tools..
==> checking for required libraries..
==> checking for lambdanative tools..
==> creating libraries needed for DemoSensors..
 => liblambdanative..
 => cleaning up..
 => exploding library liblambdanative..
==> creating artwork needed for DemoSensors..
 => generating default splash images..
 => generating 20x20 pixmap..
 => generating 29x29 pixmap..
 => generating 40x40 pixmap..
 => generating 57x57 pixmap..
 => generating 58x58 pixmap..
 => generating 60x60 pixmap..
 => generating 72x72 pixmap..
 => generating 76x76 pixmap..
 => generating 80x80 pixmap..
 => generating 87x87 pixmap..
 => generating 120x120 pixmap..
 => generating 152x152 pixmap..
 => generating 167x167 pixmap..
 => generating 180x180 pixmap..
 => generating 1024x1024 pixmap..
==> creating textures needed for DemoSensors..
 => /Users/burton/lambdanative/apps/DemoSensors/textures/artwork.png..
==> creating fonts needed for DemoSensors..
 => ascii using glyph set /Users/burton/lambdanative/fonts/ascii7.set..
==> creating strings needed for DemoSensors..
 => exit..
xelatex tmp.tex
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018/MacPorts 2018.4764\
2_7) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2018-04-01> patch level 2
Babel <3.18> and hyphenation patterns for 3 language(s) loaded.
kpathsea:make_tex: Invalid filename `[lmroman10-regular]', contains '['
kpathsea:make_tex: Invalid filename `[lmroman10-bold]', contains '['
kpathsea:make_tex: Invalid filename `[lmroman10-italic]', contains '['
ERROR: failed on file tmp.pdf
BUILD FAILED - configure with verbose option for more information
make: *** [all] Error 1

I've install xelatex using macPorts on Mojave.

BusFactor1Inc commented 5 years ago

Removing xelatex packages allows the use of libgd, and the error does not occur.

mgorges commented 5 years ago

The problem is still interesting as it seems to be either an incomplete xelatex or a package conflict of some sort in your installation. If you don't need latex support for anything else, this should work well though.

BusFactor1Inc commented 5 years ago

What else would latex support be needed for other than rendering strings?

mgorges commented 5 years ago

For lambdanative that is correct, but I for example need it to typeset papers?

BusFactor1Inc commented 5 years ago

Oh, haha. I thought it might be used for other things in LN. Thanks for the clarification.

Calculator did build using latex for some reason using the install, but not the DemoSensors. I didn't notice a difference in image quality between the latex and libgd renderings, so I'll stick with libgd since it works :)

mgorges commented 5 years ago

I find this odd, as why would xelatex work in one case but not the other? DemoSensors builds these FONTS: cmss.ttf 7 12,30 ascii and uses cmss.ttf also for its strings Calculator uses these FONTS DejaVuSans.ttf ascii7.set 32,24,14 calc and has no STRINGS.

--> It seems to be related to rendering the exit string, which is cmss.ttf 24 "Exit" exit