[vorbis] Ogg / Vorbis Compiling under W32 with MingW ** Problem **

John Edwards john.edwards33 at ntlworld.com
Sat Mar 13 02:57:46 PST 2004



Edit the beginning of the header file - os_types.h in ogg\include\ogg to
look like this:

#ifdef _WIN32

#  ifndef __GNUC__
   /* MSVC/Borland */
   typedef __int64 ogg_int64_t;
   typedef unsigned __int64 ogg_uint64_t;
   typedef __int32 ogg_int32_t;
   typedef unsigned __int32 ogg_uint32_t;
   typedef __int16 ogg_int16_t;
   typedef unsigned __int16 ogg_uint16_t;
#  else
   /* MinGW32 */
   typedef short ogg_int16_t;
   typedef unsigned short ogg_uint16_t;
   typedef int ogg_int32_t;
   typedef unsigned int ogg_uint32_t;
   typedef long long ogg_int64_t;
   typedef unsigned long long ogg_uint64_t;
#  endif

#elif defined(__MACOS__)

Works here like this.;)

John

----- Original Message ----- 
From: "coskubas" <coskubas at redwhitearmy.com>
To: <vorbis at xiph.org>
Sent: Saturday, March 13, 2004 10:46 AM
Subject: [vorbis] Ogg / Vorbis Compiling under W32 with MingW ** Problem **

<p>> I want to compile ogg and vorbis(version 1.01) under mingw.
> In the console i typed
>
> ./configure
> make
>
> but there is a lot of error while making. here is the errors
>
> $ ./configure
> checking for a BSD-compatible install... /bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> 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... a.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... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking build system type... i686-pc-mingw32
> checking host system type... i686-pc-mingw32
> checking for ld used by GCC... c:/MingW/mingw32/bin/ld.exe
> checking if the linker (c:/MingW/mingw32/bin/ld.exe) is GNU ld... yes
> checking for c:/MingW/mingw32/bin/ld.exe option to reload object
files... -r
> checking for BSD-compatible nm... /mingw/bin/nm
> checking for a sed that does not truncate output... /bin/sed
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... file_magic file format
> pei*-i386(.*architecture: i386)?
> checking command to parse /mingw/bin/nm output... ok
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> 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 dlfcn.h usability... no
> checking dlfcn.h presence... no
> checking for dlfcn.h... no
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -DDLL_EXPORT
> checking if gcc PIC flag -DDLL_EXPORT works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (c:/MingW/mingw32/bin/ld.exe) supports
> shared libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... Win32 ld.exe
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> creating libtool
> checking for ANSI C header files... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for int16_t... no
> checking for int32_t... no
> checking for uint32_t... no
> checking for uint16_t... no
> checking for u_int32_t... no
> checking for u_int16_t... no
> checking for int64_t... no
> checking for short... yes
> checking size of short... 2
> checking for int... yes
> checking size of int... 4
> checking for long... yes
> checking size of long... 4
> checking for long long... yes
> checking size of long long... 8
> checking for working memcmp... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating doc/Makefile
> config.status: creating doc/ogg/Makefile
> config.status: creating include/Makefile
> config.status: creating include/ogg/Makefile
> config.status: creating include/ogg/config_types.h
> config.status: creating win32/Makefile
> config.status: creating debian/Makefile
> config.status: creating ogg.pc
> config.status: executing depfiles commands
>
> ****************Configuration seems working fine
>
> $ make
> Making all in src
> make[1]: Entering directory `/home/resT1/libogg-1.1/src'
> source='framing.c' object='framing.lo' libtool=yes \
> depfile='.deps/framing.Plo' tmpdepfile='.deps/framing.TPlo' \
> depmode=gcc3 /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\"
> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" -DVERSION=\"1.1\"
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
> -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8
> -I. -I. -I../include -I../include    -O20 -fsigned-char -g -O2 -c -o
> framing.lo `test -f 'framing.c' || echo './'`framing.c
> mkdir .libs
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\"
> -DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. -I../include
> -I../include -O20 -fsigned-char -g -O2 -c framing.c -MT framing.lo -MD
> -MP -MF .deps/framing.TPlo  -DDLL_EXPORT -DPIC -o .libs/framing.lo
> In file included from ../include/ogg/ogg.h:24,
>                  from framing.c:25:
> ../include/ogg/os_types.h:38:26: _G_config.h: No such file or directory
> In file included from ../include/ogg/ogg.h:24,
>                  from framing.c:25:
> ../include/ogg/os_types.h:39: parse error before "ogg_int64_t"
> ../include/ogg/os_types.h:39: warning: data definition has no type or
> storage class
> ../include/ogg/os_types.h:40: parse error before "ogg_int32_t"
> ../include/ogg/os_types.h:40: warning: data definition has no type or
> storage class
> ../include/ogg/os_types.h:41: parse error before "ogg_uint32_t"
> ../include/ogg/os_types.h:41: warning: data definition has no type or
> storage class
> ../include/ogg/os_types.h:42: parse error before "ogg_int16_t"
> ../include/ogg/os_types.h:42: warning: data definition has no type or
> storage class
> ../include/ogg/os_types.h:43: parse error before "ogg_uint16_t"
> ../include/ogg/os_types.h:43: warning: data definition has no type or
> storage class
> In file included from framing.c:25:
> ../include/ogg/ogg.h:55: parse error before "ogg_int64_t"
> ../include/ogg/ogg.h:55: warning: no semicolon at end of struct or union
> ../include/ogg/ogg.h:72: parse error before "packetno"
> ../include/ogg/ogg.h:72: warning: data definition has no type or storage
> class
> ../include/ogg/ogg.h:77: parse error before "granulepos"
> ../include/ogg/ogg.h:77: warning: data definition has no type or storage
> class
> ../include/ogg/ogg.h:79: warning: data definition has no type or storage
> class
> ../include/ogg/ogg.h:90: parse error before "ogg_int64_t"
> ../include/ogg/ogg.h:90: warning: no semicolon at end of struct or union
> ../include/ogg/ogg.h:92: warning: data definition has no type or storage
> class
> ../include/ogg/ogg.h:97: warning: data definition has no type or storage
> class
> ../include/ogg/ogg.h:150: parse error before '*' token
> ../include/ogg/ogg.h:151: parse error before '*' token
> ../include/ogg/ogg.h:152: parse error before '*' token
> ../include/ogg/ogg.h:165: parse error before '*' token
> ../include/ogg/ogg.h:166: parse error before '*' token
> ../include/ogg/ogg.h:167: parse error before '*' token
> ../include/ogg/ogg.h:171: parse error before '*' token
> ../include/ogg/ogg.h:172: parse error before '*' token
> ../include/ogg/ogg.h:173: parse error before '*' token
> ../include/ogg/ogg.h:174: parse error before '*' token
> ../include/ogg/ogg.h:175: parse error before '*' token
> ../include/ogg/ogg.h:176: parse error before '*' token
> ../include/ogg/ogg.h:184: parse error before "ogg_page_granulepos"
> ../include/ogg/ogg.h:184: warning: data definition has no type or
> storage class
> ../include/ogg/ogg.h:189: parse error before '*' token
> framing.c:45: parse error before "ogg_page_granulepos"
> framing.c: In function `ogg_page_granulepos':
> framing.c:47: parse error before "granulepos"
> framing.c: At top level:
> framing.c:120: parse error before "crc_lookup"
> framing.c:184: warning: data definition has no type or storage class
> framing.c:188: parse error before '*' token
> framing.c: In function `ogg_stream_init':
> framing.c:189: `os' undeclared (first use in this function)
> framing.c:189: (Each undeclared identifier is reported only once
> framing.c:189: for each function it appears in.)
> framing.c: At top level:
> framing.c:206: parse error before '*' token
> framing.c: In function `ogg_stream_clear':
> framing.c:207: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:217: parse error before '*' token
> framing.c: In function `ogg_stream_destroy':
> framing.c:218: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:228: parse error before '*' token
> framing.c: In function `_os_body_expand':
> framing.c:229: `os' undeclared (first use in this function)
> framing.c:229: `needed' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:235: parse error before '*' token
> framing.c: In function `_os_lacing_expand':
> framing.c:236: `os' undeclared (first use in this function)
> framing.c:236: `needed' undeclared (first use in this function)
> framing.c: In function `ogg_page_checksum_set':
> framing.c:249: parse error before "crc_reg"
> framing.c:259: `crc_reg' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:271: parse error before '*' token
> framing.c: In function `ogg_stream_packetin':
> framing.c:272: `op' undeclared (first use in this function)
> framing.c:274: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:333: parse error before '*' token
> framing.c: In function `ogg_stream_flush':
> framing.c:336: `os' undeclared (first use in this function)
> framing.c:339: parse error before "granule_pos"
> framing.c:349: `granule_pos' undeclared (first use in this function)
> framing.c:421: `og' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:446: parse error before '*' token
> framing.c: In function `ogg_stream_pageout':
> framing.c:448: `os' undeclared (first use in this function)
> framing.c:453: `og' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:460: parse error before '*' token
> framing.c: In function `ogg_stream_eos':
> framing.c:461: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:673: parse error before '*' token
> framing.c: In function `ogg_stream_pagein':
> framing.c:674: `og' undeclared (first use in this function)
> framing.c:683: parse error before "granulepos"
> framing.c:690: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:806: parse error before '*' token
> framing.c: In function `ogg_stream_reset':
> framing.c:807: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:825: parse error before '*' token
> framing.c: In function `ogg_stream_reset_serialno':
> framing.c:826: `os' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:831: parse error before '*' token
> framing.c: In function `_packetout':
> framing.c:837: `os' undeclared (first use in this function)
> framing.c:849: `op' undeclared (first use in this function)
> framing.c:849: `adv' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:885: parse error before '*' token
> framing.c: In function `ogg_stream_packetout':
> framing.c:886: `os' undeclared (first use in this function)
> framing.c:886: `op' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:889: parse error before '*' token
> framing.c: In function `ogg_stream_packetpeek':
> framing.c:890: `os' undeclared (first use in this function)
> framing.c:890: `op' undeclared (first use in this function)
> framing.c: At top level:
> framing.c:893: parse error before '*' token
> framing.c: In function `ogg_packet_clear':
> framing.c:894: `op' undeclared (first use in this function)
> make[1]: *** [framing.lo] Error 1
> make[1]: Leaving directory `/home/resT1/libogg-1.1/src'
> make: *** [all-recursive] Error 1
>
> How can I fix this???
>
>
>
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
>

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list