免费注册 查看新帖 |

Chinaunix

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

[新手求助]怎么对带configure的源码包进行交叉编译 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-03 15:32 |只看该作者 |倒序浏览
最近要把gsoap库移到设备上,用openwrt做的工具链,staging_dir_mips里应该带了所有gsoap需要的支持库。我想知道是否可以用gsoap的configure来生成对应的make文件,如果可以的话,configure后面应该带什么参数或者configure的配置文件应该怎么修改,谢谢?

我在ubnutu下用   ./configure --host:mips-linux CC='/home/shark/kamikaze/staging_dir_mips/bin/mips_linux_gcc' LDFLAGS='-L/home/shark/kamikaze/staging_dir_mips/lib -L/home/shark/kamikaze/staging_dir_mips/usr/lib' CPPFLAGS='-I/home/shark/kamikaze/staging_dir_mips/include -I/home/shark/kamikaze/staging_dir_mips/usr/include'
时结果如下:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-linux-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking whether make sets $(MAKE)... (cached) yes
checking for mips-linux-g++... no
checking for mips-linux-c++... no
checking for mips-linux-gpp... no
checking for mips-linux-aCC... no
checking for mips-linux-CC... no
checking for mips-linux-cxx... no
checking for mips-linux-cc++... no
checking for mips-linux-cl... no
checking for mips-linux-FCC... no
checking for mips-linux-KCC... no
checking for mips-linux-RCC... no
checking for mips-linux-xlC_r... no
checking for mips-linux-xlC... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for mips-linux-gcc... /home/test/svnroot/staging_dir_mips/bin/mips-linux-gcc
checking whether we are using the GNU C compiler... yes
checking whether /home/test/svnroot/staging_dir_mips/bin/mips-linux-gcc accepts -g... yes
checking for /home/test/svnroot/staging_dir_mips/bin/mips-linux-gcc option to accept ANSI C... none needed
checking dependency style of /home/test/svnroot/staging_dir_mips/bin/mips-linux-gcc... gcc3
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for bison... bison -y
checking how to run the C preprocessor... /home/test/svnroot/staging_dir_mips/bin/mips-linux-gcc -E
checking for mips-linux-ranlib... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for egrep... grep -E
checking for ANSI C header files... no
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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... 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 netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking return type of signal handlers... void
checking for strftime... yes
checking for working strtod... no
checking for pow... no
checking for pow in -lm... yes
checking for random... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for localtime_r... yes
checking for timegm... yes
checking for gmtime... yes
checking for gmtime_r... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strtold... yes
checking for strtod... (cached) no
checking for strtof... yes
checking for strtold_l... no
checking for strtod_l... no
checking for strtof_l... no
checking for sscanf... yes
checking for sscanf_l... no
checking for sprintf_l... no
checking for wctomb... yes
checking for mbtowc... yes
checking for gethostbyname_r... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for disable namespaces in library... no
checking for disable openssl in library... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gsoap.pc
config.status: creating gsoap++.pc
config.status: creating gsoapck.pc
config.status: creating gsoapck++.pc
config.status: creating gsoapssl.pc
config.status: creating gsoapssl++.pc
config.status: creating gsoap/Makefile
config.status: creating gsoap/src/Makefile
config.status: creating gsoap/wsdl/Makefile
config.status: creating gsoap/samples/Makefile
config.status: creating gsoap/samples/calc/Makefile
config.status: creating gsoap/samples/calc++/Makefile
config.status: creating gsoap/samples/dime/Makefile
config.status: creating gsoap/samples/dom/Makefile
config.status: creating gsoap/samples/events/Makefile
config.status: creating gsoap/samples/events++/Makefile
config.status: creating gsoap/samples/factory/Makefile
config.status: creating gsoap/samples/factorytest/Makefile
config.status: creating gsoap/samples/gmt/Makefile
config.status: creating gsoap/samples/googleapi/Makefile
config.status: creating gsoap/samples/hello/Makefile
config.status: creating gsoap/samples/httpcookies/Makefile
config.status: creating gsoap/samples/lu/Makefile
config.status: creating gsoap/samples/magic/Makefile
config.status: creating gsoap/samples/mashup/Makefile
config.status: creating gsoap/samples/mashup++/Makefile
config.status: creating gsoap/samples/mtom/Makefile
config.status: creating gsoap/samples/mtom-stream/Makefile
config.status: creating gsoap/samples/polytest/Makefile
config.status: creating gsoap/samples/roll/Makefile
config.status: creating gsoap/samples/router/Makefile
config.status: creating gsoap/samples/rss/Makefile
config.status: creating gsoap/samples/ssl/Makefile
config.status: creating gsoap/samples/udp/Makefile
config.status: creating gsoap/samples/varparam/Makefile
config.status: creating gsoap/samples/wsa/Makefile
config.status: creating gsoap/samples/wsse/Makefile
config.status: creating gsoap/samples/xml-rpc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

论坛徽章:
0
2 [报告]
发表于 2008-09-03 17:28 |只看该作者

回复 #1 holylight84 的帖子

用./configure --help查看一下!

论坛徽章:
0
3 [报告]
发表于 2008-09-04 09:23 |只看该作者
看过了,是按上边说的加的,但make的时候出现malloc找不到的错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP