Mailing List Archive

1 2 3 4 5 6 7  View All
Re: mac build [ In reply to ]
> On 7 Feb 2021, at 8:59 pm, John Hoyt <john.hoyt@gmail.com> wrote:
>
>
> Another possibility is that you're compiling with a case-sensitive filesystem. I found the case-sensitive filesystem to be troublesome and moved my build systems to case-insensitive systems (which is what Apple recommends for developers and regular users).

John I recall your issues, but I did then and am now using a case sensitive fs,

I'll do the install now, and build in a case insensitive VM.

All macports are gone, reinstalled Mythfrontend with the version I got from SourceForge, even though I know better

[plasma] /Users/jam [546]% ls /opt
[plasma] /Users/jam [547]% /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend
dyld: Library not loaded: /opt/local/lib/libjpeg.9.dylib
Referenced from: /Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit
Reason: image not found
/Applications/Mythfrontend.app/Contents/MacOS/mythfrontend: line 15: 1222 Abort trap: 6 ./mythfrontend.real $@

james
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
On Sun, Feb 7, 2021 at 8:39 AM James Linder <jam@tigger.ws> wrote:

>
>
> > On 7 Feb 2021, at 8:59 pm, John Hoyt <john.hoyt@gmail.com> wrote:
> >
> >
> > Another possibility is that you're compiling with a case-sensitive
> filesystem. I found the case-sensitive filesystem to be troublesome and
> moved my build systems to case-insensitive systems (which is what Apple
> recommends for developers and regular users).
>
> John I recall your issues, but I did then and am now using a case
> sensitive fs,
>
> I'll do the install now, and build in a case insensitive VM.
>
> All macports are gone, reinstalled Mythfrontend with the version I got
> from SourceForge, even though I know better
>
> [plasma] /Users/jam [546]% ls /opt
> [plasma] /Users/jam [547]%
> /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend
> dyld: Library not loaded: /opt/local/lib/libjpeg.9.dylib
> Referenced from:
> /Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit
> Reason: image not found
> /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend: line 15: 1222
> Abort trap: 6 ./mythfrontend.real $@
>

can you run the following and send back the output:

otool -L /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real

ls /Applications/Mythfrontend.app/Contents/
Re: mac build [ In reply to ]
> On Feb 7, 2021, at 7:23 AM, John Hoyt <john.hoyt@gmail.com> wrote:
>
> audio/audiooutputbase.cpp:630:18: error: use of undeclared identifier 'ff_codec_id_string'
> .arg(ff_codec_id_string(m_codec))
> ^
>
> What I believe is happening is the compiler is trying to build off of ffmpeg's libraries and not the ones compiled and used internally by mythtv. I never did sort this pathing issue out myself, but the easy solution is to uninstall ffmpeg.

I think you may be running into a quirk of pkg-config where it supplies an include path that we really don’t need or want. Try adding the following to your environment variables before initiating a build:

PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include

And, of course, replace ${prefix} with whatever your install prefix is.

For whatever reasons, pkg-config knows not to do this on Linux systems.

Craig
Re: mac build [ In reply to ]
> On 7 Feb 2021, at 9:51 pm, John Hoyt <john.hoyt@gmail.com> wrote:
>
>
>
> On Sun, Feb 7, 2021 at 8:39 AM James Linder <jam@tigger.ws> wrote:
>
>
> > On 7 Feb 2021, at 8:59 pm, John Hoyt <john.hoyt@gmail.com> wrote:
> >
> >
> > Another possibility is that you're compiling with a case-sensitive filesystem. I found the case-sensitive filesystem to be troublesome and moved my build systems to case-insensitive systems (which is what Apple recommends for developers and regular users).
>
> John I recall your issues, but I did then and am now using a case sensitive fs,
>
> I'll do the install now, and build in a case insensitive VM.
>
> All macports are gone, reinstalled Mythfrontend with the version I got from SourceForge, even though I know better
>
> [plasma] /Users/jam [546]% ls /opt
> [plasma] /Users/jam [547]% /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend
> dyld: Library not loaded: /opt/local/lib/libjpeg.9.dylib
> Referenced from: /Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit
> Reason: image not found
> /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend: line 15: 1222 Abort trap: 6 ./mythfrontend.real $@
>
> can you run the following and send back the output:
>
> otool -L /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real
>
> ls /Applications/Mythfrontend.app/Content

[plasma] /Applications [535]% otool -L /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real
/Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real:
@executable_path/../Frameworks/libmythswscale.5.dylib (compatibility version 5.0.0, current version 5.5.100)
@executable_path/../Frameworks/libmythavformat.58.dylib (compatibility version 58.0.0, current version 58.29.100)
@executable_path/../Frameworks/libmythswresample.3.dylib (compatibility version 3.0.0, current version 3.5.100)
@executable_path/../Frameworks/libmythavutil.56.dylib (compatibility version 56.0.0, current version 56.31.100)
@executable_path/../Frameworks/libmythavcodec.58.dylib (compatibility version 58.0.0, current version 58.54.100)
@executable_path/../Frameworks/libmythpostproc.55.dylib (compatibility version 55.0.0, current version 55.5.100)
@executable_path/../Frameworks/libmythavfilter.7.dylib (compatibility version 7.0.0, current version 7.57.100)
@executable_path/../Frameworks/mythtv.framework/mythtv (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythupnp.framework/mythupnp (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythbase.framework/mythbase (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythui.framework/mythui (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/myth.framework/myth (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythmetadata.framework/mythmetadata (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythservicecontracts.framework/mythservicecontracts (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythprotoserver.framework/mythprotoserver (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/mythfreemheg.framework/mythfreemheg (compatibility version 31.0.0, current version 31.0.0)
@executable_path/../Frameworks/libtag.1.dylib (compatibility version 1.0.0, current version 1.17.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
@executable_path/../Frameworks/libXrandr.2.dylib (compatibility version 5.0.0, current version 5.0.0)
@executable_path/../Frameworks/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
@executable_path/../Frameworks/libass.9.dylib (compatibility version 11.0.0, current version 11.1.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
@executable_path/../Frameworks/libhdhomerun.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../Frameworks/libxml2.2.dylib (compatibility version 12.0.0, current version 12.10.0)
@executable_path/../Frameworks/libx264.157.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../Frameworks/libmp3lame.0.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/../Frameworks/libfontconfig.1.dylib (compatibility version 14.0.0, current version 14.0.0)
@executable_path/../Frameworks/libfreetype.6.dylib (compatibility version 24.0.0, current version 24.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
@executable_path/../Frameworks/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
@executable_path/../Frameworks/libbluray.2.dylib (compatibility version 6.0.0, current version 6.0.0)
@executable_path/../Frameworks/libsamplerate.0.dylib (compatibility version 2.0.0, current version 2.8.0)
@executable_path/../Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets (compatibility version 5.9.0, current version 5.9.2)
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.15.0, current version 5.15.2)
@executable_path/../Frameworks/QtWebKit.framework/Versions/5/QtWebKit (compatibility version 5.9.0, current version 5.9.2)
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.15.0, current version 5.15.2)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1670.0.0)
/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 1.0.0)
@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.15.0, current version 5.15.2)
@executable_path/../Frameworks/QtXml.framework/Versions/5/QtXml (compatibility version 5.15.0, current version 5.15.2)
@executable_path/../Frameworks/QtSql.framework/Versions/5/QtSql (compatibility version 5.15.0, current version 5.15.2)
@executable_path/../Frameworks/QtScript.framework/Versions/5/QtScript (compatibility version 5.15.0, current version 5.15.2)
@executable_path/../Frameworks/QtDBus.framework/Versions/5/QtDBus (compatibility version 5.15.0, current version 5.15.2)
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.15.0, current version 5.15.2)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
[plasma] /Applications [536]%

[plasma] /Applications [537]% ls /Applications/Mythfrontend.app/Contents/
Frameworks Info.plist MacOS PkgInfo PlugIns Resources
[plasma] /Applications [538]%

James








_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
> On Feb 7, 2021, at 8:38 AM, James Linder <jam@tigger.ws> wrote:
>
> All macports are gone

If it helps, a simple and quick way to do this is:

# show a list of all the ports you asked MacPorts to install so
# that we can easily put them back later
# maybe save this to a file
port echo requested

# don’t completely uninstall all your ports, just deactivate them
sudo port deactivate active

< do whatever>

# activate your desired ports
sudo port activate <any or all of the ports previously deactivated>


The key is that you don’t have to download any ports--and possibly build some from source. An installer is kept that contains a compressed archive of all the files contained in the port.

Craig
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
On Sun, Feb 7, 2021 at 9:00 AM James Linder <jam@tigger.ws> wrote:

>
>
> > On 7 Feb 2021, at 9:51 pm, John Hoyt <john.hoyt@gmail.com> wrote:
> >
> >
> >
> > On Sun, Feb 7, 2021 at 8:39 AM James Linder <jam@tigger.ws> wrote:
> >
> >
> > > On 7 Feb 2021, at 8:59 pm, John Hoyt <john.hoyt@gmail.com> wrote:
> > >
> > >
> > > Another possibility is that you're compiling with a case-sensitive
> filesystem. I found the case-sensitive filesystem to be troublesome and
> moved my build systems to case-insensitive systems (which is what Apple
> recommends for developers and regular users).
> >
> > John I recall your issues, but I did then and am now using a case
> sensitive fs,
> >
> > I'll do the install now, and build in a case insensitive VM.
> >
> > All macports are gone, reinstalled Mythfrontend with the version I got
> from SourceForge, even though I know better
> >
> > [plasma] /Users/jam [546]% ls /opt
> > [plasma] /Users/jam [547]%
> /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend
> > dyld: Library not loaded: /opt/local/lib/libjpeg.9.dylib
> > Referenced from:
> /Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit
> > Reason: image not found
> > /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend: line 15:
> 1222 Abort trap: 6 ./mythfrontend.real $@
> >
> > can you run the following and send back the output:
> >
> > otool -L /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real
> >
> > ls /Applications/Mythfrontend.app/Content
>
> [plasma] /Applications [535]% otool -L
> /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real
> /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend.real:
> @executable_path/../Frameworks/libmythswscale.5.dylib
> (compatibility version 5.0.0, current version 5.5.100)
> @executable_path/../Frameworks/libmythavformat.58.dylib
> (compatibility version 58.0.0, current version 58.29.100)
> @executable_path/../Frameworks/libmythswresample.3.dylib
> (compatibility version 3.0.0, current version 3.5.100)
> @executable_path/../Frameworks/libmythavutil.56.dylib
> (compatibility version 56.0.0, current version 56.31.100)
> @executable_path/../Frameworks/libmythavcodec.58.dylib
> (compatibility version 58.0.0, current version 58.54.100)
> @executable_path/../Frameworks/libmythpostproc.55.dylib
> (compatibility version 55.0.0, current version 55.5.100)
> @executable_path/../Frameworks/libmythavfilter.7.dylib
> (compatibility version 7.0.0, current version 7.57.100)
> @executable_path/../Frameworks/mythtv.framework/mythtv
> (compatibility version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/mythupnp.framework/mythupnp
> (compatibility version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/mythbase.framework/mythbase
> (compatibility version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/mythui.framework/mythui
> (compatibility version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/myth.framework/myth (compatibility
> version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/mythmetadata.framework/mythmetadata
> (compatibility version 31.0.0, current version 31.0.0)
>
> @executable_path/../Frameworks/mythservicecontracts.framework/mythservicecontracts
> (compatibility version 31.0.0, current version 31.0.0)
>
> @executable_path/../Frameworks/mythprotoserver.framework/mythprotoserver
> (compatibility version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/mythfreemheg.framework/mythfreemheg
> (compatibility version 31.0.0, current version 31.0.0)
> @executable_path/../Frameworks/libtag.1.dylib (compatibility
> version 1.0.0, current version 1.17.0)
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
> version 400.9.4)
> @executable_path/../Frameworks/libXrandr.2.dylib (compatibility
> version 5.0.0, current version 5.0.0)
> @executable_path/../Frameworks/libcrypto.1.1.dylib (compatibility
> version 1.1.0, current version 1.1.0)
> @executable_path/../Frameworks/libass.9.dylib (compatibility
> version 11.0.0, current version 11.1.0)
> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
> (compatibility version 1.0.0, current version 1.0.0)
> @executable_path/../Frameworks/libhdhomerun.dylib (compatibility
> version 0.0.0, current version 0.0.0)
> @executable_path/../Frameworks/libxml2.2.dylib (compatibility
> version 12.0.0, current version 12.10.0)
> @executable_path/../Frameworks/libx264.157.dylib (compatibility
> version 0.0.0, current version 0.0.0)
> @executable_path/../Frameworks/libmp3lame.0.dylib (compatibility
> version 1.0.0, current version 1.0.0)
> @executable_path/../Frameworks/libfontconfig.1.dylib
> (compatibility version 14.0.0, current version 14.0.0)
> @executable_path/../Frameworks/libfreetype.6.dylib (compatibility
> version 24.0.0, current version 24.4.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 1252.200.5)
> @executable_path/../Frameworks/libz.1.dylib (compatibility version
> 1.0.0, current version 1.2.11)
> @executable_path/../Frameworks/libbluray.2.dylib (compatibility
> version 6.0.0, current version 6.0.0)
> @executable_path/../Frameworks/libsamplerate.0.dylib
> (compatibility version 2.0.0, current version 2.8.0)
>
> @executable_path/../Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets
> (compatibility version 5.9.0, current version 5.9.2)
>
> @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets
> (compatibility version 5.15.0, current version 5.15.2)
>
> @executable_path/../Frameworks/QtWebKit.framework/Versions/5/QtWebKit
> (compatibility version 5.9.0, current version 5.9.2)
> @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui
> (compatibility version 5.15.0, current version 5.15.2)
> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
> (compatibility version 45.0.0, current version 1670.0.0)
> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
> (compatibility version 1.0.0, current version 1.0.0)
>
> @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork
> (compatibility version 5.15.0, current version 5.15.2)
> @executable_path/../Frameworks/QtXml.framework/Versions/5/QtXml
> (compatibility version 5.15.0, current version 5.15.2)
> @executable_path/../Frameworks/QtSql.framework/Versions/5/QtSql
> (compatibility version 5.15.0, current version 5.15.2)
>
> @executable_path/../Frameworks/QtScript.framework/Versions/5/QtScript
> (compatibility version 5.15.0, current version 5.15.2)
> @executable_path/../Frameworks/QtDBus.framework/Versions/5/QtDBus
> (compatibility version 5.15.0, current version 5.15.2)
> @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore
> (compatibility version 5.15.0, current version 5.15.2)
>
> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
> (compatibility version 1.0.0, current version 1.0.0)
> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
> (compatibility version 1.0.0, current version 275.0.0)
> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
> (compatibility version 1.0.0, current version 1.0.0)
>

Well, that's all pointing to the correct place (@executable_path or /System
are all good), Try each of these and check the output for /opt/local

ottol -L
/Applications/Mythfrontend.app/Contents/PlugIns/imageformats/libqjpeg.dylib
ottol -L
/Applications/Mythfrontend.app/Contents/Frameworks/libjasper.4.dylib
ottol -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.9.dylib
ottol -L /Applications/Mythfrontend.app/Contents/Frameworks/libtiff.5.dylib
ottol -L /Applications/Mythfrontend.app/Contents/Frameworks/libmng.2.dylib
ottol -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.8.dylib
Re: mac build [ In reply to ]
> On 7 Feb 2021, at 10:05 pm, Craig Treleaven <ctreleaven@cogeco.ca> wrote:
>
>> On Feb 7, 2021, at 8:38 AM, James Linder <jam@tigger.ws> wrote:
>>
>> All macports are gone
>
> If it helps, a simple and quick way to do this is:
>
> # show a list of all the ports you asked MacPorts to install so
> # that we can easily put them back later
> # maybe save this to a file
> port echo requested
>
> # don’t completely uninstall all your ports, just deactivate them
> sudo port deactivate active
>
> < do whatever>
>
> # activate your desired ports
> sudo port activate <any or all of the ports previously deactivated>
>
>
> The key is that you don’t have to download any ports--and possibly build some from source. An installer is kept that contains a compressed archive of all the files contained in the port.

Craig thanks, but I'm too quick. I made a list of ports most of 'mine' downloaded but I spent some hours building for mythtv.
James

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
>
> The key is that you don’t have to download any ports--and possibly build
> some from source. An installer is kept that contains a compressed archive
> of all the files contained in the port.
>

Thanks Craig, that is a great tip!

BTW - I'm trying a variant of your suggested
"PKG_CONFIG_SYSTEM_INCLUDE_PATH" fix.

It turns out that I already have in the compile script where
PKGMGR_INST_PATH=/opt/local :

PKG_CONFIG_SYSTEM_INCLUDE_PATH=$PKGMGR_INST_PATH/include


Which I believe sets the search path to look for macports dylibs first,
then the local ones - hence why a local ffmpeg install stomps the dylibs in
the mythtv compile.

I'm changing that to:

PKG_CONFIG_SYSTEM_INCLUDE_PATH=$SRC_DIR/external:$PKGMGR_INST_PATH/include


Which I hope makes the compiler / pkg_config first look for the locally
compiled mythtv ffmpeg libraries.
Re: mac build [ In reply to ]
> On 7 Feb 2021, at 10:17 pm, John Hoyt <john.hoyt@gmail.com> wrote:
>
> The key is that you don’t have to download any ports--and possibly build some from source. An installer is kept that contains a compressed archive of all the files contained in the port.
>
> Thanks Craig, that is a great tip!
>
> BTW - I'm trying a variant of your suggested "PKG_CONFIG_SYSTEM_INCLUDE_PATH" fix.
>
> It turns out that I already have in the compile script where PKGMGR_INST_PATH=/opt/local :
> PKG_CONFIG_SYSTEM_INCLUDE_PATH=$PKGMGR_INST_PATH/include
>
> Which I believe sets the search path to look for macports dylibs first, then the local ones - hence why a local ffmpeg install stomps the dylibs in the mythtv compile.
>
> I'm changing that to:
> PKG_CONFIG_SYSTEM_INCLUDE_PATH=$SRC_DIR/external:$PKGMGR_INST_PATH/include
>
> Which I hope makes the compiler / pkg_config first look for the locally compiled mythtv ffmpeg libraries.

[plasma] /Users/jam [547]% sh -v doit
otool -L /Applications/Mythfrontend.app/Contents/PlugIns/imageformats/libqjpeg.dylib |grep local
otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjasper.4.dylib |grep local
otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.9.dylib |grep local
otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libtiff.5.dylib |grep local
otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libmng.2.dylib |grep local
otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.8.dylib |grep local

James

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
>
> [plasma] /Users/jam [547]% sh -v doit
> otool -L
> /Applications/Mythfrontend.app/Contents/PlugIns/imageformats/libqjpeg.dylib
> |grep local
> otool -L
> /Applications/Mythfrontend.app/Contents/Frameworks/libjasper.4.dylib |grep
> local
> otool -L
> /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.9.dylib |grep
> local
> otool -L
> /Applications/Mythfrontend.app/Contents/Frameworks/libtiff.5.dylib |grep
> local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libmng.2.dylib
> |grep local
> otool -L
> /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.8.dylib |grep
> local
>

...well, that tells me that the Application has all of the internal
libraries looking for libjpeg inside the application and not on the
macports install path. Perhaps something else inside the Application
bundle is not set up correctly...
Re: mac build [ In reply to ]
> On 7 Feb 2021, at 10:27 pm, John Hoyt <john.hoyt@gmail.com> wrote:
>
> [plasma] /Users/jam [547]% sh -v doit
> otool -L /Applications/Mythfrontend.app/Contents/PlugIns/imageformats/libqjpeg.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjasper.4.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.9.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libtiff.5.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libmng.2.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.8.dylib |grep local
>
> ...well, that tells me that the Application has all of the internal libraries looking for libjpeg inside the application and not on the macports install path. Perhaps something else inside the Application bundle is not set up correctly...
>

. . . which I just downloaded from SourceForge and installed (by copy to not get links to the dmg) after $rm -fr /Applications/MythFrontend.app
James

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
> On Feb 7, 2021, at 9:17 AM, John Hoyt <john.hoyt@gmail.com> wrote:
>
> The key is that you don’t have to download any ports--and possibly build some from source. An installer is kept that contains a compressed archive of all the files contained in the port.
>
> Thanks Craig, that is a great tip!
>
> BTW - I'm trying a variant of your suggested "PKG_CONFIG_SYSTEM_INCLUDE_PATH" fix.
>
> It turns out that I already have in the compile script where PKGMGR_INST_PATH=/opt/local :
> PKG_CONFIG_SYSTEM_INCLUDE_PATH=$PKGMGR_INST_PATH/include
>
> Which I believe sets the search path to look for macports dylibs first, then the local ones - hence why a local ffmpeg install stomps the dylibs in the mythtv compile.
>
> I'm changing that to:
> PKG_CONFIG_SYSTEM_INCLUDE_PATH=$SRC_DIR/external:$PKGMGR_INST_PATH/include
>
> Which I hope makes the compiler / pkg_config first look for the locally compiled mythtv ffmpeg libraries.


The pkg-config environment variable works sort of the opposite that you might expect. "PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include” means DON’T supply that include path in the list of returned directories as it is assumed to be the default (last) search path when compiling.

I found out about this on the pkg-config mailing list:

> This isn't documented (should be), but you can override pkg-config's notion of the system include path with the environment variable PKG_CONFIG_SYSTEM_INCLUDE_PATH. If that's not set, it uses the compiled in defaults. That's been in pkg-config for a long time, so it should work with the version you have. This should be in the form of a path style variable with : separators.


Craig
Re: mac build [ In reply to ]
>
>
> The pkg-config environment variable works sort of the opposite that you
> might expect. "PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include” means
> DON’T supply that include path in the list of returned directories as it is
> assumed to be the default (last) search path when compiling.
>
>
> I found out about this on the pkg-config mailing list:
>
> This isn't documented (should be), but you can override pkg-config's
> notion of the system include path with the environment variable
> PKG_CONFIG_SYSTEM_INCLUDE_PATH. If that's not set, it uses the compiled in
> defaults. That's been in pkg-config for a long time, so it should work with
> the version you have. This should be in the form of a path style variable
> with : separators.
>
>
> Craig
>

Thanks Craig - I think I have it figured out. It was pretty annoying to
hunt down, but I needed a combination of PKG_CONFIG_SYSTEM_INCLUDE_PATH
being set correct and had to modify my c/c++ extra flags to not put
/opt/local at the front of the include path.

Once I finish testing on my computer and my build VM's I'll make a pull
request posting the updates.

...still no clue why James' installed application is pointing to /opt/local
for jpeg... James, can you remind me what version you've installed (High
SIerra, Catalina, with or without plugins, git version).
Re: mac build [ In reply to ]
>
> Thanks Craig - I think I have it figured out. It was pretty annoying to
> hunt down, but I needed a combination of PKG_CONFIG_SYSTEM_INCLUDE_PATH
> being set correct and had to modify my c/c++ extra flags to not put
> /opt/local at the front of the include path.
>
> Once I finish testing on my computer and my build VM's I'll make a pull
> request posting the updates.
>
> ...still no clue why James' installed application is pointing to
> /opt/local for jpeg... James, can you remind me what version you've
> installed (High SIerra, Catalina, with or without plugins, git version).
>

...spoke too soon. Still having issues. The simple fix is to uninstall
ffmpeg then use the compile script. I'm going to take a break and revisit
this another day/time.
Re: mac build [ In reply to ]
>
> ...still no clue why James' installed application is pointing to
>> /opt/local for jpeg... James, can you remind me what version you've
>> installed (High SIerra, Catalina, with or without plugins, git version).
>>
>
> ...spoke too soon. Still having issues. The simple fix is to uninstall
> ffmpeg then use the compile script. I'm going to take a break and revisit
> this another day/time.
>

James, I just posted an updated version of the compile script that fixes
the issue when ffmpeg is installed to sourceforge here:

https://sourceforge.net/projects/mythtvformacosx/files/Development/

Can you test it on your system and let me know if it works for you? I've
tested it on Big Sur, Catalina, and High Sierra for fixes/31 and master and
everything appears to be working for me.

Also, I'm in the process of uploading new dmg files for all versions.
Catalina and Big Sure are already uploaded. Please try one and tell me if
you're still having the jpeg segfault issue (and let me know which dmg file
:) ).
Re: mac build [ In reply to ]
> On 7 Feb 2021, at 10:27 pm, John Hoyt <john.hoyt@gmail.com> wrote:
>
> [plasma] /Users/jam [547]% sh -v doit
> otool -L /Applications/Mythfrontend.app/Contents/PlugIns/imageformats/libqjpeg.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjasper.4.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.9.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libtiff.5.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libmng.2.dylib |grep local
> otool -L /Applications/Mythfrontend.app/Contents/Frameworks/libjpeg.8.dylib |grep local
>
> ...well, that tells me that the Application has all of the internal libraries looking for libjpeg inside the application and not on the macports install path. Perhaps something else inside the Application bundle is not set up correctly…

John Hi

I downloaded your latest build and ran (10.13 version) on High Sierra where it works perfectly.

I formatted and re-installed Catalina on my laptop.
I have installed iTerm, Firefox and XCode. I have not installed macports.
I downloaded and installed Mythfrontend.ap (ver 10.13)
<click> did nothing so

jam@plasma ~ % /Applications/Mythfrontend.app/Contents/MacOS/mythfrontend --noupnp
dyld: Library not loaded: /opt/local/lib/libjpeg.9.dylib
Referenced from: /Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit
Reason: image not found
/Applications/Mythfrontend.app/Contents/MacOS/mythfrontend: line 15: 3011 Abort trap: 6 ./mythfrontend.real $@

This has to be a build issue since my system is virgin. I’ll now install macports and no doubt when the libjpeg goes in the app will work.

Going to try now. Will post results
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
> I downloaded your latest build and ran (10.13 version) on High Sierra
> where it works perfectly.
>

Great!


> I formatted and re-installed Catalina on my laptop.
> I have installed iTerm, Firefox and XCode. I have not installed macports.
> I downloaded and installed Mythfrontend.ap (ver 10.13)
> <click> did nothing so


To be clear, you're using the 10.13 built app on Catalina? With or without
plugins? Why not just the 10.15 built App? You will get better video
performance.

Did you check in system security preferences to allow third party apps?
You'll also have to authorize the app to open.


>
> This has to be a build issue since my system is virgin. I’ll now install
> macports and no doubt when the libjpeg goes in the app will work.


That's quite possible, but more likely a missed dylib link that should
point internally.

What is the exact name of the .dmg file you are trying?
Re: mac build [ In reply to ]
> On 8 Feb 2021, at 10:55 pm, John Hoyt <john.hoyt@gmail.com> wrote:
>
>
> I downloaded your latest build and ran (10.13 version) on High Sierra where it works perfectly.
>
> Great!
>
>
> I formatted and re-installed Catalina on my laptop.
> I have installed iTerm, Firefox and XCode. I have not installed macports.
> I downloaded and installed Mythfrontend.ap (ver 10.13)
> <click> did nothing so
>
> To be clear, you're using the 10.13 built app on Catalina? With or without plugins? Why not just the 10.15 built App? You will get better video performance.

Sorry problem between keyboard and seat

MythFrontend-31-intel-10.15.7-v31-7763a3363d-with-plugins.dmg

> Did you check in system security preferences to allow third party apps? You'll also have to authorize the app to open.

Yup n yup

James
>
>
>
> This has to be a build issue since my system is virgin. I’ll now install macports and no doubt when the libjpeg goes in the app will work.
>
> That's quite possible, but more likely a missed dylib link that should point internally.
>
> What is the exact name of the .dmg file you are trying?
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
>
> MythFrontend-31-intel-10.15.7-v31-7763a3363d-with-plugins.dmg
>

Thanks - I'll do an extended check with otool on that app when I get some
time (possibly the end of the week). Out of curiosity, did you try the
10.13 build on your Catalina machine? If it works, that may help me track
down the issue in the Catalina build environment.
Re: mac build [ In reply to ]
On Mon, Feb 8, 2021 at 11:42 AM John Hoyt <john.hoyt@gmail.com> wrote:

> MythFrontend-31-intel-10.15.7-v31-7763a3363d-with-plugins.dmg
>>
>
> Thanks - I'll do an extended check with otool on that app when I get some
> time (possibly the end of the week). Out of curiosity, did you try the
> 10.13 build on your Catalina machine? If it works, that may help me track
> down the issue in the Catalina build environment.
>

Well I found the issue - it looks like on the Catalina and High Sierra
builds (but strangely not Big Sur...) QT is not deploying libjpeg
correctly. My guess is that I may have a macports libjpeg issue when not
compiling qt locally.

QtWebKit:

::snipped output::

/opt/local/lib/libjpeg.9.dylib (compatibility version 14.0.0, current
version 14.0.0)

::snipped output::

Now to figure out why macdeployqt is not copying over libjpeg.9.dylib...
Re: mac build [ In reply to ]
>
> Now to figure out why macdeployqt is not copying over libjpeg.9.dylib...
>

It turns out macports moved libjpeg.9.dylib from /opt/local/lib to
/opt/local/libexec/libjpeg/lib so macdeployqt is skipping libjpeg.9.dylib
since it's a symlink in /opt/local. Its strangely copying the file into
the app correctly, just not updating QtWebkit to look internally to the app.

Adding a call to install_name_tool to the compile script seems to be
working (I'm testing on a fresh install right now). At any rate - to fix
your local version (while I recompile) run the following command to fix the
broken internal path:

install_name_tool -change /opt/local/lib/libjpeg.9.dylib
"@executable_path/../Frameworks/libjpeg.9.dylib"
/Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/QtWebKit
Re: mac build [ In reply to ]
On Mon, Feb 8, 2021 at 7:21 PM John Hoyt <john.hoyt@gmail.com> wrote:

> Now to figure out why macdeployqt is not copying over libjpeg.9.dylib...
>>
>
> It turns out macports moved libjpeg.9.dylib from /opt/local/lib to
> /opt/local/libexec/libjpeg/lib so macdeployqt is skipping libjpeg.9.dylib
> since it's a symlink in /opt/local. Its strangely copying the file into
> the app correctly, just not updating QtWebkit to look internally to the app.
>
> Adding a call to install_name_tool to the compile script seems to be
> working (I'm testing on a fresh install right now). At any rate - to fix
> your local version (while I recompile) run the following command to fix the
> broken internal path:
>
> install_name_tool -change /opt/local/lib/libjpeg.9.dylib
> "@executable_path/../Frameworks/libjpeg.9.dylib"
> /Applications/Mythfrontend.app/Contents/Frameworks/QtWebKit.framework/QtWebKit
>

James, try the Catalina versions that I just posted to SourceForge
(MythFrontend-31-intel-10.15.7-v31-ba4036099f-with-plugins.dmg).

As an added bonus, this picks up Mark's fix in AudioOutputGraph that he
posted earlier.
Re: mac build [ In reply to ]
> On Feb 8, 2021, at 7:21 PM, John Hoyt <john.hoyt@gmail.com> wrote:
>
> Now to figure out why macdeployqt is not copying over libjpeg.9.dylib...
>
> It turns out macports moved libjpeg.9.dylib from /opt/local/lib to /opt/local/libexec/libjpeg/lib so macdeployqt is skipping libjpeg.9.dylib since it's a symlink in /opt/local. Its strangely copying the file into the app correctly, just not updating QtWebkit to look internally to the app.

MacPorts did a mass switch to libjpeg-turbo a couple of weeks ago [1]. AIUI, libjpeg-turbo is a drop-in replacement for libjpeg but with a massive (?) speed advantage. Note that libjpeg-turbo installs the following dylibs:

$ port contents libjpeg-turbo |grep dylib
/opt/local/lib/libjpeg.8.2.2.dylib
/opt/local/lib/libjpeg.8.dylib
/opt/local/lib/libjpeg.dylib
/opt/local/lib/libturbojpeg.0.2.0.dylib
/opt/local/lib/libturbojpeg.0.dylib
/opt/local/lib/libturbojpeg.dylib

HTH,

Craig

[1] https://github.com/macports/macports-ports/commit/0c3c5e770185f4c3577b94a49170a961b88d1b98#diff-977bc31bc2f996454d40ccf27c2b1bcb413306cbbdf0eb65a77734edf2f2e3f5
Re: mac build [ In reply to ]
> On 9 Feb 2021, at 7:18 am, John Hoyt <john.hoyt@gmail.com> wrote:
>
> On Mon, Feb 8, 2021 at 11:42 AM John Hoyt <john.hoyt@gmail.com <mailto:john.hoyt@gmail.com>> wrote:
> MythFrontend-31-intel-10.15.7-v31-7763a3363d-with-plugins.dmg
>
> Thanks - I'll do an extended check with otool on that app when I get some time (possibly the end of the week). Out of curiosity, did you try the 10.13 build on your Catalina machine? If it works, that may help me track down the issue in the Catalina build environment.
>
> Well I found the issue - it looks like on the Catalina and High Sierra builds (but strangely not Big Sur...) QT is not deploying libjpeg correctly. My guess is that I may have a macports libjpeg issue when not compiling qt locally.
>
> QtWebKit:
> ::snipped output::
> /opt/local/lib/libjpeg.9.dylib (compatibility version 14.0.0, current version 14.0.0)
> ::snipped output::
>
> Now to figure out why macdeployqt is not copying over libjpeg.9.dylib...
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Re: mac build [ In reply to ]
> On 9 Feb 2021, at 7:18 am, John Hoyt <john.hoyt@gmail.com> wrote:
>
> On Mon, Feb 8, 2021 at 11:42 AM John Hoyt <john.hoyt@gmail.com <mailto:john.hoyt@gmail.com>> wrote:
> MythFrontend-31-intel-10.15.7-v31-7763a3363d-with-plugins.dmg
>
> Thanks - I'll do an extended check with otool on that app when I get some time (possibly the end of the week). Out of curiosity, did you try the 10.13 build on your Catalina machine? If it works, that may help me track down the issue in the Catalina build environment.
>
> Well I found the issue - it looks like on the Catalina and High Sierra builds (but strangely not Big Sur...) QT is not deploying libjpeg correctly. My guess is that I may have a macports libjpeg issue when not compiling qt locally.
>
> QtWebKit:
> ::snipped output::
> /opt/local/lib/libjpeg.9.dylib (compatibility version 14.0.0, current version 14.0.0)
> ::snipped output::
>
> Now to figure out why macdeployqt is not copying over libjpeg.9.dylib…

Finger trouble for last post.

John, I downloaded your latest from sourcesorge.

Both Catalina and High Sierra play beautifully
I can’t see any reason but both seem much smoother than previous. (That’s really hard to subjectively evaluate since “the winds of yesteryear” are gone (old builds). Certainly this looks good (I watched a few moments of Super Bowl)

I edited a HD movie, with errors, without any hassles

I retrived meta data with no more than the usual fiddling about. (And I mean the Oxford definition).

So all in all a big thank you to John.
I’ll try to break build and post any ‘sucess’ stories, but I will use a new VM and case insensitive FS. This was somewhat painful (reinstall OS X)
James

1 2 3 4 5 6 7  View All