分享

ADA开发环境的建立

 t涂鸦 2012-08-10
ADA开发环境的建立
Author: misty (qibing83@yahoo.com.cn)
1.1      Windows上开发环境的建立
1.       下载gnat安装软件,gnat软件下载地址:https://libre. ,下载软件GNAT GPL Edition,下载时需要用户登录,下载文件:gnat-gpl-2008-pentium-mingw32msv-bin.exegnatbench-2.1.0-pentium-mingw32msv-bin-eclipse.exeGTKADA下载文件:GtkAda-gpl-2.10.2.tgzgtkada-gpl-2.10.2-nt.exe
2.       安装gnat软件,点击安装gnat-gpl-2008-pentium-mingw32msv-bin.exe,安装后还需要设置环境变量ENV_PATH的值,在“我的电脑”-“属性”-“高级”-“环境变量”-“新建”,然后把环境变量ENV_PATH赋值为bin安装路径,比如:如果gnat安装在D盘中,则ENV_PATH=D:\GANT\bin(这样是为了解决“找不到gnatmake”的错误提示问题)。
Error message : "gnatmake is not recognized as an internal or external command"
 Technote (FAQ)
  Problem
During an Ada build on Windows using the gnat compiler, the following error is encountered:
"gnatmake" is not recognized as an internal or external command" 
  Cause
In the "Ada Win32 - Gnat 3.11" Target Deployment Port (TDP), the path to the compiler is predefined. If the compiler is not actually installed in this location, the error results when during the build gnatmake is invoked. 
  Solution
Open the TDP and in Basic Settings locate the environment variable ENV_PATH. Then update it to reflect the current installation path of the Gnat compiler.
1.2        Linux ubuntu 上开发环境的建立
1.       下载安装gnat软件,在ubuntu上可以使用#sudo apt-get install gnat自动下载安装gnat软件包,默认安装在/usr/bin目录下。(也可以下载gnat-gpl-2008-i686-gnu-linux-libc2.3-bin.tar.gz软件包自己安装)。
2.       下载安装gtkada软件,到如上网站下载GtkAda-gpl-2.10.2.tgz软件包,用-zxvf解压后,运行#./configure –prefix=/opt/gtkada#make install安装到目录/opt/gtkada下。
3.       设置环境变量,在文件/etc/profile中设置:#export PATH=$PATH:/opt/gtkada/bin#export LD_LIBRARY_PATH=$ LD_LIBRARY_PATH:/opt/gtkada/lib#export FONTCONFIG_FILE=/etc/fonts/fonts.conf
4.       编译程序,用命令#gnatmake <main-file>可以编译ada程序并输出一个可执行程序;使用命令#gnatmake <main-file> `gtkada-config`编译gtkada程序并输出一个可执行程序,注意gtkada-config两边的符号是tab键上方的那个按键。
1.3 ada常用的技术网站
1.  www.
2.  www.
3.  www.
4.  www.
5.  www.
6.  www.
8.  新闻组:news:comp.lang.ada

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多