make 时出错误~求大神看看

baidu_24211805 2015-01-07 04:08:10
编译git clone git://git.linphone.org/msx264.git

./configure -prefix=/usr --enable-shared --disable-static

$ ./configure -prefix=/usr --enable-shared --disable-static
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking warning make an error on compilation... checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
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 for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
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 BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) 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 how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format...
func_convert_file_msys_to_w32
checking how to convert i686-pc-mingw32 file names to toolchain format... func_c
onvert_file_msys_to_w32
checking for c:/mingw/mingw32/bin/ld.exe 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 dlltool... (cached) dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_imp
lib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC 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.o... (cached) yes
checking whether the gcc linker (c:/mingw/mingw32/bin/ld.exe) supports shared li
braries... yes
checking whether -lc should be explicitly linked in... 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... no
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MEDIASTREAMER... yes
checking for X264... yes
checking for epm... false
checking for mkepmlist... false
checking for epminstall... false
configure: creating ./config.status
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating build/vs/Makefile
config.status: creating src/Makefile
config.status: creating msx264.iss
config.status: creating msx264.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing libtool-hacking commands
config.status: Hacking libtool to work with mingw...





$ make
make all-recursive
make[1]: Entering directory `/c/msx264'
Making all in src
make[2]: Entering directory `/c/msx264/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_
REENTRANT -DORTP_INET6 -IC:/MinGW/msys/1.0/include -I/usr/include/srtp -IC:/Min
GW/msys/1.0/include -g -O2 -Wall -Werror -MT msx264.lo -MD -MP -MF .deps/msx26
4.Tpo -c -o msx264.lo msx264.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DORTP_INET6 -IC:/M
inGW/msys/1.0/include -I/usr/include/srtp -IC:/MinGW/msys/1.0/include -g -O2 -Wa
ll -Werror -MT msx264.lo -MD -MP -MF .deps/msx264.Tpo -c msx264.c -DDLL_EXPORT
-DPIC -o .libs/msx264.o
msx264.c:58:2: error: initialization makes pointer from integer without a cast [
-Werror]
msx264.c:58:2: error: (near initialization for 'x264_conf_list[0].extra') [-Werr
or]
msx264.c:58:2: error: excess elements in struct initializer [-Werror]
msx264.c:58:2: error: (near initialization for 'x264_conf_list[0]') [-Werror]
msx264.c:59:2: error: initialization makes pointer from integer without a cast [
-Werror]
msx264.c:59:2: error: (near initialization for 'x264_conf_list[1].extra') [-Werr
or]
msx264.c:59:2: error: excess elements in struct initializer [-Werror]
msx264.c:59:2: error: (near initialization for 'x264_conf_list[1]') [-Werror]
msx264.c:60:2: error: initialization makes pointer from integer without a cast [
-Werror]
msx264.c:60:2: error: (near initialization for 'x264_conf_list[2].extra') [-Werr
or]
msx264.c:60:2: error: excess elements in struct initializer [-Werror]
msx264.c:60:2: error: (near initialization for 'x264_conf_list[2]') [-Werror]
msx264.c:61:2: error: initialization makes pointer from integer without a cast [
-Werror]
msx264.c:61:2: error: (near initialization for 'x264_conf_list[3].extra') [-Werr
or]
msx264.c:61:2: error: excess elements in struct initializer [-Werror]
msx264.c:61:2: error: (near initialization for 'x264_conf_list[3]') [-Werror]
msx264.c:62:2: error: initialization makes pointer from integer without a cast [
-Werror]
msx264.c:62:2: error: (near initialization for 'x264_conf_list[4].extra') [-Werr
or]
msx264.c:62:2: error: excess elements in struct initializer [-Werror]
msx264.c:62:2: error: (near initialization for 'x264_conf_list[4]') [-Werror]
msx264.c:63:2: error: initialization makes pointer from integer without a cast [
-Werror]
msx264.c:63:2: error: (near initialization for 'x264_conf_list[5].extra') [-Werr
or]
msx264.c:63:2: error: excess elements in struct initializer [-Werror]
msx264.c:63:2: error: (near initialization for 'x264_conf_list[5]') [-Werror]
msx264.c:64:2: error: initialization makes pointer from integer without a cast [

。。。。。。。。。。。。。。。。。。。。。。。。。
...全文
151 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
baidu_24211805 2015-01-07
  • 打赏
  • 举报
回复
引用 2 楼 ricciinhp 的回复:
在msx264.c文件的第58行,将整型值强制转化成指针时出错了,你改一下源代码,如下
void *p = (void*)integer //58行哦
谢谢~
ricciinhp 2015-01-07
  • 打赏
  • 举报
回复
在msx264.c文件的第58行,将整型值强制转化成指针时出错了,你改一下源代码,如下
void *p = (void*)integer //58行哦
赵4老师 2015-01-07
  • 打赏
  • 举报
回复
gcc的版本不对。我猜。

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧