免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2053 | 回复: 0
打印 上一主题 下一主题

[应用] 求助:基于AR9331的AP121设备,编译lirc出错,请大侠帮看看 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-12-10 16:16 |只看该作者 |倒序浏览
选择的lirc版本是:lirc-0.8.7

日志如下:
[BEGIN] 2014/12/10./configure --target=mips-linux-uclibc --host=mips-linux-uclibc --build=x86_64-linux-gnu --
-program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var
--mandir=/usr/man --infodir=/usr/info --disable-nls --disable-ipv6 --disable-nls --disable-static --with-kerneldir="/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBD
Dev/linux/kernels/mips-linux-2.6.31" --with-driver="mceusb" --without-x --with-pic --with-gnu-ld --encd apps/l./configure --target=mips-linux-uclibc --host=mips-linux-uclibc --build=x86_64-linux-gnu --
-program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var
--mandir=/usr/man --infodir=/usr/info --disable-nls --disable-ipv6 --disable-nls --disable-static --with-kerneldir="/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBD
Dev/linux/kernels/mips-linux-2.6.31" --with-driver="mceusb" --without-x --with-pic --with-gnu-ld --enable-sandboxed --enable-daemonize
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6, --disable-nls
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-linux-uclibc-strip... mips-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-linux-uclibc-gcc... mips-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-linux-uclibc-gcc accepts -g... yes
checking for mips-linux-uclibc-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mips-linux-uclibc-gcc... gcc3
checking whether mips-linux-uclibc-gcc and cc understand -c and -o together... yes
checking whether make sets $(MAKE)... (cached) yes
checking for mknod... /bin/mknod
checking for mkfifo... /usr/bin/mkfifo
checking for depmod... /sbin/depmod
checking for libusb-config... no
checking whether ln -s works... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-unknown-linux-uclibc
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 mips-linux-uclibc-gcc... /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/gcc-4.3.3/build_mips/staging_dir/usr/mips-linux-uclibc/bin/ld
checking if the linker (/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/gcc-4.3.3/build_mips/staging_dir/usr/mips-linux-uclibc/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/../build/gcc-4.3.3/build_mips/staging_dir/usr/bin/mips-linux-uclibc-nm -B
checking the name lister (/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/../build/gcc-4.3.3/build_mips/staging_dir/usr/bin/mips-linux-uclibc-nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/gcc-4.3.3/build_mips/staging_dir/usr/mips-linux-uclibc/bin/ld option to reload object files... -r
checking for mips-linux-uclibc-objdump... mips-linux-uclibc-objdump
checking how to recognize dependent libraries... pass_all
checking for mips-linux-uclibc-ar... mips-linux-uclibc-ar
checking for mips-linux-uclibc-strip... (cached) mips-linux-uclibc-strip
checking for mips-linux-uclibc-ranlib... mips-linux-uclibc-ranlib
checking command to parse /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/../build/gcc-4.3.3/build_mips/staging_dir/usr/bin/mips-linux-uclibc-nm -B output from mips-linux-uclibc-gcc object... ok
checking how to run the C preprocessor... mips-linux-uclibc-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... yes
checking for objdir... .libs
checking if mips-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for mips-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if mips-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes
checking if mips-linux-uclibc-gcc static flag -static works... yes
checking if mips-linux-uclibc-gcc supports -c -o file.o... yes
checking if mips-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the mips-linux-uclibc-gcc linker (/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/build/gcc-4.3.3/build_mips/staging_dir/usr/mips-linux-uclibc/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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 python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for gethostname... yes
checking for gettimeofday... yes
checking for mkfifo... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strtoul... yes
checking for snprintf... yes
checking for strsep... yes
checking for vsyslog... yes
checking for forkpty... no
checking for forkpty in -lutil... yes
checking vga.h usability... no
checking vga.h presence... no
checking for vga.h... no
checking for X... disabled
checking for getopt_long... yes
checking for mktemp... yes
checking for Linux kernel sources... gcc: error: 0: No such file or directory
gcc: error: unrecognized option '-G'
gcc: error: 0: No such file or directory
gcc: error: unrecognized option '-G'
/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31/
checking for which drivers can be installed on this system...
checking for caraca_init in -lcaraca_client... no
checking ftdi.h usability... no
checking ftdi.h presence... no
checking for ftdi.h... no
checking iguanaIR.h usability... no
checking iguanaIR.h presence... no
checking for iguanaIR.h... no
checking for ir_strerror in -lirman... no
checking for ir_strerror in -lirman_sw... no
checking portaudio.h usability... no
checking portaudio.h presence... no
checking for portaudio.h... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/hiddev.h... yes
checking for HIDDEV_FLAG_UREF support... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/i2c-dev.h usability... yes
checking linux/i2c-dev.h presence... yes
checking for linux/i2c-dev.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating drivers/Makefile
config.status: creating drivers/lirc_atiusb/Makefile
config.status: creating drivers/lirc_bt829/Makefile
config.status: creating drivers/lirc_ene0100/Makefile
config.status: creating drivers/lirc_dev/Makefile
config.status: creating drivers/lirc_gpio/Makefile
config.status: creating drivers/lirc_i2c/Makefile
config.status: creating drivers/lirc_igorplugusb/Makefile
config.status: creating drivers/lirc_ttusbir/Makefile
config.status: creating drivers/lirc_imon/Makefile
config.status: creating drivers/lirc_it87/Makefile
config.status: creating drivers/lirc_ite8709/Makefile
config.status: creating drivers/lirc_mceusb/Makefile
config.status: creating drivers/lirc_parallel/Makefile
config.status: creating drivers/lirc_sasem/Makefile
config.status: creating drivers/lirc_serial/Makefile
config.status: creating drivers/lirc_sir/Makefile
config.status: creating drivers/lirc_streamzap/Makefile
config.status: creating drivers/lirc_wpc8769l/Makefile
config.status: creating daemons/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6, --disable-nls

You will have to use the lirc_mceusb kernel module.

Now enter 'make' and 'make install' to compile and install the package.

jw@JW1000608:~/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7$ make
make  all-recursive
make[1]: 正在进入目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7'
Making all in drivers
make[2]: 正在进入目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers'
Making all in lirc_dev
make[3]: 正在进入目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev'
cp ./../lirc_dev/Module*.symvers .
cp: 无法获取"./../lirc_dev/Module*.symvers" 的文件状态(stat): 没有那个文件或目录
make[3]: [lirc_dev.o] 错误 1 (忽略)
mv Makefile Makefile.automake
cp ./../Makefile.kernel Makefile
CPPFLAGS="" CFLAGS="" LDFLAGS="" \
        make -C /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31/ SUBDIRS=/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev modules \
                KBUILD_VERBOSE=1
gcc: 错误: 0:没有那个文件或目录
gcc: 错误: unrecognized option ‘-G’
make[4]: 正在进入目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (                \
        echo;                                                                \
        echo "  ERROR: Kernel configuration is invalid.";                \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";        \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";        \
        echo;                                                                \
        /bin/false)
mkdir -p /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/.tmp_versions ; rm -f /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev
  gcc -Wp,-MD,/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -Iinclude  -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31/arch/mips/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ffreestanding -mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32 -Wa,-mips32r2 -Wa,--trap -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31/arch/mips/include/asm/mach-ar7240 -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31/arch/mips/include/asm/mach-generic -D"VMLINUX_LOAD_ADDRESS=0xffffffff80002000" -fomit-frame-pointer -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/. -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/. -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/../.. -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/../.. -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31//include/ -I/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31//drivers/media/video/  -DMODULE -mlong-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)"  -c -o /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/lirc_dev.o /home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/lirc_dev.c
gcc: 错误: 0:没有那个文件或目录
gcc: 错误: unrecognized option ‘-G’
make[5]: *** [/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev/lirc_dev.o] 错误 1
make[4]: *** [_module_/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev] 错误 2
make[4]:正在离开目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/linux/kernels/mips-linux-2.6.31'
make[3]: *** [lirc_dev.o] 错误 2
make[3]:正在离开目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers/lirc_dev'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7/drivers'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/jw/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7'
make: *** [all] 错误 2
jw@JW1000608:~/140703_AR9331_Dev/AR9331_LSDK_9.2.0_u11.14_16MB_DoubleVersion-USBDev/apps/lirc-0.8.7$
[END] 2014/12/10 16:14:47

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP