Mac上配置C++ Eclipse 尤其是GDB错误
来源:互联网 发布:windows无法完成格式化 编辑:程序博客网 时间:2024/06/16 20:10
问题很多 Mac还是老老实实用xcode吧
安装Eclipse CDT
https://eclipse.org/cdt/
安装gdb
brew install gdb
安装完,debug时如果出现如下错误,请按照此文方法解决
"Launching projectName" has encountered a problem. Error with command gdb --version
Error with command: gdb --versionCannot run program "gdb": Unknown reason
原文在此 https://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html
摘出精要部分于此
Creating a Certificate
Open the Keychain Access. Select
- Then click to skip the next six screens until you see the one entitled .
- Back in the main window, choose the keychain in the sidebar on the left, and select the newly created certificate from the list. Open the context menu and select . In the information window that will appear, expand the section and set the property to . Close this window (you may be asked for your password), and quit Keychain Access.
Signing GDB
You can use Activity Monitor to restart taskgated. Open it and filter the list of processes by typing taskgated
in the search field in the toolbar. (If you cannot find it, make sure the menu item is checked.)
Terminate Taskgate process . In a few seconds, it will be restarted by the system and should reappear in the list. Please wait for this to happen (it may take up to a minute or two, at worst).
Finally, in a Terminal window, run codesign -s gdbcert /usr/local/bin/gdb
(if you named your certificate differently, replace gdbcert
with its name here). Once again, you will be prompted for you username and password. If the command does not produce any output, then GDB is successfully signed.
Configuring Eclipse
The only thing left to do is to point Eclipse to the GDB executable. Open /usr/local/bin/gdb
.
- Mac上配置C++ Eclipse 尤其是GDB错误
- Mac里配置Eclipse + GDB 解决Mac下GDB提示签名错误
- Mac里配置Eclipse + GDB
- Mac 上eclipse 配置Tomcat
- mac 上安装 gdb
- Mac上安装gdb
- mac上安装gdb
- Mac - gdb配置
- Mac Eclipse 配置Tomcat 出现localhost:8080/ 404错误
- eclipse上配置c语言开发环境
- eclipse上配置c语言开发环境
- Eclipse上配置c语言开发环境
- eclipse上配置c语言开发环境
- mac系统上的Hadoop+Eclipse+HBase单机配置
- Mac 上配置Python开发环境 Pydev + Eclipse
- mac上eclipse配置tomcat踩过的坑
- Mac上配置maven+eclipse+spark开发环境
- Mac上配置maven+eclipse+spark开发环境
- 转换MON APR 11 16:34:25 CST 2016为较常用的 YYYY-MM-DD HH:MM:SS
- WPF 学习资料收集 学习路径
- 论Servlet的技能重要性
- hi8pro 单安卓 32G分区教程
- HOG+SVM
- Mac上配置C++ Eclipse 尤其是GDB错误
- JavaScript和CSS你未必知道的交互方法
- 使用python完成公司考勤数据的邮件发送
- foreach循环
- java-动态代理
- 详解 Navicat for MySQL 用户设计器
- virtualbox、vmware硬盘文件相互转换方法
- Mysql 远程连接数据库 设置
- Linux下源码安装MySQL 5.6(转)