LinuxDev 板


LINE

※ 引述《FFz (澎湖.仙人掌.234)》之铭言: : : 你应该是使用到/usr/bin/g++。 : : 如果你要overwrite Makefile的设定的话, : : 你应该要设定环境变数,make才会overwrite那些变数,例如: : : CROSS_COMPILE=arm-elf- : : CC=${CROSS_COMPILE}gcc : : CXX=${CROSS_COMPILE}g++ : : AR=${CROSS_COMPILE}ar : : RANLIB=${CROSS_COMPILE}ranlib : : AS=${CROSS_COMPILE}as : : LD=${CROSS_COMPILE}ld : : export CROSS_COMPILE CC CXX AR RANLIB AS LD : : 然後再make。 : : 但我觉得你configure要重下参数, : 那我要怎麽知道我该overwrite哪些参数呢 : 每个package底下都还有其他需要安装的package : 而且都会各自有一个Makefile : 我是需要每个Makefile都修改吗? : 除了Makefile需要修改,Configure这个过程的前後需要改吗? : 还有需要注意什麽呢? 囧,我说的那些环境变数不是真的要写到所有Makefile里, 而是要在shell中设定那些变数。 你应该看一下我之前贴的这个网址: http://frank.harvard.edu/~coldwell/toolchain/ 虽然它用的glibc,不是newlib,但是许多观念应该大同小异。 : : 因为我看你的log档显示configure找到的是你的host compiler。 : 上述这句是什麽意思呢? 我把你放在网路上的.log档抓下来看了一下里面的内容。 我看到你执行configure这个程式的执行结果, 发现它抓到的编译器是for x86的编译器, 并不是cross compiler。所以我觉得你应该 先configure --help看看有哪些参数是给cross compile用的, 然後加上去,重新configure一次,再从shell输入我说的那些环境变数, 再make看看。 : : 可是我觉得你的host compiler(x86)就已经编译不过了, : : cross compiler要能编得过我觉得更不可能。 : : 因为Linux或者GNU软体目前对x86架构的支援度比较高。 : 看来我之前做的努力都白费了 0rz.... : 难怪我在网路上找相关资料时 : 文章里头都会overwrite这些参数 : 看来今天又得苦战了 : : 你要编的程式是从哪下载的? : : 贴出来,也许有人会帮你编编看,找出解决的方法。 : 底下是我安装toolchain的步骤以及下载的位置 : 档案在此 toolchain.txt : http://www.sendspace.com/file/x4xyzf : 内容我也贴一份在此 : 一.Building a cross compiler, assembler & linker :  1.安装binutils :   ftp://sources.redhat.com/pub/binutils/pub/binutils/releases/binutils-2.16.1.tar.gz :   ../binutils-2.16.1/configure --target=arm-elf --prefix=/foo :   make all :   make install :  2.安装gcc :   ftp://sources.redhat.com/pub/gcc/releases/gcc-3.3.6/gcc-3.3.6.tar.gz :   export PATH=/foo/bin:$PATH :   ../gcc-3.3.6/configure --target=arm-elf --prefix=/foo --enable-languages=c,c++ --with-newlib :   make all :   make install :  3.安装newlib :   ftp://sources.redhat.com/pub/newlib/newlib-1.14.0.tar.gz :   export PATH=/foo/bin:$PATH :   ../newlib-1.14.0/configure --target=arm-elf --prefix=/foo :   make all :   make install : 二、Building a cross debugger :  1.安装GDB :   ftp://sources.redhat.com/pub/insight/releases/insight-6.4.tar.bz2 :   export PATH=/foo/bin:$PATH :   ../insight-6.4/configure --target=arm-elf --prefix=/foo --enable-sim :   make all :   make install : 三、Simulator and Remote Debug :  1.安装SID :   ftp://sources.redhat.com/pub/sid/snapshots/sid-20070401.tar.bz2 :   export PATH=/foo/bin:$PATH :   ../src/configure --prefix=/foo -- Albert Einstein : If there is any religion that could cope with modern scientific needs it would be Buddhism. 《金刚经》一切有为法 如梦幻泡影 如露亦如电 应作如是观 http://web.cc.ncu.edu.tw/~93501025/jg.doc --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.115.200.121







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BabyMother站内搜寻

TOP