2011年5月25日星期三

LO52_project_CompactRIO-9022 +SEA cRIO Gxxx GPS GPRS

昨天Max和Gxxx连接还正常,今天拿去蔡兄那请教其他问题回来就连接故障了,无语呀!!!Comment faire?

Xenomai Linux 安装

You must install 'msgfmt' on your build machine
之后make
提示:
You must install 'msgfmt' on your build machine

msgfmt is usually part of the gettext package in your distribution

运行:sudo apt-get install gettext
make提示:
You must install 'makeinfo' on your build machine

makeinfo is usually part of the texinfo package in your distribution

运行:
sudo apt-get install gettext
make后可以运行了。

2011年5月5日星期四

(转载)ADA开发环境的建立 (转载 http://blog.chinaunix.net/space.php?uid=7876309&do=blog&cuid=1279900)

ADA开发环境的建立 (2008-10-09 20:35)

ADA开发环境的建立
Author: misty (qibing83@yahoo.com.cn)
1.1      Windows上开发环境的建立
1.       下载gnat安装软件,gnat软件下载地址:https://libre.adacore.com ,下载软件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常用的技术网站
8.  新闻组:news:comp.lang.ada