T
Termux4d ago
zy

Compiling Lilypond on Termux

I successfully installed Lilypond music notation software using Termux on my Android (version 12) tablet, but I can't view the PDF after compiling the file. Here's the error message I received (I highlighted the error message I'm trying to understand): ~ $ lilypond myfile.ly GNU LilyPond 2.24.4 (running Guile 3.0) Processing `myfile.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... /data/data/com.termux/files/usr/share/lilypond/2.24.4/ly/init.ly:65:2: error: Guile signaled an error for the expression beginning here (let ((book-handler (if (defined? 'default-toplevel-book-handler) In procedure open_iconv_descriptors: invalid or unknown character encoding LATIN1 Do you have any suggestions on how to fix this issue, or where can I seek help? Thanks so much!
6 Replies
komo
komo4d ago
have you filed an issue in the project page? actually this might be related to iconv
zy
zyOP4d ago
Thanks! I have filed an issue at the project page and posted the question on a few other forums. May I ask what is iconv and how to fix it?
komo
komo4d ago
it's a character encoding converter i want to confirm something, try install iconv package and then try test if echo "foo" > $PREFIX/tmp/foo; iconv -f utf-8 -t latin1 -o $PREFIX/tmp/{bar,foo} successful
zy
zyOP4d ago
Thank you, komo. I installed iconv and tested it by got this message: ~ $ echo "foo" > $PREFIX/tmp/foo; iconv -f utf-8 -t latin1 -o $PREFIX/tmp/{bar,foo} Usage: iconv [-c] [-s] [-f fromcode] [-t tocode] [file ...] or: iconv -l Try '/data/data/com.termux/files/usr/bin/iconv --help' for more information. Any suggestions? The Lilypond's PDF is still not compiling, giving me the same error message as before I installed the iconv package. Thanks again!
Cuteness
Cuteness3d ago
Could you use Markdown code blocks next time? It will make it so Discord does not ruin the formatting. Copy the two following messages and use whichever one doesn't have the backslash \ characters (You are looking for the one with ``` on their own lines before and after it) ``` code or output goes here ```
code or output
goes here
code or output
goes here
komo
komo3d ago
i guess it's lilypond-thing's fault, latin1 should be a valid encoding
Want results from more Discord servers?
Add your server