<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Feb 9, 2025 at 9:14 AM Peter Bennett <<a href="mailto:pb.mythtv@gmail.com">pb.mythtv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p><br>
    </p>
    <div>On 2/9/25 09:02, James Abernathy wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Sorry about the partial email that went out too soon.</div>
        <div><br>
        </div>
        <div class="gmail_quote">
          <div>
            <div>I think the correct way to use the new cmake build
              stuff has finally sunk into my brain.</div>
            <div><br>
            </div>
            <div>On a fresh nuc box with Fedora Plasma 41 installed I
              followed the cmake readme and this time I built master
              with these commands:</div>
            <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
                </span></span></div>
            <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">cmake
                  --preset qt5
                  -DCMAKE_INSTALL_PREFIX=~/mythtv-output-jfa</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                </span><br>
                <span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">cmake --build
                  build-qt5</span><br>
                <span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                </span><br>
              </span></div>
            <div>This way I didn't need 'sudo' to accomplish this and
              everything is in my $HOME directory.</div>
            <div><br>
            </div>
            <div>At first I did what the Mythtv Build from Source wiki
              calls out for libraries but I also try setting the
              LD_LIBRARY_PATH.</div>
            <div><br>
            </div>
            <div><span style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:arial,sans-serif">I
                created a file /etc/ld.so.conf.d called mythtv.conf with
                the contents:</span></div>
            <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">/home/jim/mythtv-output-jfa/lib/</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                </span><br>
                <span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">/home/jim/mythtv-output-jfa/lib64/</span><br>
              </span></div>
            <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                </span></span><br>
            </div>
            <div>and ran <span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">sudo ldconfig</span><br>
              </span><br>
            </div>
            <div>I added to the end of my ~/.bashrc file the following:</div>
            <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">export
                  LD_LIBRARY_PATH=$LD_LIBRARY_<a>PATH:/home/jim/mythtv-output-jfa/</a></span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                </span><br>
                <span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">export
                  PATH=$<a>PATH:/home/jim/mythtv-output-jfa/bin/</a></span><br>
                <span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                </span><br>
              </span></div>
            <div>mythfrontend --platform xcb runs against my production
              backend just fine.</div>
            <div><br>
            </div>
            <div>Is this sort of what I'm supposed to do?</div>
            <div><br>
            </div>
            <div>Do I need the /etc/ld.so.conf.d stuff or is
              LD_LIBRARY_PATH all I need?</div>
            <div><br>
            </div>
            <div>Jim A</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
</pre>
    </blockquote>
    <p>If you copy it into /usr/local then all the paths are
      automatically sorted out. Otherwise to run from a different
      directory you need a number of variables. This is from test.sh in
      deb-light in the packaging repository:<br>
    </p>
    <p>basedir=$destdir/usr<br>
      export PATH=$basedir/<a>bin:$basedir/local/bin:$PATH</a><br>
      export MYTHTVDIR=$basedir<br>
      export
      LD_LIBRARY_PATH=$basedir/<a>lib:$basedir/share/mythtv/lib:$LD_LIBRARY_PATH</a><br>
      export PYTHONPATH=`ls -d $basedir/local/lib/python*/dist-packages`<br>
      export PERL5LIB=`ls -d
      $basedir/local/share/perl/*`${<a>PERL5LIB:+:$</a>{PERL5LIB}}<br>
    </p>
    <p>test.sh can be used to run packages from the install location
      used with deb-light. See the deb-light readme.</p>
    <p>Peter<br>
    </p>
  </div></blockquote><div><br></div><div>So if I copy all the subdirectories and their contents to /usr/local/ from /home/jim/mythtv-output-jfa/ I will not need to set up any environment variables?</div><div><br></div><div>building mythtv-light works great but I don't think it will work on non-.deb system?</div><div><br></div><div>Jim A</div><div><br></div><div><br></div><div>Jim A<br> <br></div></div></div>