测试平台:macbook air 2012 , os x 10.9.2 , eclipse 4.3

 

在升级了 10.9 之后,eclipse 的CDT 无法正常使用了

 

异常表现:

 

1. 文件乱码

2. command + b 后异常的错误(编译异常)

3.  Launch Failed Binary Not Found

4. eclipse 无法debug 

 

 

 

 

解决方法:

 

1. project--properties--resources--text file encoding --other--uft-8

2. Project > Properties > C/C++ General > Preprocessor Include Paths, Macros etc.

 

查看"Providers" 选项, 如果 "CDT GCC Built-in Compiler Settings MinGW [shared]" 没有选择,那么就选上,然后点击"Apply" and “Ok".

 

3. Project > Properties > C/C++ Build > Settings > Binary Parsers : Make sure "Mach-O 64 Parser is selected"

 

4. 因为10.9 移除了gdb 所以无法debug。解决方法

     4.1 安装brew:在terminal 中输入 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

    4.2 brew doctor

    4.3 使用brew在线安装GDB调试器:

        $ brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gdb.rb

    4.4 Codesigning gdb

        4.4.1 Y

ou need to create a certificate and sign gdb:

 

2. Open application “Keychain Access” (/Applications/Utilities/Keychain Access.app)

 

3. Open menu /Keychain Access/Certificate Assistant/Create a Certificate...

Choose a name (gdb-cert in the example), set “Identity Type” to “Self Signed Root”, set “Certificate Type” to “Code Signing” and select the “Let me override defaults”. Click “Continue”.

 

4. You might want to extend the predefined 365 days period to 3650 days.

 

5. Click several times on “Continue” until you get to the “Specify a Location For The Certificate” screen, then set “Keychain to System”.

 

6. If you can't store the certificate in the “System” keychain, create it in the “login” keychain, then export it. You can then import it into the “System” keychain.

 

7. In keychains select “System”, and you should find your new certificate. Use the contextual menu for the certificate, select “Get Info”, open the “Trust” item, and set “Code Signing” to “Always Trust”.

 

8.You must quit “Keychain Access” application in order to use the certificate and restart 

“taskgated” service by killing the current running “taskgated” process. Alternatively you can restart your computer.

 

9. Finally you can sign gdb:

 

      $ codesign -s gdb-cert /usr/local/bin/gdb

参考连接:

http://wiki.lazarus.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5 

http://ntraft.com/installing-gdb-on-os-x-mavericks/

(原创) mac 10.9.2 eclipse 的 CDT 的 异常的修复的更多相关文章

  1. Eclipse 安装 CDT

    最近准备开始重新学C++,先从IDE开始准备起 Ubuntu下安装非常简单: 打开Eclipse: help -> Install new software ->  http://down ...

  2. mac 10.11.6,Xcode8下,ruby2.3安装,Cocoapods安装~

    适用环境 mac: 10.11.6 Xcode:8.1 命令执行步骤(安装ruby2.3前准备工作) 查看ruby更新源 gem sources  -L 删除默认官方或者淘宝,新增 https://g ...

  3. mac 10.9.4下配置apache

    mac 10.9.x已经自带了apache,可按如下步骤开启: 1.启动 sudo apachectl start 启动后,访问 http://localhost/ 应该能看到"It wor ...

  4. linux 安装eclipse 和cdt

    这个东西说起来简单,但是经历了无数次到失败,终于还是安装完成了. 最早到时候我下载了eclipse和cdt让后安装,安装完成以后,无法运行和编译程序 后来我学到了一个牛逼的命令yum 这个命令会帮助我 ...

  5. mac 10.9开启有道词典取词功能

    取词时候,有道词典给出提示,说要去开启辅助功能,但提示的是在mac 10.8上面怎么操作,在10.9的话,就是以下位置去改了. 补充以下: 在mac机器上,实际上大多数的单词都能从自带的词典中查找到. ...

  6. [转]mac 10.9.4下配置apache

    出处:http://yjmyzz.cnblogs.com mac 10.9.x已经自带了apache,可按如下步骤开启: 1.启动 sudo apachectl start 启动后,访问 http:/ ...

  7. Windows7 sp1 64位下安装配置eclipse+jdk+CDT+minGW

    需要的工具: jdk-7u11-windows-x64.exe  eclipse-SDK-4.2.2-win32-x86_64.zip cdt-master-8.1.2.zip mingw-get-i ...

  8. Android SDK +Eclipse+ADT+CDT+NDK 开发环境在windows 7下的搭建

    Android SDK+Eclipse+ADT+CDT+NDK 开发环境在windows 7下的搭建 这几天一直在研究 Android SDK  C/C++平台的搭建,尽管以前有成功在Windows ...

  9. Windows 7中使用Eclipse 使用CDT and WinGW 开发C/C++(转载)

    以前使用visual studio 2010编写C/C++,后来接触了Eclipse后,据说eclipse也可以编写C/C++,以前觉得Visual studio 2010还蛮不错的,也没有多大好奇心 ...

随机推荐

  1. 火狐的bug

    初次启动火狐的界面并且默认是最大化的情况下,第一个业签时会发现火狐的浏览器无法达到下边框,请看图 途中可以看到,body区域没有填充满浏览器可用区域.但是当浏览器已经启动页签,现在是第二个页签时,则不 ...

  2. ubuntu 下搭建一个python3的虚拟环境(用于django配合postgresql数据库开发)

     #安装python pip  (在物理环境中安装) sudo apt-get install python-pip       sudo apt-get install python3-pipsud ...

  3. linux最大文件句柄数量总结

    转载:http://jameswxx.iteye.com/blog/2096461 useradd -g gid -G gid1,gid2 user usermod -g gid -G gid1,gi ...

  4. LeetCode_Simplify Path

    Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", ...

  5. PowerShell中的输出

    1 输出重定向 >  或者>> 2 输出控制 out-* -paging#分页输出 get-process | out-host -paging more指令用于屏显 get-pro ...

  6. (转载):() { :|:& }; : # <-- 打开终端,输入这个,回车.你看到了什么??

    代码::() { :|:& }; : 为什么这个东西会让你的系统死掉???有人执行了然后问我 让我们来分析一下这段代码,我改一下格式,但内容是一样的 代码::() # 定义一个叫“:”的过程  ...

  7. 做一个有理想的IT人

    前段时间一直以来都在思考生命的价值的问题,一直在想人的一生的追求是什么.在这个物欲横流的社会,对人的价值的定义只是在财富积累的多少,这个是大多数人所认为的.但人的一生顶多百年,百年之后这些虚荣划归为尘 ...

  8. apacheOfbiz

    一.ofbiz 用自身数据库安装 1. 由 binary 安装: 由 binary 安装非常简单, 以下是安装方法: 下载ofbiz-2.0-beta1-complete.tar.gz, 注意不是of ...

  9. Android 之 Eclipse 导入 Android 源码

    很多人都下载过下图中的 Sources for Android SDK,但是很少人知道怎么用       下载完毕后可以再 Android SDK 根目录下看到 sources 文件夹内 有 andr ...

  10. 04747_Java语言程序设计(一)_第8章_多线程

    例8.1应用程序用Thread子类实现多线程. import java.util.Date; public class Example8_1 { static Athread threadA; sta ...