lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openLilyLib on Windows 10


From: Urs Liska
Subject: Re: openLilyLib on Windows 10
Date: Sat, 15 Jul 2017 00:51:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

I will give some more comments to this. I must say I'm at a loss here, although I'm pretty sure the problem is neither in the package itself nor in the way Daniel has "installed" them. I suspect that it's either an OS thing or some peculiarity of downloading ZIP files from Github.


Am 14.07.2017 um 23:57 schrieb Daniel Sanmartín Nieto:
Hello! I come from the GNU LilyPond Facebook group, where I was helped by Mr. Liska, but we couldn't find a solution, so he recommended me to ask in this mailing list. My problem is that I cannot install openLilyLib on Windows 10.

This is the "background":

–I'm trying to install the openLilyLib core package (oll-core) on a Windows 10 computer running LilyPond 2.19.63 and Frescobaldi 3.0.1.

–I followed these steps:
    +I downloaded the oll-core package zip file from git.
    +I unzipped it.
    +I created a folder named "openLilyLib" on my hard disk, in which I copied the oll-core-master folder.
    +I added this folder (C:\openLilyLib\oll-core-master) to the LilyPond's path through the "Preferences" dialog in Frescobaldi.

Maybe *now* I'm seeing the problem!
Actually your description would be wrong as it is "C:\openLilyLib" which has to be in the include path.
But from the Frescobaldi screenshot you posted on FB I know that you actually *have* this.

What I did not know until now is that Github renames the root directory in the ZIP file, adding the branch name to it. So instead of "oll-core" (which is the name of the repository) there is a folder "oll-core-master" in the ZIP file one gets as download.

So I *think* the situation on your computer is as follows:
* There is a directory C:\openLilyLib on your disk
* This directory C:\openLilyLib is added to LilyPond's path through Frescobaldi
* You include "oll-core/package.ily"
* LilyPond looks for this by appending it to all include paths:
  => it looks for C:\openLilyLib\oll-core\package.ily
* But the file actually is in C:\openLilyLib\oll-core-master\package.ily


But when I try to compile something like this:

    \version "2.19.63"
    \include "oll-core-master/package.ily"
    \relative c'' {c4 d e f}

LilyPond returns a "code 1" error. This is the (end of the) output:

    \include
    "oll-core/package.ily"

    Interpreting music...
    Preprocessing graphical objects...
    Finding the ideal number of pages...
    Fitting music on 1 page...
    Drawing systems...
    Layout output to `./tmp-lilypond-QDpLwK'...
    Converting to `document.pdf'...
    Deleting `./tmp-lilypond-QDpLwK'...
    fatal error: failed files: "C:\\Users\\Hp\\AppData\\Local\\Temp\\frescobaldi-fidddenn\\tmpx1ledftl\\document.ly"
    Exited with return code 1.

Well, you should not post the *end* of the log but rather the beginning, where it says "error: cannot find file".

In this post you try to include oll-core-master/package.ily which *looks* right. I assume that when you do this it actually finds the file. But as openLilyLib relies on the directory structure it will then probably choke on later includes.

So please check again, after renaming the oll-core-master directory to oll-core (and do the same with any other packages you may have downloaded).

If this is the solution then it's something I should definitely document. I wasn't aware of that (because I had never downloaded a ZIP from Github before, sorry.

HTH
Urs


Mr. Liska thinked that it could be an issue with the handling of slashes on Windows, so I tried to include several files on other LilyPond documents, testing the include path with both back and forward slashes (and absolute and relative paths), and LilyPond compiled these files without problem.

Could it be an issue with the way that different OS's handle paths? Anybody has installed openLilyLib on Windows? Any idea?

Thank you.


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]