[mythtv-users] building mythtv for Fedora 41 with cmake
James Abernathy
jfabernathy at gmail.com
Sun Feb 9 14:20:46 UTC 2025
On Sun, Feb 9, 2025 at 9:14 AM Peter Bennett <pb.mythtv at gmail.com> wrote:
>
> On 2/9/25 09:02, James Abernathy wrote:
>
> Sorry about the partial email that went out too soon.
>
> I think the correct way to use the new cmake build stuff has finally sunk
> into my brain.
>
> On a fresh nuc box with Fedora Plasma 41 installed I followed the cmake
> readme and this time I built master with these commands:
>
> cmake --preset qt5 -DCMAKE_INSTALL_PREFIX=~/mythtv-output-jfa
> cmake --build build-qt5
>
> This way I didn't need 'sudo' to accomplish this and everything is in my
> $HOME directory.
>
> At first I did what the Mythtv Build from Source wiki calls out for
> libraries but I also try setting the LD_LIBRARY_PATH.
>
> I created a file /etc/ld.so.conf.d called mythtv.conf with the contents:
> /home/jim/mythtv-output-jfa/lib/
> /home/jim/mythtv-output-jfa/lib64/
>
> and ran sudo ldconfig
>
> I added to the end of my ~/.bashrc file the following:
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jim/mythtv-output-jfa/
> export PATH=$PATH:/home/jim/mythtv-output-jfa/bin/
>
> mythfrontend --platform xcb runs against my production backend just fine.
>
> Is this sort of what I'm supposed to do?
>
> Do I need the /etc/ld.so.conf.d stuff or is LD_LIBRARY_PATH all I need?
>
> Jim A
>
>
>
>
> _______________________________________________
>
> 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:
>
> basedir=$destdir/usr
> export PATH=$basedir/bin:$basedir/local/bin:$PATH
> export MYTHTVDIR=$basedir
> export LD_LIBRARY_PATH=$basedir/
> lib:$basedir/share/mythtv/lib:$LD_LIBRARY_PATH
> export PYTHONPATH=`ls -d $basedir/local/lib/python*/dist-packages`
> export PERL5LIB=`ls -d $basedir/local/share/perl/*`${PERL5LIB:+:$
> {PERL5LIB}}
>
> test.sh can be used to run packages from the install location used with
> deb-light. See the deb-light readme.
>
> Peter
>
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?
building mythtv-light works great but I don't think it will work on
non-.deb system?
Jim A
Jim A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250209/82d5826b/attachment.htm>
More information about the mythtv-users
mailing list