[theora] Build from Source on MSVC 2017 cl and MSYS2 32 bit

Dinesh Gupta dinesh.gupta01 at gmail.com
Sun Dec 16 16:42:25 UTC 2018


I am build from source on MSVC 2017 cl.exe and MSYS2 32 bit.

Environment

Machine OS: Windows 10 Prof
Visual Studio C++ : 2017
Windows SDK : 10.0.17763.0
MYS2 32 : MSYS_NT-10.0-WOW | uname -m i686

*Building code as below and getting error:*
tar xzf libtheora-1.2.0alpha1.tar.gz
cd libtheora-1.2.0alpha1;
cd libtheora-1.2.0alpha1; CC=cl ./configure
--prefix=/d/smallgame/gaminganywhere/deps.posix --with-pic
--disable-examples
configure: loading site script /mingw32/etc/config.site
checking build system type... i686-w64-mingw32
checking host system type... i686-w64-mingw32
checking target system type... i686-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... cl
checking for C compiler default output file name... conftest.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... obj
checking whether we are using the GNU C compiler... no
checking whether cl accepts -g... yes
checking for cl option to accept ISO C89... none needed
checking dependency style of cl... none
checking dependency style of cl... none
checking for gcc... (cached) cl
checking whether we are using the GNU C compiler... (cached) no
checking whether cl accepts -g... (cached) yes
checking for cl option to accept ISO C89... (cached) none needed
checking dependency style of cl... (cached) none
checking how to run the C preprocessor... cl -E
checking whether cl and cc understand -c and -o together... no
checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
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 non-GNU ld... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw32/bin/nm -B
checking the name lister (/mingw32/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /bin/ld option to reload object files... -r
checking for objdump... (cached) objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw32/bin/nm -B output from
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl
object... ok
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... no
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... no
checking for dlfcn.h... no
checking for objdir... .libs
checking for
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl
option to produce PIC... -DDLL_EXPORT -DPIC
checking if
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl PIC
flag -DDLL_EXPORT -DPIC works... yes
checking if
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl
static flag  works... yes
checking if
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl
supports -c -o file.obj... no
checking if
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl
supports -c -o file.obj... (cached) no
checking if we can lock with hard links... yes
checking whether the
/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/compile cl
linker (/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
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 non-GNU ld... (cached) /bin/ld
checking if the linker (/bin/ld) is GNU ld... (cached) yes
checking how to control symbol export... -export-symbols
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OGG... yes
checking for VORBIS... yes
checking for SDL... no
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... no
checking for library containing ftime... none required
checking for getopt_long... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/arm/armopts.s
config.status: creating include/Makefile
config.status: creating include/theora/Makefile
config.status: creating examples/Makefile
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating doc/spec/Makefile
config.status: creating tests/Makefile
config.status: creating m4/Makefile
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: executing depfiles commands
config.status: executing libtool commands

------------------------------------------------------------------------
  libtheora 1.2.0alpha1:  Automatic configuration OK.

  General configuration:

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

  Installation paths:

    libtheora: ...................
/d/smallgame/gaminganywhere/deps.posix/lib
    C header files: ..............
/d/smallgame/gaminganywhere/deps.posix/include/theora
    Documentation: ...............
/d/smallgame/gaminganywhere/deps.posix/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.
------------------------------------------------------------------------

make -C libtheora-1.2.0alpha1 -j5
make[1]: Entering directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1'
make  all-recursive
make[2]: Entering directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1'
Making all in lib
make[3]: Entering directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/lib'
make  all-am
make[4]: Entering directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/lib'
  CC     apiwrapper.lo
  CC     bitpack.lo
  CC     decapiwrapper.lo
  CC     decinfo.lo
  CC     decode.lo
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
bitpack.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
decinfo.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
decapiwrapper.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
apiwrapper.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
decode.c
  CC     dequant.lo
  CC     fragment.lo
  CC     huffdec.lo
  CC     idct.lo
  CC     info.lo
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
dequant.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
fragment.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
idct.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
huffdec.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
info.c
  CC     internal.lo
  CC     quant.lo
  CC     state.lo
  CC     x86cpu.lo
  CC     mmxidct.lo
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
internal.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
state.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
quant.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
mmxidct.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'O' has been deprecated and will
be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-g'
x86cpu.c
x86\x86cpu.c(86): error C2065: '__asm__': undeclared identifier
x86\x86cpu.c(86): error C2146: syntax error: missing ';' before identifier
'__volatile__'
x86\x86cpu.c(97): error C2143: syntax error: missing ')' before ':'
x86\x86cpu.c(104): error C2065: '__asm__': undeclared identifier
x86\x86cpu.c(104): error C2146: syntax error: missing ';' before identifier
'__volatile__'
x86\x86cpu.c(104): error C2143: syntax error: missing ')' before ':'
x86\x86cpu.c(112): error C2065: '__asm__': undeclared identifier
x86\x86cpu.c(112): error C2146: syntax error: missing ';' before identifier
'__volatile__'
x86\x86cpu.c(112): error C2143: syntax error: missing ')' before ':'
x86\x86cpu.c(127): error C2065: '__asm__': undeclared identifier
x86\x86cpu.c(127): error C2146: syntax error: missing ';' before identifier
'__volatile__'
x86\x86cpu.c(127): error C2143: syntax error: missing ')' before ':'
x86\x86cpu.c(130): error C2065: '__asm__': undeclared identifier
x86\x86cpu.c(130): error C2146: syntax error: missing ';' before identifier
'__volatile__'
x86\x86cpu.c(130): error C2143: syntax error: missing ')' before ':'
x86\x86cpu.c(134): error C2065: '__asm__': undeclared identifier
d:\smallgame\gaminganywhere\deps.src\libtheora-1.2.0alpha1\lib\x86\x86int.h(97):
error C2143: syntax error: missing ')' before '('x86\x86cpu.c(134): error
C2146: syntax error: missing ';' before identifier '__volatile__'
x86\x86cpu.c(134): error C2143: syntax error: missing ')' before ':'

x86\x86cpu.c(149): error C2065: '__asm__': undeclared identifier
d:\smallgame\gaminganywhere\deps.src\libtheora-1.2.0alpha1\lib\x86\x86int.h(97):
error C2091: function returns functionx86\x86cpu.c(149): error C2146:
syntax error: missing ';' before identifier '__volatile__'

x86\x86cpu.c(149): error C2143: syntax error: missing ')' before ':'
d:\smallgame\gaminganywhere\deps.src\libtheora-1.2.0alpha1\lib\x86\x86int.h(97):
error C2143: syntax error: missing ')' before 'constant'x86\x86cpu.c(162):
error C2065: '__asm__': undeclared identifier
x86\x86cpu.c(162): error C2146: syntax error: missing ';' before identifier
'__volatile__'

x86\x86cpu.c(162): error C2143: syntax error: missing ')' before ':'
d:\smallgame\gaminganywhere\deps.src\libtheora-1.2.0alpha1\lib\x86\x86int.h(97):
error C2143: syntax error: missing '{' before 'constant'
d:\smallgame\gaminganywhere\deps.src\libtheora-1.2.0alpha1\lib\x86\x86int.h(97):
error C2059: syntax error: 'constant'
d:\smallgame\gaminganywhere\deps.src\libtheora-1.2.0alpha1\lib\x86\x86int.h(97):
error C2059: syntax error: ')'
x86\mmxidct.c(289): error C2065: '__asm__': undeclared identifier
x86\mmxidct.c(289): error C2146: syntax error: missing ';' before
identifier '__volatile__'
x86\mmxidct.c(312): error C2143: syntax error: missing ')' before ':'
x86\mmxidct.c(312): warning C4116: unnamed type definition in parentheses
x86\mmxidct.c(312): error C2065: '_y': undeclared identifier
x86\mmxidct.c(312): error C2099: initializer is not a constant
x86\mmxidct.c(312): error C2040: 'array_addr__': 'int' differs in levels of
indirection from 'int *'
x86\mmxidct.c(312): error C2059: syntax error: '}'
x86\mmxidct.c(312): error C2059: syntax error: ')'
x86\mmxidct.c(313): error C2059: syntax error: ')'
x86\mmxidct.c(313): error C2059: syntax error: ','
x86\mmxidct.c(314): error C2059: syntax error: ')'
x86\mmxidct.c(315): error C2059: syntax error: ')'
x86\mmxidct.c(316): error C2059: syntax error: 'if'
x86\mmxidct.c(329): error C2059: syntax error: '}'
make[4]: *** [Makefile:851: x86cpu.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:859: mmxidct.lo] Error 1
make[4]: Leaving directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/lib'
make[3]: *** [Makefile:624: all] Error 2
make[3]: Leaving directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1/lib'
make[2]: *** [Makefile:437: all-recursive] Error 1
make[2]: Leaving directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1'
make[1]: *** [Makefile:330: all] Error 2
make[1]: Leaving directory
'/d/smallgame/gaminganywhere/deps.src/libtheora-1.2.0alpha1'
make: *** [Makefile:117: theora] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/theora/attachments/20181216/2f8cd575/attachment-0001.html>


More information about the theora mailing list