littertiger 发表于 2005-3-1 09:46:15

楼主的第3步,我直接从2.6内核代码里提取if_tu.h做的,也过去了。
昨天甚是郁闷,玩了一天,ld那一步还没有完成。今天继续。。。

hlmpost 发表于 2005-3-8 18:46:49

今天开始在cygwin下安装,希望顺利

manniuyemanniu 发表于 2005-4-5 00:20:22

如果安装GTK在CYGWIN中?

gtk2-win32-2.2.1-3.tar.gz
gtkmm-win32-2.2.0-1.tar.gz
atk-1.2.0-1.tar.gz
pango-1.2.1-2.tar.gz
glib-2.2.1-2.tar.gz

manniuyemanniu 发表于 2005-4-5 00:25:49

gtk2-win32-2.2.1-3.tar.gz
gtkmm-win32-2.2.0-1.tar.gz
如何安装并配置到CYGWIN中呢?

sheltont 发表于 2005-4-6 22:53:18

何不把dummy nice 直接写到sky-ne2k.c?

用个条件编译
#ifdef COMPILE_IT_ON_CYGWIN

//#include <linux/if.h>
#include <net/if.h>
#include <linux/if_tun.h>
//#include <sys/types.h>
//#include <sys/stat.h>
//#include <fcntl.h>
#include <sys/ioctl.h>
#include <armdefs.h>
#include <clps7110.h>
#define extern
#include "skyeye-ne2k.h"
#undef extern

...

#else


//#include <linux/if.h>
//#include <net/if.h>
//#include <linux/if_tun.h>
//#include <sys/types.h>
//#include <sys/stat.h>
//#include <fcntl.h>

#include <sys/ioctl.h>
#include <armdefs.h>
#include <clps7110.h>

#define extern
#include "skyeye-ne2k.h"
#undef extern




//if you don't want to the debug info,just commit below two line
//#define DEBUG 1
//#define DEBUG_NETDATA 1
#undef DEBUG
#undef DEBUG_NETDATA
//#define DEBUG_NETDATA
#if DEBUG
#define DBG_PRINT(a...) fprintf(stderr, ##a)
#else
#define DBG_PRINT(a...)
#endif





unsigned long Pen_buffer;

void nic_init(void)
{
DBG_PRINT("nic_init\n");
}

int tapif_init(int index,unsigned char *macaddr, unsigned char *hostip)
{
DBG_PRINT("tapif_init\n");
}

void tapif_input(int tapif_fd, ARMul_State *state)
{
DBG_PRINT("tapif_input\n");
}

INT8U tapif_output(int tapif_fd, ARMul_State *state,INT8U startpage,INT16U packet_len)
{
DBG_PRINT("tapif_output\n");
}

INT8U nic_read(int nic_index, ARMul_State *state, INT8U offset)
{
DBG_PRINT("nic_read\n");
}

void nic_write(int nic_index, ARMul_State *state,INT8U offset, INT8U data) //offset should be 00-0f, 10 or 1f
{
DBG_PRINT("nic_write\n");
}

int vnetif_init(int index,unsigned char *macaddr, unsigned char *hostip)
{
DBG_PRINT("vnetif_init\n");
}

#end if

manniuyemanniu 发表于 2005-4-11 23:18:53

3.skyeye-ne2k.c不能编译,原因找不到linux/if_tun.h
注释skyeye-ne2k.c全部代码,创建skyeye_stub.c文件,修改 makefile 编译skyeye_stub.c.


怎么修改Makefile呢?

clock09 发表于 2005-4-13 05:31:01

:oops: 我又重新下载cygwin,所有的东东都选择了,结果下了一晚上到现在还没有下载完。基本的cygwin下skyeye就能安装上吗?
zhangzc能否把skyeye-cygwin的打包给我发一份,我的邮箱是[email protected]

paniven 发表于 2005-4-13 17:18:22

littertiger wrote:
gtk2-win32-2.2.1-3.tar.gz
gtkmm-win32-2.2.0-1.tar.gz
这两个包我怎么找不到呢?


在下面地址下载http://web.sfc.keio.ac.jp/~sakai/cygwin/

lbhli 发表于 2005-4-13 20:23:28

我在cygwin下直接解压缩gtkmm-win32-2.2.0-1.tar.gz这几个后,又在环境变量中添加了路径,能够运行gtk-demo之类的,但再编译skyeye怎么还是出现错误.
check for GTK - version >=1.1.3...no
***The gtk-config script installed by GTK could not be found
***If GTK was installed in PREFIX,make sure PREFIX/bin is in
***your path,or set the GTK_CONFIG enviroment variable to the
***full path to gtk-config.
configure:error:cannot find GTK:Is gtk-config in path?
configure:error:./configure failed for arm
configure in /1/skyeye/simfailed ,exiting.
这是什么原因?是GTK没安装好?
需要怎么安装gtk.谢谢.

paniven 发表于 2005-4-14 11:40:24

make: Entering directory `/skyeye/sim/arm'
gcc -c -DHAVE_CONFIG_H               -DDEFAULT_INLINE=0         -DMODET `pkg-c
onfig gtk+-2.0 --cflags`   -I. -I. -I../common -I./../common -I../../include -I.
/../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes -I../
../intl -I./../../intl -I../../include/gdb -g -O2 armsym.c
armsym.c:20: search.h: No such file or directory
make: *** Error 1
make: Leaving directory `/skyeye/sim/arm'
make: *** Error 2
make: Leaving directory `/skyeye/sim'
make: *** Error 2


如上:找不到search.h不知何故?
      在“armsym.c”中有
      #include <search.h>
         这行;
    是不是函数库没装好呢?

比雕 发表于 2005-4-16 09:13:04

manniuyemanniu,
gtk2-win32-2.2.1-3.tar.gz
gtkmm-win32-2.2.0-1.tar.gz
如何安装并配置到CYGWIN中呢?

这一步你解结了吗?告诉我
如果你现在已经成功将skyeye-0.8.5.1安装到cygwin中,请把你详细的安装步骤写给我,万分感谢
[email protected]

paniven 发表于 2005-4-17 16:27:37

manniuyemanniu,
gtk2-win32-2.2.1-3.tar.gz
gtkmm-win32-2.2.0-1.tar.gz
如何安装并配置到CYGWIN中呢?


好像在根目录下解压就行吧?

比雕 发表于 2005-4-18 10:31:33

paniven,
我按照楼主的方法安装,./configure 的时候出错
出错信息如下:
$ ./configure --target=arm-elf --prefix=/usr/local/ --without-gtk-prefix --with
out-gtk-exec-prefix --disable-gtktest
Configuring for a i686-pc-cygwin host.
Created "Makefile" in /home/Administrator/skyeye using "mh-frag"
chmod: changing permissions of `./config.new': Bad file descriptor
./config.status is unchanged
Configuring intl...
loading cache ../config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for ANSI C header files... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... no
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... no
   18 sh 7204 sync_with_child: child 7264(0x2E4) died before initializa
tion with status code 0x80
43496 sh 7204 sync_with_child: *** child state waiting for longjmp
./configure: fork: Resource temporarily unavailable
checking for malloc.h...      17 sh 5160 sync_with_child: child 7280(0x1D
C) died before initialization with status code 0x80
   1268 sh 5160 sync_with_child: *** child state waiting for longjmp
./configure: fork: Resource temporarily unavailable
41416 sh 5160 sync_with_child: child 7260(0x1E4) died before initializa
tion with status code 0x80
42658 sh 5160 sync_with_child: *** child state waiting for longjmp
./configure: fork: Resource temporarily unavailable
Configure in /home/Administrator/skyeye/intl failed, exiting.

比雕 发表于 2005-4-18 10:33:24

能帮我解结这个问题吗?
我装skyeye-0.1.1.src.tar.bz2时,congfigure时也出现这种错误,不知时怎么回事?

clock09 发表于 2005-4-19 01:08:21

我也是比雕出现的问题,有人谁知道是怎么回事??
我想是不是交叉编译器没有安装好的缘故??
页: 1 [2] 3
查看完整版本: SkyEye0.8.5.1成功移植到cygwin下