ElvishArtisan / rivendell

A full-featured radio automation system targeted for use in professional broadcast and media environments
197 stars 63 forks source link

Trouble compiling #910

Open zotz opened 10 months ago

zotz commented 10 months ago

Trying to follow this guide for ubuntu 22.04 (perhaps ubuntu studio 22.04)

What I think is the key info for the trouble during make:

Making all in docs make[1]: Entering directory '/home/rd/rivendell/docs' Making all in stylesheets make[2]: Entering directory '/home/rd/rivendell/docs/stylesheets' xsltproc -o book-fo-titlepages.xsl ../../helpers/docbook/template/titlepage.xsl book-fo-titlepages-spec.xml warning: failed to load external entity "../../helpers/docbook/template/titlepage.xsl" cannot parse ../../helpers/docbook/template/titlepage.xsl make[2]: [Makefile:532: book-fo-titlepages.xsl] Error 4 make[2]: Leaving directory '/home/rd/rivendell/docs/stylesheets' make[1]: [Makefile:434: all-recursive] Error 1 make[1]: Leaving directory '/home/rd/rivendell/docs' make: *** [Makefile:552: all-recursive] Error 1

Is titlepage.xsl missing or am i still largely ignorant as to how to track down the issue?

I think I just did this the other day on a different machine and I don't recall having this issue. I had later issues that required a complete reinstall of all the software on that machine so I cannot go back and check.

drew

zotz commented 10 months ago

I tried again. I don't know what I did different, but it seems to have gotten further in the make process..

Will report further.

zotz commented 10 months ago

Well, there were problems. I had 4 logs going. Main, Aux1&2, V101.

Audio from the various logs was ending up in other log machine outputs.

using jackd.

Then after a reboot, v101 log would not start up and play. That was when I noticed nothing was going to the /var/log/rivendell/operations logs.

Tried building a deb. failed. it has been many years now and I forgot what I used to do.

Had the bright idea to pull down the exact code to match what I was running on this machine and what I am running on the laptop I just setup from the repos.

Now I am back to the docbook issue and I cannot get anywhere. I feel like I am going backwards.

Are there common mistakes when green people try this?

brettpatram commented 10 months ago

I haven't compiled Rivendell from source since 2007 I gave this a go today, and actually really do want the docs to build Under Ubuntu 22.04 I hit the same errors where make tries to enter the /helpers/docbook/template/ and fails to load files All dependencies are met here and I do have the DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns env set

It's looking for files and directories to exist within /helpers/docbook that don't exist. However these files/ folders do exist on my system under /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/ My solution was to copy all files and directories from that path into //helpers/docbook/ directory of the project That seems to satisfy it and now I can move past that point onto the remaining tasks

Looking at this closer I think I see the problem Many of the AM files within the directories under /docs do reference that environment variable to obtain the correct path for the stylesheets Except for the AM file under /docs/stylesheets -- its void of any reference to this. And for me, this was the stage that it was failing at make[2]: Entering directory '/home/rd/v4.1.0/docs/stylesheets' It's possible there are some additional folders with AM files missing this as well.

My hack of just copying the contents from the desired path to the /helpers/docbook path got me past it. I suppose I could have just symlinked it instead.

ElvishArtisan commented 9 months ago

I haven't compiled Rivendell from source since 2007 I gave this a go today, and actually really do want the docs to build Under Ubuntu 22.04 I hit the same errors where make tries to enter the /helpers/docbook/template/ and fails to load files

See https://wiki.rivendellaudio.org/index.php/Building_Rivendell_from_source.

All dependencies are met here and I do have the DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns env set

As a test that the environment is correct, do:

ls $DOCBOOK_STYLESHEETS

you should get back something like

assembly     epub3         javahelp   roundtrip       VERSION      xhtml5
catalog.xml  fo            lib        slides          VERSION.xsl
common       highlighting  log        svn-commit.tmp  webhelp
docsrc       html          manpages   template        website
eclipse      htmlhelp      params     tests           xhtml
epub         images        profiling  tools           xhtml-1_1
zotz commented 9 months ago

I was having this problem recently.

the last line of my .bashrc is: DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns

but when I:

@.***:~$ echo $DOCBOOK_STYLESHEETS

@.***:~$

I get an answer that shows it is unset.

Then I: @.:~$ export DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns @.:~$ echo $DOCBOOK_STYLESHEETS /usr/share/xml/docbook/stylesheet/docbook-xsl-ns @.***:~$

and all seems good. Perhaps this will be more of a clue for you or Fred than it is for me. Right now, I am just doing this as a work around as opposed to finding a fix.

all the best,

drew

On Sat, Sep 9, 2023 at 1:09 PM brett @.***> wrote:

I haven't compiled Rivendell from source since 2007 I gave this a go today, and actually really do want the docs to build Under Ubuntu 22.04 I hit the same errors where make tries to enter the /helpers/docbook/template/ and fails to load files All dependencies are met here and I do have the DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns env set

It's looking for files and directories to exist within /helpers/docbook that don't exist. However these files/ folders do exist on my system under /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/ My solution was to copy all files and directories from that path into //helpers/docbook/ directory of the project That seems to satisfy it and now I can move past that point onto the remaining tasks

Looking at this closer I think I see the problem Many of the AM files within the directories under /docs do reference that environment variable to obtain the correct path for the stylesheets Except for the AM file under /docs/stylesheets -- its void of any reference to this. And for me, this was the stage that it was failing at make[2]: Entering directory '/home/rd/v4.1.0/docs/stylesheets' It's possible there are some additional folders with AM files missing this as well.

My hack of just copying the contents from the desired path to the /helpers/docbook path got me past it. I suppose I could have just symlinked it instead.

— Reply to this email directly, view it on GitHub https://github.com/ElvishArtisan/rivendell/issues/910#issuecomment-1712556978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEWEDTZ7HRLHDVHAPNW3STXZSPE7ANCNFSM6AAAAAA4PI5PQU . You are receiving this because you authored the thread.Message ID: @.***>

-- Enjoy the Paradise Island Cam playing Bahamian Or Nuttin - https://www.paradiseislandcam.com/

zotz commented 9 months ago

Fred,

On Sun, Sep 10, 2023 at 9:10 AM Fred Gleason @.***> wrote:

I haven't compiled Rivendell from source since 2007 I gave this a go today, and actually really do want the docs to build Under Ubuntu 22.04 I hit the same errors where make tries to enter the /helpers/docbook/template/ and fails to load files

See https://wiki.rivendellaudio.org/index.php/Building_Rivendell_from_source.

All dependencies are met here and I do have the DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns env set

As a test that the environment is correct, do:

ls $DOCBOOK_STYLESHEETS

What directory are we to do this from?

you should get back something like

assembly epub3 javahelp roundtrip VERSION xhtml5 catalog.xml fo lib slides VERSION.xsl common highlighting log svn-commit.tmp webhelp docsrc html manpages template website eclipse htmlhelp params tests xhtml epub images profiling tools xhtml-1_1

I am getting nothing like this.

all the best,

drew -- Enjoy the Paradise Island Cam playing Bahamian Or Nuttin - https://www.paradiseislandcam.com/

brettpatram commented 9 months ago

As a test that the environment is correct, do:

ls $DOCBOOK_STYLESHEETS

rd@rivendell-builds1:~/v4.1.0/docs/apis$ ls $DOCBOOK_STYLESHEETS

assembly     common   epub   fo            html      images    lib       profiling  slides    VERSION      website  xhtml-1_1
catalog.xml  eclipse  epub3  highlighting  htmlhelp  javahelp  manpages  roundtrip  template  VERSION.xsl  xhtml    xhtml5

To confirm, yes in my environment I do get back the expected result

zotz commented 9 months ago

What are you all doing? (More likely, what am I doing wrong?) I am getting this:

@.:~/rivtries/rivendell-4.1.0/docs/apis$ ls $DOCBOOK_STYLESHEETS cae.html cae.pdf cae.xml fonts.html fonts.pdf fonts.rdadmin.configure_rdairplay_screenshot.png fonts.rdadmin.configure_rdairplay_screenshot.xcf fonts.rdairplay_screenshot.png fonts.rdairplay_screenshot.xcf fonts.rdcartslots_screenshot.png fonts.rdcartslots_screenshot.xcf fonts.rdcastmanager.list_carts.png fonts.rdcastmanager.list_carts.xcf fonts.rdcastmanager.uploading_audio_screenshot.png fonts.rdcastmanager.uploading_audio_screenshot.xcf fonts.rdlibrary.edit_audio_screenshot.png fonts.rdlibrary.edit_audio_screenshot.xcf fonts.xml Makefile Makefile.am Makefile.in notification.html notification.pdf notification.xml ripc.html ripc.pdf ripc.xml web_api.html web_api.pdf web_api.xml @.:~/rivtries/rivendell-4.1.0/docs/apis$

all the best,

drew

On Sun, Sep 10, 2023 at 9:34 AM brett @.***> wrote:

As a test that the environment is correct, do:

ls $DOCBOOK_STYLESHEETS

@.***:~/v4.1.0/docs/apis$ ls $DOCBOOK_STYLESHEETS

assembly common epub fo html images lib profiling slides VERSION website xhtml-1_1 catalog.xml eclipse epub3 highlighting htmlhelp javahelp manpages roundtrip template VERSION.xsl xhtml xhtml5

To confirm, yes in my environment I do get back the expected result

— Reply to this email directly, view it on GitHub https://github.com/ElvishArtisan/rivendell/issues/910#issuecomment-1712815877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEWEDQ3TZZ5V4XW6QZNLYLXZW6UVANCNFSM6AAAAAA4PI5PQU . You are receiving this because you authored the thread.Message ID: @.***>

-- Enjoy the Paradise Island Cam playing Bahamian Or Nuttin - https://www.paradiseislandcam.com/

zotz commented 9 months ago

Ah... I see:

@.***:~$ echo $DOCBOOK_STYLESHEETS

@.:~$ export DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns @.:~$ echo $DOCBOOK_STYLESHEETS /usr/share/xml/docbook/stylesheet/docbook-xsl-ns @.:~$ ls $DOCBOOK_STYLESHEETS assembly epub html lib slides website catalog.xml epub3 htmlhelp manpages template xhtml common fo images profiling VERSION xhtml-1_1 eclipse highlighting javahelp roundtrip VERSION.xsl xhtml5 @.:~$

drew

On Sun, Sep 10, 2023 at 9:34 AM brett @.***> wrote:

As a test that the environment is correct, do:

ls $DOCBOOK_STYLESHEETS

@.***:~/v4.1.0/docs/apis$ ls $DOCBOOK_STYLESHEETS

assembly common epub fo html images lib profiling slides VERSION website xhtml-1_1 catalog.xml eclipse epub3 highlighting htmlhelp javahelp manpages roundtrip template VERSION.xsl xhtml xhtml5

To confirm, yes in my environment I do get back the expected result

— Reply to this email directly, view it on GitHub https://github.com/ElvishArtisan/rivendell/issues/910#issuecomment-1712815877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEWEDQ3TZZ5V4XW6QZNLYLXZW6UVANCNFSM6AAAAAA4PI5PQU . You are receiving this because you authored the thread.Message ID: @.***>

-- Enjoy the Paradise Island Cam playing Bahamian Or Nuttin - https://www.paradiseislandcam.com/