该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
操作系统:Ubuntu14.04 LTS ;
Qt版本:Qt4.8.6 for embedded
交叉编译器:arm-linux-gcc-v6-vfp-20101103.tgz (即4.5.1版)
tslib版本:tslib1.4
如题所述,我正确安装了交叉编译器,arm-linux-gcc -v 有正确显示版本信息。并且添加了环境变量,echo $PATH 显示结果如下:
/opt/FriendlyARM/toolschain/4.5.1/bin:/usr/local/Trolltech/Qt-4.8.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/game
之后安装tslib:
需要安装的包:
# apt-get install autoconf
# apt-get install automake
# apt-get install libtool
解压:
# tar -zxvf tslib-1.4.tar.gz
# cd tslib
# ./autogen.sh
# echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
# ./configure --host=arm-none-linux-gnueabi --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no --prefix=/usr/local/tslib但是配置报错,结果如下:
configure: WARNING: unrecognized options: --enable-inputapi
configure: loading cache arm-none-linux-gnueabi.cache
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-none-linux-gnueabi-strip... (cached) strip
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking whether make supports nested variables... (cached) yes
checking for arm-none-linux-gnueabi-g++... arm-none-linux-gnueabi-g++
checking whether the C++ compiler works... no
configure: error: in `/home/wugelin/Documents/tslib*:
configure: error: C++ compiler cannot create executables
See `config.log* for more details貌似是C++编译器的问题,不知道是PC的gcc问题还是指交叉编译器的问题。但是gcc编译器在编译别的程序都没问题。
更加古怪的是我按照网上的说法sudo ./configure --host=arm-none-linux-gnueabi --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no --prefix=/usr/local/tslib就可以配置成功生成makefile文件。提示如下:configure: WARNING: unrecognized options: --enable-inputapi
configure: loading cache arm-none-linux-gnueabi.cache
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-none-linux-gnueabi-strip... (cached) strip
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking whether make supports nested variables... (cached) yes
checking for arm-none-linux-gnueabi-g++... no
checking for arm-none-linux-gnueabi-c++... no
checking for arm-none-linux-gnueabi-gpp... no
checking for arm-none-linux-gnueabi-aCC... no
checking for arm-none-linux-gnueabi-CC... no
checking for arm-none-linux-gnueabi-cxx... no
checking for arm-none-linux-gnueabi-cc++... no
checking for arm-none-linux-gnueabi-cl.exe... no
checking for arm-none-linux-gnueabi-FCC... no
checking for arm-none-linux-gnueabi-KCC... no
checking for arm-none-linux-gnueabi-RCC... no
checking for arm-none-linux-gnueabi-xlC_r... no
checking for arm-none-linux-gnueabi-xlC... no
checking for g++... (cached) g++
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... no
checking for suffix of object files... (cached) o
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for style of include used by make... GNU
checking dependency style of g++... (cached) gcc3
checking for arm-none-linux-gnueabi-gcc... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... (cached) gcc -E
checking whether the C compiler supports -fvisibility=hidden... (cached) yes
checking whether to use -fvisibility=hidden... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... (cached) x86_64-unknown-linux-gnu
checking host system type... (cached) arm-none-linux-gnueabi
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for fgrep... (cached) /bin/grep -F
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... (cached) no
checking for arm-none-linux-gnueabi-dumpbin... no
checking for arm-none-linux-gnueabi-link... no
checking for dumpbin... (cached) link -dump
checking the name lister (nm) interface... (cached) BSD nm
checking the maximum length of command line arguments... (cached) 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to arm-none-linux-gnueabi format... (cached) func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... (cached) func_convert_file_noop
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for arm-none-linux-gnueabi-objdump... no
checking for objdump... (cached) objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for arm-none-linux-gnueabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... (cached) printf %s\n
checking for arm-none-linux-gnueabi-ar... no
checking for ar... (cached) ar
checking for archiver @FILE support... (cached) @
checking for arm-none-linux-gnueabi-strip... (cached) strip
checking for arm-none-linux-gnueabi-ranlib... no
checking for ranlib... (cached) ranlib
checking command to parse nm output from gcc object... (cached) ok
checking for sysroot... no
checking for arm-none-linux-gnueabi-mt... no
checking for mt... (cached) mt
checking if mt is a manifest tool... (cached) no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... (cached) .libs
checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc option to produce PIC... (cached) -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... (cached) no
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) no
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 how to run the C++ preprocessor... (cached) g++ -E
checking for ld used by g++... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... (cached) -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... (cached) yes
checking if g++ static flag -static works... (cached) yes
checking if g++ supports -c -o file.o... (cached) yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for dlopen in -ldl... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... (cached) int,fd_set *,struct timeval *
checking return type of signal handlers... (cached) void
checking whether lstat correctly handles trailing slash... (cached) yes
checking whether stat accepts an empty string... (cached) no
checking for vprintf... (cached) yes
checking for _doprnt... (cached) no
checking for bzero... (cached) yes
checking for gettimeofday... (cached) yes
checking for memmove... (cached) yes
checking for memset... (cached) yes
checking for munmap... (cached) yes
checking for select... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking whether linear modules is requested... yes
checking whether dejitter module is requested... yes
checking whether linear-h2200 module is requested... yes
checking whether variance module is requested... yes
checking whether pthres module is requested... yes
checking whether ucb1x00 module is requested... yes
checking whether corgi module is requested... yes
checking whether collie module is requested... yes
checking whether h3600 module is requested... yes
checking whether mk712 module is requested... yes
checking whether arctic2 module is requested... yes
checking whether input module is requested... yes
checking where to place modules... ${libdir}/ts/
checking whether to enable debugging... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating etc/Makefile
config.status: creating plugins/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tslib-0.0.pc
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: --enable-inputapi
但是紧接着的Qt4.8.6的configure又出现tslib test failed的错误。也不知道是交叉编译器没搞好还是tslib库强行编译通过出问题自己不知道。什么-L ,-I的我都加了,甚至ts_calibrate.c的错误我也改了。但是都宣告失败。这两天一直在弄这个都没搞出来,几近崩溃。。。跪求大神指导啊!!!
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态