Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2
Eric, I'm sending this reply back to the mailing list so others can see and participate in the discussion. Please use Reply All when replying. On May 10, 2011, at 15:27, Eric wrote: Ryan, Thanks ... really good info and advice. I'd like to MacPorts-install ffmpeg directly on my iMac that runs Leopard, per your advice, and so I have now (re)installed MacPorts 1.9.2, which goes with Leopard, on the iMac. When I did that previously, though, the ffmpeg build produced ... --- Extracting zlib Error: On Mac OS X 10.5, zlib 1.2.5 requires Xcode 3.1 or later but you have Xcode 3.0. Error: Target org.macports.extract returned: incompatible Xcode version Error: Failed to install zlib Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/main.log Error: The following dependencies were not installed: libsdl xorg-libXext xorg-libX11 xorg-libxcb python27 openssl zlib readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 Error: Status 1 encountered during processing. ... apparently since my Xcode Developer Tools are 3.0, not 3.1. That's correct. Xcode 3.0 had some bad bugs that we don't want to have to deal with support requests about, which were fixed in 3.1. But when I tried obtaining more current Xcode Developer Tools, I was told I now have to do that through the App Store app, which only runs under Snow Leopard, not Leopard ... Catch-22! I am currently copying the Xcode Developer Tools 4.0.2 I put on my Snow Leopard MacBook Pro (using the App Store app) to my Leopard iMac to see if they improve matters, but my understanding is that they are not Leopard-compatible. If that doesn't fix me up, do you have any idea how I could get a 3.1 Xcode package? Apple loves promoting only the most recent version of things, currently Xcode 4, available from the App Store. Xcode 4 only works on Snow Leopard, and also costs money. Earlier versions of Xcode are free and available on the developer connection web site. We have links to them here: http://guide.macports.org/#installing.xcode Also, if I ever succeed in the above, you've suggested using a symlink in Subsonic's transcode folder to refer to the ffmpeg executable. Is a symlink the same as an alias, or do I have to do something different to set up a symlink? A symlink and an alias serve similar purposes, but are entirely different types of objects, and software that understands one won't necessarily understand the other. Usually it's the alias which is in greater danger of not being understood, since it is a Mac OS-specific invention, and so can only be used by programs using Mac OS file APIs, whereas a symlink is a concept that exists on every UNIX-like operating system I know of, and should work using any file API. You create a symlink using the ln command with the -s flag. For example: ln -s /opt/local/bin/ffmpeg '/Library/Application Support/Subsonic/transcode/ffmpeg' This would create a symlink ffmpeg in /Library/Application Support/Subsonic/transcode/ pointing to /opt/local/bin/ffmpeg. (Not sure if that's the correct location for the ffmpeg symlink to be; you'll have to consult your program's documentation or do some trial and error testing.) Thank you very much for your help. Eric Stewart Catonsville, MD ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2
On May 11, 2011, at 08:00, Ryan Schmidt wrote: On May 10, 2011, at 15:27, Eric wrote: --- Extracting zlib Error: On Mac OS X 10.5, zlib 1.2.5 requires Xcode 3.1 or later but you have Xcode 3.0. Error: Target org.macports.extract returned: incompatible Xcode version Error: Failed to install zlib Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/main.log Error: The following dependencies were not installed: libsdl xorg-libXext xorg-libX11 xorg-libxcb python27 openssl zlib readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 Error: Status 1 encountered during processing. http://guide.macports.org/#installing.xcode FYI, I've now improved the error message text so that it will give the user (a version of) this link. https://trac.macports.org/changeset/78546 ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2
Ryan, Thanks. I was wondering whether/how I should have included the mailing list ... My bad! I'll Reply All in the future ... Eric --- On Wed, 5/11/11, Ryan Schmidt ryandes...@macports.org wrote: From: Ryan Schmidt ryandes...@macports.org Subject: Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2 To: Eric epstewart2...@yahoo.com Cc: MacPorts Users macports-users@lists.macosforge.org Date: Wednesday, May 11, 2011, 9:00 AM Eric, I'm sending this reply back to the mailing list so others can see and participate in the discussion. Please use Reply All when replying. On May 10, 2011, at 15:27, Eric wrote: Ryan, Thanks ... really good info and advice. I'd like to MacPorts-install ffmpeg directly on my iMac that runs Leopard, per your advice, and so I have now (re)installed MacPorts 1.9.2, which goes with Leopard, on the iMac. When I did that previously, though, the ffmpeg build produced ... --- Extracting zlib Error: On Mac OS X 10.5, zlib 1.2.5 requires Xcode 3.1 or later but you have Xcode 3.0. Error: Target org.macports.extract returned: incompatible Xcode version Error: Failed to install zlib Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/main.log Error: The following dependencies were not installed: libsdl xorg-libXext xorg-libX11 xorg-libxcb python27 openssl zlib readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 Error: Status 1 encountered during processing. ... apparently since my Xcode Developer Tools are 3.0, not 3.1. That's correct. Xcode 3.0 had some bad bugs that we don't want to have to deal with support requests about, which were fixed in 3.1. But when I tried obtaining more current Xcode Developer Tools, I was told I now have to do that through the App Store app, which only runs under Snow Leopard, not Leopard ... Catch-22! I am currently copying the Xcode Developer Tools 4.0.2 I put on my Snow Leopard MacBook Pro (using the App Store app) to my Leopard iMac to see if they improve matters, but my understanding is that they are not Leopard-compatible. If that doesn't fix me up, do you have any idea how I could get a 3.1 Xcode package? Apple loves promoting only the most recent version of things, currently Xcode 4, available from the App Store. Xcode 4 only works on Snow Leopard, and also costs money. Earlier versions of Xcode are free and available on the developer connection web site. We have links to them here: http://guide.macports.org/#installing.xcode Also, if I ever succeed in the above, you've suggested using a symlink in Subsonic's transcode folder to refer to the ffmpeg executable. Is a symlink the same as an alias, or do I have to do something different to set up a symlink? A symlink and an alias serve similar purposes, but are entirely different types of objects, and software that understands one won't necessarily understand the other. Usually it's the alias which is in greater danger of not being understood, since it is a Mac OS-specific invention, and so can only be used by programs using Mac OS file APIs, whereas a symlink is a concept that exists on every UNIX-like operating system I know of, and should work using any file API. You create a symlink using the ln command with the -s flag. For example: ln -s /opt/local/bin/ffmpeg '/Library/Application Support/Subsonic/transcode/ffmpeg' This would create a symlink ffmpeg in /Library/Application Support/Subsonic/transcode/ pointing to /opt/local/bin/ffmpeg. (Not sure if that's the correct location for the ffmpeg symlink to be; you'll have to consult your program's documentation or do some trial and error testing.) Thank you very much for your help. Eric Stewart Catonsville, MD ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2
Ryan, Thanks for both the error message clarification and the link to where earlier Xcode versions are to be found ... Eric --- On Wed, 5/11/11, Ryan Schmidt ryandes...@macports.org wrote: From: Ryan Schmidt ryandes...@macports.org Subject: Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2 To: Eric epstewart2...@yahoo.com Cc: MacPorts Users macports-users@lists.macosforge.org Date: Wednesday, May 11, 2011, 9:08 AM On May 11, 2011, at 08:00, Ryan Schmidt wrote: On May 10, 2011, at 15:27, Eric wrote: --- Extracting zlib Error: On Mac OS X 10.5, zlib 1.2.5 requires Xcode 3.1 or later but you have Xcode 3.0. Error: Target org.macports.extract returned: incompatible Xcode version Error: Failed to install zlib Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/main.log Error: The following dependencies were not installed: libsdl xorg-libXext xorg-libX11 xorg-libxcb python27 openssl zlib readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 Error: Status 1 encountered during processing. http://guide.macports.org/#installing.xcode FYI, I've now improved the error message text so that it will give the user (a version of) this link. https://trac.macports.org/changeset/78546 ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2
I am trying to use ffmpeg (version 0.6.2) on my iMac running Mac OS X 10.5.8. I successfully installed that package on MacPorts on my MacBook Pro running Snow Leopard 10.6.7. Then, on that MBP, in Terminal sudo port dmg ffmpeg worked to create a .dmg file that I then copied to my iMac and installed. Various components (the Unix executable of ffmpeg and its associated dynamic library files) were duly placed in various locations in the /opt/local folder hierarchy on the iMac. But when I opened a 'bash' shell Terminal window on the iMac and typed in ffmpeg I got -bash: ffmpeg: command not found That's question #1: why did the .dmg installer not put the ffmpeg executable in a path that is automatically searched by the 'bash' shell on the iMac? (On the MBP, that path seemingly is actually searched, and so entering just 'ffmpeg' in a Terminal window on the MBP works as intended.) On the iMac I contrived to set up a .bash_profile file, in my Home folder, containing the line export PATH=$PATH:/opt/local/bin after which I could enter just plain ffmpeg in a bash/Terminal window ... but it produced dyld: unknown required load command 0x8022Trace/BPT trap which I interpret as meaning that ffmpeg wanted to load one of its .dylib files and couldn't find it. That's question #2: What do I need to do to get the dynamic load library files to be located? And question #3 is this: If I want to create a standalone folder containing just the ffmpeg executable and the associated .dylib files, how do I set it up so I can execute that copy of ffmpeg successfully. I need to do that because my ultimate goal is to put ffmpeg and its load libraries in the /Library/Application Support/Subsonic/transcode folder. That folder is used by the Subsonic server software for purposes of transcoding audio and video files by Subsonic. AFAIK, there is no way to point Subsonic to the ffmpeg executable in the /opt/local/bin folder ... even if I could get that executable to be able to locate its own .dylib files! Any help or answers would be much appreciated. Thanks.___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Need help with using a MacPorts-created .dmg installer for ffmpeg 0.6.2
On May 10, 2011, at 12:08, Eric wrote: I am trying to use ffmpeg (version 0.6.2) on my iMac running Mac OS X 10.5.8. I successfully installed that package on MacPorts on my MacBook Pro running Snow Leopard 10.6.7. Then, on that MBP, in Terminal sudo port dmg ffmpeg worked to create a .dmg file that I then copied to my iMac and installed. Various components (the Unix executable of ffmpeg and its associated dynamic library files) were duly placed in various locations in the /opt/local folder hierarchy on the iMac. But when I opened a 'bash' shell Terminal window on the iMac and typed in ffmpeg I got -bash: ffmpeg: command not found That's question #1: why did the .dmg installer not put the ffmpeg executable in a path that is automatically searched by the 'bash' shell on the iMac? MacPorts software is built hardcoded to a specific prefix, usually /opt/local. Whatever prefix your MacPorts was set up for on the Mac where you built the dmg is the path into which it will be installed when you use the package installer. (On the MBP, that path seemingly is actually searched, and so entering just 'ffmpeg' in a Terminal window on the MBP works as intended.) It's the MacPorts installer that sets that up, by modifying your PATH in your .bash_profile. If you haven't run the MacPorts installer on the target Mac, and haven't manually set up the PATH this way, then you're right, the PATH won't be set up this way. On the iMac I contrived to set up a .bash_profile file, in my Home folder, containing the line export PATH=$PATH:/opt/local/bin after which I could enter just plain ffmpeg in a bash/Terminal window ... Right. but it produced dyld: unknown required load command 0x8022 Trace/BPT trap which I interpret as meaning that ffmpeg wanted to load one of its .dylib files and couldn't find it. You've built the software on Snow Leopard; you won't be able to run it on Leopard. http://www.google.com/search?q=%22unknown+required+load+command+0x8022%22 Well, you might be able to, if you specify in your macports.conf that you want the software built to be 10.5 compatible. Your best bet, however, is to actually build the ports on the machine you're going to run them on. That's question #2: What do I need to do to get the dynamic load library files to be located? And question #3 is this: If I want to create a standalone folder containing just the ffmpeg executable and the associated .dylib files, how do I set it up so I can execute that copy of ffmpeg successfully. Basically, you need sudo port mpkg or sudo port mdmg (which will package up the port and all its dependencies) instead of sudo port pkg or sudo port dmg (which will package up the port only, and not its dependencies). I need to do that because my ultimate goal is to put ffmpeg and its load libraries in the /Library/Application Support/Subsonic/transcode folder. That folder is used by the Subsonic server software for purposes of transcoding audio and video files by Subsonic. AFAIK, there is no way to point Subsonic to the ffmpeg executable in the /opt/local/bin folder ... even if I could get that executable to be able to locate its own .dylib files! MacPorts software is not relocatable in this manner. Can you perhaps instead put an ffmpeg symlink in /Library/Application Support/Subsonic/transcode pointing to the ffmpeg in /opt/local/bin? ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users