惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
WordPress大学
WordPress大学
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
小众软件
小众软件
L
LangChain Blog
雷峰网
雷峰网
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
NISL@THU
NISL@THU
Scott Helme
Scott Helme
量子位
S
Security Affairs
T
Threat Research - Cisco Blogs
博客园_首页
云风的 BLOG
云风的 BLOG
D
Docker
AWS News Blog
AWS News Blog
腾讯CDC
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
U
Unit 42
Recent Announcements
Recent Announcements
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
T
The Exploit Database - CXSecurity.com
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 热门话题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Last Watchdog
The Last Watchdog
C
Cybersecurity and Infrastructure Security Agency CISA
IT之家
IT之家
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
L
Lohrmann on Cybersecurity
The Hacker News
The Hacker News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Y
Y Combinator Blog
S
Security @ Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
N
News and Events Feed by Topic
PCI Perspectives
PCI Perspectives
I
InfoQ

博客园 - 子风

Android相关转载帖子 c++ 函数的工作原理 C和C++的存储模式 c++ 虚析构函数的思考 arm-linux-g++ 下交叉编译libxml2 (转)Eclipse代码提示功能设置(Java & C/C++) linux下面eclipse的c++配置 VS2008 配置boost 用VS.NET2008打包程序遇到不可恢复的生成错误的解决方案 推荐一个原型的设计软件 Mockups For Desktop Grid++Report——推模式下填充子报表 c# 对象的创建过程 Failure sending mail - 子风 XP下IIS错误:Server Application Error css总结 asp.net缓存-数据依赖缓存 - 子风 - 博客园 .net 测试工具 .net 发送Email 利用7z来分卷压缩文件
VS2005配置开发ARM
子风 · 2012-04-24 · via 博客园 - 子风

参考Blog http://blog.csdn.net/mienfong/article/details/3131842 基本上都是已经这篇blog来做的,感谢作者。

我的环境  :xpsp3 vs2005 + cygwin 

Demo:  Arm_Linux_Test下载     MakefilePDF

以下是Blog,我没做修改。

—————————————————————————————————————————————————————————————————

Dev-C++ 編譯ARM程式教學教您如何使用Dev-C++編譯ARM程式,想用Dev-C++ 的朋友可以去看看。

這是該文章裡部份資料,煩請依文下載檔案。

關於cross-compiler的部份在cygwin你可以使用cygwin-arm-cross-2.95.3,但是如果不使用cygwin則不能使用這個工具,因為它好像會用到cygwin的某些dll,所以我使用了另一個工具包(下載),這個工具包只是一個自解壓縮檔,解開之後就可以用了。假設你把工具包解開放在「C:/etc/devkitGP2X」,以下的步驟將敎你如何在dev-cpp下設定該開發環境。

下文中鄙人是同時安裝cygwin和devkitGP24X,因為鄙人的cygwin編譯時會出現錯誤故將arm-linux覆蓋devkitGP2X裡相同的資料夾,並使用devkitGP2X裡的arm-linux。

VC建立編譯環境

(1)新建專案 -> 選擇一般裡的Makefile 專案 。

(2)出現Makefile 應用程式精靈,組態設定先不設,直接按完成。

 

(3)設定ARM編譯環境。
          選擇Arm_Linux_Test專案,按右鍵選起屬性。

(4)組態設定(C:/cygwin/ 為安裝的cygwin路徑)
          選NMake -> 包含搜尋路徑:加入兩個include路徑
          C:/cygwin/usr/include
          C:/cygwin/lib/gcc/i686-pc-cygwin/3.4.4/include/c++  (3.4.4是依使用版本而定)

(5)設定建置時的命令。
          輸入
          PATH = $PATH;c:/cygwin/bin
          cd ../Arm_Linux_Test    (這是存放程式的目錄)
          c:/cygwin/bin/make.exe PLATFORM=arm

(6)設定重建時的命令。
          輸入
          PATH = $PATH;c:/cygwin/bin
          cd ../Arm_Linux_Test
          c:/cygwin/bin/make.exe rebuild PLATFORM=arm (記得加上rebuild)

(7)設定清除時的命令。
          輸入
          PATH = $PATH;c:/cygwin/bin
          cd ../Arm_Linux_Test
          c:/cygwin/bin/make.exe clean PLATFORM=arm (記得加上clean)

(8)最後設定Makerfile。

 
          建立Makefile檔,填入下面Makefile內容,說明文字(藍字)請刪除。
          您可依情況自行修改,Makefile相關資料請自行上網查詢

  1. # Project: Arm_Linux_Test
  2. ifeq (arm,$(PLATFORM))
  3. CXX  = c:/devkitGP2X/bin/arm-linux-g++.exe     #若有使用devkitGP2X的arm-linux-gcc的位置,若單獨使用cygwin
  4. CC   = c:/devkitGP2X/bin/arm-linux-gcc.exe         #請自行在cygwin目錄中尋找存放這三個編譯器的位置
  5. LD   = c:/devkitGP2X/bin/arm-linux-ld.exe
  6. endif
  7.                                                                                #若不是使用devkitGP2X請依情況改成cygwin的目錄
  8. LIBS =  -L"c:/devkitGP2X/lib"  
  9. INCS =  -I"c:/devkitGP2X/include"
  10. CXXINCS =  -I"c:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include"  -I"c:/devkitGP2X/include/c++/4.0.2/backward"  -I"c:/devkitGP2X/include/c++/4.0.2/arm-linux"  -I"c:/devkitGP2X/include/c++/4.0.2"  -I"c:/devkitGP2X/include" 
  11. CXXFLAGS = $(CXXINCS)  
  12. CFLAGS = $(INCS)  
  13. RM = rm -f
  14. #CFLAGS=-Wall -g -O
  15. BIN  = Process_Thread_Test.exe                #決定建置出來的檔名及所以位置(預設是方案的目錄下)
  16. OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) $(patsubst %.s,%.o,$(wildcard *.s)) $(patsubst %.cpp,%.o,$(wildcard *.cpp))
  17. .PHONY:rebuild clean
  18. $(BIN): $(OBJS)
  19.     $(CC) $(OBJS) -o $(BIN) $(LIBS)
  20. clean:                                                            #這是清除命令,之前的清除命令列就是設這裡
  21.     $(RM) $(OBJS) $(BIN)
  22.     
  23. rebuild: clean $(BIN)                                    #重建命令列

環境設置好了,可用VC編譯Arm程式了。

学习,积累中......