嵌入式linux平台上Eclipse C++开发环境的建立
来源:互联网 发布:龙岩广电网络客服电话 编辑:程序博客网 时间:2024/06/05 20:10
先装JRE, sudo apt-get install sun-java6-jre
下载eclipse C++的压缩包,解压开袋即食
新建项目,右键属性,C/C++bulid,Setting,Configuration新添加一个,Command处填写arm-linux-gcc
,编译,,,
TMD又出现arm-linux-gcc not found ! 明明arm-linux-gcc -v 没问题!
杀手锏,gedit /etc/profile /etc/environment /etc/bash.bashrc ~/.bashrc ~/.profile
全都加上export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/usr/local/arm/4.3.2/bin"
ok~
but~还有新的问题:
**** Build of configuration arm for project hello ****
make all
Building file: ../src/hello.c
Invoking: GCC C Compiler
/usr/local/arm/4.3.2/bin/arm-linux-gcc -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/hello.d" -MT"src/hello.d" -o"src/hello.o" "../src/hello.c"
Finished building: ../src/hello.c
Building target: hello
Invoking: GCC C Linker
gcc -o"hello" ./src/hello.o
/usr/bin/ld: ./src/hello.o: Relocations in generic ELF (EM: 40)
./src/hello.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [hello] Error 1
产生错误:
could not read symbols: File in wrong format,
找到这个hello.o,执行file hello.o, 显示:ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped,没错阿
仔细看日志,
arm-linux-gcc已经编译处了。0文件,参数是
arm-linux-gcc -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/hello.d" -MT"src/hello.d" -o" o文件名 原文件名,难道是参数有错?还有一点可能,出错明显是link过程产生的
看日志,/usr/bin/ld: ./src/hello.o: Relocations in generic ELF (EM: 40),,,居然用这个ld来连接,,,而没用我的arm-linux-ld,不报错才怪,但是,eclipse在那里设置ld呢,,,
猜想没错,工程属性设置中,
Linker和Assembler的命令分别换成/usr/local/arm/3.4.1/bin/arm-linux-gcc和/usr/local/arm/3.4.1/bin/arm-linux-as
这样link中间.o文件文件的时候就OK了
http://topic.csdn.net/u/20090620/10/f435f4d9-b8d7-49d8-9bf3-96bcf0707505.html
http://www.linuxeden.com/forum/thread-155047-1-16.html
http://www.cnblogs.com/xubing/archive/2010/06/07/1752405.html
https://www.bdwm.net/bbs/bbstcon.php?page=0&board=ElecDIY&threadid=3684601&num=0
http://www.friendlyarm.net/forum/topic/124
http://www.czz8.com/Linuxfuwuqi/12697.html
http://forum.ubuntu.com.cn/viewtopic.php?f=97&t=245423
http://www.eclipse.org/forums/index.php?t=msg&&th=47854&goto=154076
- 嵌入式linux平台上Eclipse C++开发环境的建立
- eclipse c +jre开发环境的建立(嵌入式linux,64位ubuntu,32位arm板)
- 嵌入式Linux开发环境的建立——Ubuntu上建立tftp服务器
- 嵌入式linux的tftp开发环境建立
- 学习心得:嵌入式linux开发环境的建立
- 一、嵌入式LINUX开发环境的建立
- 学习心得:嵌入式linux开发环境的建立
- eclipse 上C和C++的开发环境
- 建立嵌入式 Linux 开发环境
- 嵌入式Linux开发环境的建立——Ubuntu上安装nfs服务器
- 嵌入式linux的NFS开发环境的建立
- 在windows平台上建立自由的开发环境
- 嵌入式3D-嵌入式3D开发环境的建立-嵌入式linux系统
- Windows上建立Eclipse和SVN的开发环境
- linux平台的C开发环境
- Debian下的C/C++开发环境建立
- 在windows平台上搭建linux C 开发环境
- 嵌入式的开发环境的建立
- 拥有一个会说话的青蛙
- 淘宝OpenAPI使用
- 用DevExpress的WebChartControl实现的一个饼图
- 新版天线库
- http://acm.hdu.edu.cn/showproblem.php?pid=2674 (很神奇)
- 嵌入式linux平台上Eclipse C++开发环境的建立
- ImmGetVirtualKey 的remarks
- poj3300
- webservice中的序列化时 检测到对象的循环引用
- P4P
- 求组合数算法
- LG手机招致密集投诉:两个月系统崩溃8次
- 新人报道
- OpenGL画圆简洁小程序