[mythtv-users] building mythtv for Fedora 41 with cmake
James Linder
jam at tigger.ws
Sun Feb 9 20:57:12 UTC 2025
> On Feb 9, 2025, at 22:13, 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
Jim the way we build and try various systems I can’t imagine why you’d give a curley wossname about sudo but changing permissions of /usr/local/ for the duration of the build seems much easier.
For moi I’d just use sudo and “in the unlikely event of depressuration …” just rebuild (and cmake again just to watch :-)
James
More information about the mythtv-users
mailing list