mardi 24 février 2015

How do I compile The Xiph.org Foundation's libtheora 1.1 on Yosemite


Env



  • Mac OS X 10.10 Yosemite

  • XCode 6.1.1

  • Downloaded the library here


and tried



.configure

libtheora$ sudo ./configure
checking build system type... i386-apple-darwin14.1.0
checking host system type... i386-apple-darwin14.1.0
checking target system type... i386-apple-darwin14.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/http://ift.tt/1lHiUWl
checking if the linker (/Applications/http://ift.tt/1lHiUWl) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Applications/http://ift.tt/1lHiUWl option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/http://ift.tt/1lHiUWl) supports shared libraries... yes
checking dynamic linker characteristics... darwin14.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for doxygen... false
configure: WARNING: *** doxygen not found, API documentation will not be built
checking for pdflatex... no
checking for bibtex... no
checking for fig2dev... no
configure: WARNING: *** Format Specification will not built.
checking for ld used by gcc... (cached) /Applications/http://ift.tt/1lHiUWl
checking if the linker (/Applications/http://ift.tt/1lHiUWl) is GNU ld... (cached) no
checking how to control symbol export... -exported_symbols_list
checking for pkg-config... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OGG... yes
checking for VORBIS... no
checking for Vorbis... no
*** Could not run Vorbis test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Vorbis was incorrectly installed
*** or that you have moved Vorbis since it was installed.
checking for sdl-config... no
checking for SDL - version >= 0.11.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: WARNING: *** Unable to find SDL -- Not compiling example players ***
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
configure: WARNING: OSS audio support not found -- not compiling player_example
checking for PNG... yes
configure: Vorbis missing, cannot build example encoder
checking for library containing ftime... no
checking for getopt_long... no
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating lib/Makefile
config.status: WARNING: 'lib/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating include/Makefile
config.status: WARNING: 'include/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating include/theora/Makefile
config.status: WARNING: 'include/theora/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating examples/Makefile
config.status: WARNING: 'examples/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating doc/Makefile
config.status: WARNING: 'doc/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating doc/Doxyfile
config.status: creating doc/spec/Makefile
config.status: WARNING: 'doc/spec/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating tests/Makefile
config.status: WARNING: 'tests/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating m4/Makefile
config.status: WARNING: 'm4/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating libtheora.spec
config.status: creating theora.pc
config.status: creating theora-uninstalled.pc
config.status: creating theoradec.pc
config.status: creating theoradec-uninstalled.pc
config.status: creating theoraenc.pc
config.status: creating theoraenc-uninstalled.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

------------------------------------------------------------------------
libtheora 1.1.1: Automatic configuration OK.

General configuration:

Encoding support: ........... yes
Floating point support: ..... yes
Assembly optimization: ...... 32 bit x86
Debugging telemetry: ........ no
Build example code: ......... yes
API Documentation: .......... no
Format Documentation: ....... no

Installation paths:

libtheora: ................... /usr/local/lib
C header files: .............. /usr/local/include/theora
Documentation: ............... /usr/local/share/doc/libtheora

Building:

Type 'make' to compile libtheora.

Type 'make install' to install libtheora.

Type 'make check' to run test suite (Valgrind testing not enabled)

Example programs will be built but not installed.
------------------------------------------------------------------------


and the make



libtheora$ sudo make
/Applications/http://ift.tt/1lT9Bn7 all-recursive
Making all in lib
source='apiwrapper.c' object='apiwrapper.lo' libtool=yes \
depfile='.deps/apiwrapper.Plo' tmpdepfile='.deps/apiwrapper.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -c -o apiwrapper.lo `test -f 'apiwrapper.c' || echo './'`apiwrapper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -c apiwrapper.c -MT apiwrapper.lo -MD -MP -MF .deps/apiwrapper.TPlo -fno-common -DPIC -o .libs/apiwrapper.o
clang: error: unknown argument: '-fforce-addr'
make[2]: *** [apiwrapper.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


any pointer is most welcome





Aucun commentaire:

Enregistrer un commentaire