现在的位置: 首页 > 综合 > 正文

使用automake准备编译 的步骤mount: RPC: Unable to receive; errno = Connection refused 的解决方法mount: 192.168.70.178:/ failed, reason given by server: Permission denied 问题ecere 编译过程中遇到的问题CodeDom Assistant CodeDom的强大工具, 有些BUG修正了下,发到CodePlex,大家有需要的可以看看新版ubuntu中打开终端的

2011年07月29日 ⁄ 综合 ⁄ 共 6998字 ⁄ 字号 评论关闭

安装好 automake 后, klaus@ubuntu:/mnt/hgfs/Lane/Lane$ automake configure.in:14: version mismatch.  This is Automake 1.11.3, configure.in:14: but the definition used by this AM_INIT_AUTOMAKE configure.in:14: comes from Automake 1.9.6.  You should recreate configure.in:14: aclocal.m4 with aclocal and run automake again. 意味着我们需要做些什么, 第一步 : autoscan 用 autoscan 产生一个 configure.in 的原型,执行autoscan 后会产生一个configure.scan 的文件,可以用它作为 configure.in文件的蓝本。 第二步: aclocal autoconf 执行 aclocal 和 autoconf ,分別会产生 aclocal.m4 及 configure 两个文件 然后执行: automake --add-missing 最后执行: ./configure
有关更详细 的范例请参考网上其他资料 这里仅仅是记录基本过程 。

192.168.70.58: ~# mount -o nolock 192.168.70.178:/emrc-etc  /mnt/EMRC-ETC mount: RPC: Unable to receive; errno = Connection refused mount: mounting 192.168.70.178:/emrc-etc on /mnt/EMRC-ETC failed: Bad file descriptor
原因是没安装 portamp 你需要 apt-get install nfs-kernel-server 然后 /etc/init.d/portmap restart 就好了

使用  exportfs -a 看下。 如果没有。 则编辑下 vi  /etc/exports 下面是内容, 写成: /root/ *(rw,sync) 注意 root 是 root 用的跟目录。 * 的意思是所有的主机, 你也可以写www.xxx.com 或者 之类之类的, 如果是IP , 他会反解析为 主机名, 如果这里面没有那个主机名, 就会提示没权限。 最好的方法直接是 * , 如果非常有必要。 那你就使用主机名好了。

 

 

下面是我的

mount -o nolock 192.168.70.178:/root/EMRC-ETC /mnt/EMRC-ETC

 

最后,最重要一点。

chmod 777 EMRC-ETC/

否则, 在开发板上无法写入或者创建文件。

先在 https://nodeload.github.com/ecere/sdk/tarball/master 下载到最新源码

解压后, 直接make

显示如下:

Bootstrapping eC compiling tools... Building ecere... Building ec... Building ecp... Building ecc... Building ecs... All done! Building dependencies... Building libungif... Building 2nd stage ecere... src/sys/EARArchive.ec:4:18: 致命错误: zlib.h:没有那个文件或目录 编译中断。

问题开始了

一、 致命错误: zlib.h:没有那个文件或目录

    执行  sudo apt-get install zlib1g-dev

二 、 致命错误: jpeglib.h:没有那个文件或目录    执行  sudo apt-get install libjpeg-dev

三、 致命错误: png.h:没有那个文件或目录

执行  sudo apt-get install libpng

四、 curses.h:没有那个文件或目录

sudo apt-get  install libncurses5-dev

五、 致命错误: ft2build.h:没有那个文件或目录

sudo apt-get install libxft2-dev

六 致命错误: GL/glx.h:没有那个文件或目录 和   致命错误: X11/extensions/shape.h:没有那个文件或目录

sudo apt-get install libgl1-mesa-dev

七、如果报ln 错误, 那是因为你使用的文件系统 是 windows的而不是linux 的, 因为windows的文件系统不支持ln ,注意, 你可能是通过虚拟机共享或者挂载之类的使用的windows 的文件系统。 解决问题的方法是把他 mv 到 linux 的文件系统里。

八、致命错误: sqlite3.h:没有那个文件或目录

 

最后, 如果编译内容显示:

Bootstrapping eC compiling tools... Building ecere... Building ec... Building ecp... Building ecc... Building ecs... All done! Building dependencies... Building libungif... Building 2nd stage ecere... Building eAR command line tool... Building Vanilla Ecere... Building ear... Building self-extract tool... Building eAR command line tool... Building 2nd stage compiler Building 2nd stage libec... /home/klaus/ecere-sdk-36e91de/compiler/libec/obj/release.linux/ec.main.ec:605:1: warning: Redefinition of sourceFileStack (defining as char[10][MAX_LOCATION], already defined as char[MAX_INCLUDE_DEPTH][MAX_LOCATION]) Building 2nd stage ecp... Building 2nd stage ecc... Building 2nd stage ecs... Building eC Core Runtime... Enabling 2nd stage binaries... Building IDE... Building epj2make... Building Documentor... Building EDA... Building Ecere Data Access layer... Building EDASQLite driver... The Ecere SDK is fully built.

 

说明已经OK了

 

一、第一次编译并调整代码 二、修正泛型无法生成CodeDOM代码 后期我会用到这个工具, 如果有需要修改, 会及时修改和改进, 有兴趣的可以参与进来。 http://codedomassistant.codeplex.com/
Generating CodeDom Code By Parsing C# or VB 使用C#或者VB生成CodeDom代码

Introduction
I find writing CodeDom code kind of like writing assembly. It's like cutting the grass with a pair of scissors or unloading a truck load of sand with a spoon. Its long winded, it can be done, but it is tedious. However, there are advantages in using CodeDom.
Now, it would be nice if you could whip up a class in VB or C# and generate the CodeDom code. CodeDom Assistant does this with the help of SharpDevelop's NRefactory Library in conjunction with writing our own CodeDomProvider to generate C# CodeDom code. The code you get will construct a CodeDom compileunit, and it will definitely be ugly. But what can you expect from a machine?
Background
Code Generation can be done using various techniques. In essence, code generation saves time, and enables you to create code using established patterns.
In the world of .NET, one technique is to use CodeDom. It allows you create a document object model of the code. This can by either compiled into an assembly or used to generate code. Every .NET language should have an implementation of a CodeDomProvider to generate code. The problem is that CodeDom does not implement every syntax construct of every language. In essence, it is a subset, but there are enough operations to emulate most language constructs.
Parsing C# or VB is going to be the toughest part, but luckily one of SharpDevelop's little libraries is NRefactory. This has the machinerary required to parse C# or VB code. The key component for us is the CodeDomVisitor class. Sadly, it is only a partial implementation. They implement enough to run SharpDevelop's form generation. I am not saying I have completed the implementation, rather, I have filled most of the holes in the CodeDomVisitor.
The second part is implementing a CodeDomCodeProvider. This will take a CodeDom compile unit and generate C# code that will create a CodeDom compile unit.
License This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
About the old Version  Author
raygilbert http://www.codeproject.com/Articles/20597/CodeDom-Assistant http://www.codeplex.com/Download?ProjectName=codedomassistant&DownloadId=381289 http://download.codeplex.com/Download?ProjectName=codedomassistant&DownloadId=381290
About New Version Author MysticBoy http://www.mysticboy.cn

 

原文:

CodeDom Assistant CodeDom的强大工具, 有些BUG修正了下,发到CodePlex了 http://www.xjiter.com/forum.php?mod=viewthread&tid=86&fromuid=1

首先按住Alt,然后按一下F2,出来一个运行框,在里面输入 gnome-terminal即可运行。 要安装ssh则可以在命令行中输入 下面的内容 , sudo apt-get install openssh-server 结果如下:

klaus@ubuntu:~$ sudo apt-get install openssh-server [sudo] password for klaus: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树       正在读取状态信息... 完成       下列软件包是自动安装的并且现在不需要了:   kde-l10n-de language-pack-kde-de language-pack-kde-en language-pack-de-base   language-pack-kde-zh-hans language-pack-kde-en-base kde-l10n-engb   language-pack-kde-de-base kde-l10n-zhcn firefox-locale-de language-pack-de   language-pack-kde-zh-hans-base 使用'apt-get autoremove'来卸载它们 将会安装下列额外的软件包:   ssh-import-id 建议安装的软件包:   rssh molly-guard openssh-blacklist openssh-blacklist-extra monkeysphere 下列【新】软件包将被安装:   openssh-server ssh-import-id 升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 需要下载 348 kB 的软件包。 解压缩后会消耗掉 891 kB 的额外空间。 您希望继续执行吗?[Y/n]y 获取:1 http://us.archive.ubuntu.com/ubuntu/ precise/main openssh-server i386 1:5.9p1-5ubuntu1 [342 kB] 获取:2 http://us.archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1 [6,598 B] 下载 348 kB,耗时 3秒 (103 kB/s)    正在预设定软件包 ... Selecting previously unselected package openssh-server. (正在读取数据库 ... 系统当前共安装有 217832 个文件和目录。) 正在解压缩 openssh-server (从 .../openssh-server_1%3a5.9p1-5ubuntu1_i386.deb) ... Selecting previously unselected package ssh-import-id. 正在解压缩 ssh-import-id (从 .../ssh-import-id_2.10-0ubuntu1_all.deb) ... 正在处理用于 ureadahead 的触发器... 正在处理用于 ufw 的触发器... 正在处理用于 man-db 的触发器... 正在设置 openssh-server (1:5.9p1-5ubuntu1) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Creating SSH2 ECDSA key; this may take some time ... ssh start/running, process 17151 正在设置 ssh-import-id (2.10-0ubuntu1) ... klaus@ubuntu:~$

 

 

 

然后 使用 SecureCRT. 链接,结果如下:

 

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-25-generic-pae i686)

* Documentation:  https://help.ubuntu.com/

The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

klaus@ubuntu:~$

 

【上篇】
【下篇】

抱歉!评论已关闭.