[mythtv-users] MAC
John Hoyt
john.hoyt at gmail.com
Sun Apr 12 16:03:51 UTC 2020
>
> That would be very nice. If I can help in any way please ask.
> I tried to build lots but failed mizerably. If you post HOW you did it I
> can help WRT segsaults
First note I'm using macports for the support libraries. I was using
homebrew up until a week ago and switched back to macports as it seems to
be more compatible with mythfronted compiling on a mac.
Here's the blackmagic I had to do to get it t compile. For the most part,
this should work in a zsh or sh script. Note there is one manual code fix
required (packaging/OSX/build/makebundle.sh). Also, it appears that my
case-sensitive filesystem caused issues on linking the "VideoToolbox"
framework (mythtv source has changed this incorrectly listed at
VideoToolBox). I've brute forced a sed command to fix the framework
reference. The main files that requires a fix is $SRC_DIR/libs/libmythtv/
libmythtv.pro.
You probably want to skip the fix I put in for VideoToolbox below.
# Step 1, install macports
# Specify mythtv version to pull from git
MYTHTV_VERS="fixes/31"
# setup the working directory structure
REPO_DIR=~/mythtv-31
mkdir -p $REPO_DIR
# setup mythtv source from git
cd $REPO_DIR
git clone -b $MYTHTV_VERS git://github.com/MythTV/mythtv.git
cd $REPO_DIR/mythtv
git clone https://github.com/MythTV/packaging.git
SRC_DIR=$REPO_DIR/mythtv/mythtv
# add necessary packages from macports
sudo port install pkgconfig qt5-qtwebkit qt5-qtscript qt5 yasm
libsamplerate taglib libbluray exiv2 lame x264 x265 openssl libxml2 gsed
# fix add of framework VideoToolbox in libmyth/libmyth.pro
# This may only be necessary in case sensitive file systems
grep -rli 'VideoToolBox' * | xargs -I@ gsed -i ''
's/VideoToolBox/VideoToolbox/g' @
# comment out filters in packaging (...I think they've been removed???)
# file is $REPO_DIR/packaging/OSX/build/makebundle.sh
# ...I don't have an automated way to do this yet, so comment out the
following line:
#73: echo "Installing filters"
#74: make -C ../../filters INSTALL_ROOT=`pwd` install
>/dev/null
# add links to some of the macports packages
cd $SRC_DIR
ln -s /opt/local/include/samplerate.h
$SRC_DIR/libs/libmyth/audio/samplerate.h
mkdir -p $SRC_DIR/libs/libmythmetadata/libbluray/
ln -s /opt/local/include/libbluray/*.h
$SRC_DIR/libs/libmythmetadata/libbluray/
mkdir -p $SRC_DIR/libs/libmythmetadata/exiv2/
ln -s /opt/local/include/exiv2/*.h* $SRC_DIR/libs/libmythmetadata/exiv2/
mkdir -p $SRC_DIR/libs/libmyth/openssl/
ln -s /opt/local/include/openssl/*.h $SRC_DIR/libs/libmyth/openssl/
# configure mythfrontend
./configure --enable-mac-bundle --qmake=/opt/local/libexec/qt5/bin/qmake
--disable-backend --runprefix=../Resources --disable-lirc --disable-distcc
--extra-cflags="-fno-stack-check" --extra-cxxflags="-fno-stack-check"
#compile mythfrontend
make
# Package up the executable
cd $SRC_DIR/programs/mythfrontend
/opt/local/libexec/qt5/bin/macdeployqt mythfrontend.app
$REPO_DIR/mythtv/packaging/OSX/build/makebundle.sh mythfrontend.app
cp mythfrontend.icns mythfrontend.app/Contents/Resources/application.icns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200412/d58f370f/attachment.htm>
More information about the mythtv-users
mailing list