10.6.8 and ffmpeg

Ken Cunningham ken.cunningham.webuse at gmail.com
Sat Oct 29 17:37:25 CEST 2016


Hi Richard

You have a lot of Xcode versions installed! Keeping them all straight must be a bit of a mind-bender.
perhaps select the most modern one (Xcode 4.2) and put the macOSX10.7.sdk in there?

> ld: library not found for -lcrt1.10.6.o
that's a bit weird. that's a basic library.



In the 'full disclosure' category, my day-to-day 10.6.8 setup is as follows:

Xcode 4.2 is installed in /Developer and usually selected unless I'm testing something for Xcode 3.2.6, which I have installed in /Xcode3 but usually not selected
MacOSX10.7.sdk added to  /Developer/SDKs/MacOSX10.7.sdk (only used by libsdl2 that I know of)
LibcxxOnOlderSystems installed
default compiler set to macports-clang-3.7 (as per the libcxx instructions)


Best,

Ken





On 2016-10-29, at 7:02 AM, Richard L. Hamilton wrote:

> Thanks - closer, but must be more to it than that:
> 
> h-3.2# ls -ld /Dev*
> lrwxr-xr-x   1 root  admin   16 Aug 23 20:42 /Developer -> /Developer-3.2.6
> drwxrwxr-x@ 20 root  admin  680 Nov 16  2010 /Developer-3.2.2
> drwxrwxr-x@ 16 root  admin  544 Aug 23 19:50 /Developer-3.2.6
> drwxrwxr-x  14 root  admin  476 Jun  4  2011 /Developer-4.0.2
> drwxrwxr-x  14 root  admin  476 Mar 26  2015 /Developer-4.2
> 
> sh-3.2# ls /Developer?*/SDKs
> /Developer-3.2.2/SDKs:
> MacOSX10.4u.sdk	MacOSX10.5.sdk	MacOSX10.6.sdk
> 
> /Developer-3.2.6/SDKs:
> MacOSX10.5.sdk	MacOSX10.6.sdk	MacOSX10.7.sdk
> 
> /Developer-4.0.2/SDKs:
> MacOSX10.6.sdk
> 
> /Developer-4.2/SDKs:
> MacOSX10.6.sdk
> 
> sh-3.2# xcode-select --print-path
> /Developer-3.2.6
> 
> 
> --->  Configuring libsdl2
> Error: Failed to configure libsdl2, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.5/config.log
> 
> 
> Lines of likely interest from config.log:
> 
> configure:2919: checking for gcc
> configure:2946: result: /usr/bin/gcc-4.2
> configure:3175: checking for C compiler version
> configure:3184: /usr/bin/gcc-4.2 --version >&5
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> configure:3195: $? = 0
> configure:3184: /usr/bin/gcc-4.2 -v >&5
> Using built-in specs.
> Target: i686-apple-darwin10
> Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
> configure:3195: $? = 0
> configure:3184: /usr/bin/gcc-4.2 -V >&5
> gcc-4.2: argument to `-V' is missing
> configure:3195: $? = 1
> configure:3184: /usr/bin/gcc-4.2 -qversion >&5
> i686-apple-darwin10-gcc-4.2.1: no input files
> configure:3195: $? = 1
> configure:3215: checking whether the C compiler works
> configure:3237: /usr/bin/gcc-4.2 -pipe -Os -isysroot/Developer-3.2.6/SDKs/MacOSX10.7.sdk -arch x86_64 -arch i386 -I/opt/local/include -isysroot/Developer-3.2.6/SDKs/MacOSX10.7.sdk -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Developer-3.2.6/SDKs/MacOSX10.7.sdk -arch x86_64 -arch i386 conftest.c  >&5
> ld: library not found for -lcrt1.10.6.o
> collect2: ld returned 1 exit status
> ld: library not found for -lcrt1.10.6.o
> collect2: ld returned 1 exit status
> fatal error: lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libsdl2/libsdl2/work/.tmp/ccWPQ19t.out (No such file or directory)
> configure:3241: $? = 1
> configure:3279: result: no
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | /* end confdefs.h.  */
> | 
> | int
> | main ()
> | {
> | 
> |   ;
> |   return 0;
> | }
> configure:3284: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.5':
> configure:3286: error: C compiler cannot create executables
> See `config.log' for more details
> 
> 
> sh-3.2# /Users/rlhamil/bin/vers  # a script of mine that outputs the versions of various interesting things that might be relevant
> Hardware Version: Mac mini (Mid 2007)
> Model Identifier: Macmini2,1
> Mac OS X 10.6.8 10K549 (Snow Leopard)
> Xcode 3.2.6 DevToolsSupport-1806.0
> MacPorts Version: 2.3.4
> 
> 
>> On Oct 28, 2016, at 22:05, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
>> 
>> libsdl2 will build without trouble on 10.6.8 if you find a copy of the 10.7 SDK and put it like so in /Developer/SDKs/MacOSX10.7.sdk
>> 
>> Ken
>> 
>> 
>> On 2016-10-28, at 9:58 PM, Richard L. Hamilton wrote:
>> 
>>> Am I right in thinking that  ffmpeg now requires libsdl2 while it previously required libsdl?  That causes ffmpeg to fail on 10.6.x, because libsdl2 fails:
>>> 
>>> Error: org.macports.fetch for port libsdl2 returned: Building libsdl2 requires OS X 10.7 SDK or later
>>> Error: Failed to install libsdl2
>>> Please see the log file for port libsdl2 for details:
>>>  /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libsdl2/libsdl2/main.log
>>> Error: The following dependencies were not installed: libsdl2
>>> Error: Unable to upgrade port: 1
>>> To report a bug, follow the instructions in the guide:
>>>  http://guide.macports.org/#project.tickets
>>> 
>>> _______________________________________________
>>> macports-users mailing list
>>> macports-users at lists.macosforge.org
>>> https://lists.macosforge.org/mailman/listinfo/macports-users
>> 
> 




More information about the macports-users mailing list