Is cygwin support linux header file??
On 05/02/2010 04:31, Larry Hall (Cygwin) wrote:
> On 02/04/2010 08:36 PM, phil song wrote:
>> Hi,cygwin,
>> when I compile some project in cygwin,It prompts
>>
>> /cygdrive/g/work_platform/open-s/ftk-0.2/src/os/linux/ftk_linux.h:43:22:
>> linux/fb.h: No such file or
>> directory
>> /cygdrive/g/work_platform/open-s/ftk-0.2/src/os/linux/ftk_linux.h:44:22:
>> linux/kd.h: No such file or
>> directory
>> /cygdrive/g/work_platform/open-s/ftk-0.2/src/os/linux/ftk_linux.h:45:25:
>> linux/input.h: No such file
>> or directory
>>
>>
>> who can tell me how to operate to let fb.h in cygwin enviroment?
>
> You can't. You're compiling code built to depend of Linux-specific
> features. If you want to build it on another platform, you're going
> to need to figure out what it's doing on Linux and figure out how
> to accomplish that on the target platform. Some would call this
> non-portable code. And they'd be right.
It does support "Windows", though:
http://code.google.com/p/ftk/
Phil, you could probably try building a MinGW version by adding
CC="gcc-3 -mno-cygwin" CXX="gcc-3 -mno-cygwin"
to the configure line, but how well it would interoperate with cygwin apps is
not guaranteed.
cheers,
DaveK
True but that's not what the OP was trying to build. ftk also supports
VS2008 express edition. But that's also off-topic for this list.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
Ïà¹ØÎĵµ£º
/*
* buffer.c ³ÌÐòÓÃÓÚ¶Ô¸ßËÙ»º³åÇø(³Ø)½øÐвÙ×÷ºÍ¹ÜÀí¡£¸ßËÙ»º³å
* ÇøλÓÚÄں˴úÂëºÍÖ÷ÄÚ´æÇøÖ®¼ä¡£
*
* |---|---|------------------|---------------------|-------------------|
* | | | * * * | &nbs ......
ÔÚ/etc/rc.d/init.d/ ´´½¨oracle10gÎļþ
touch oracle10g
chmod a+x oracle10g
[root@test~]# vi /etc/rc.d/init.d/oracle10g
#!/bin/bash
#chkconfig:345 51 49
#description:starts the oracle database deamons
#
ORACLE_HOME=/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle
case "$1" in
start)
echo ......
/*
* ¸ÃÎļþÖеÄÁ½¸öº¯Êýread_pipeºÍwrite_pipeÊÇÉϲ㺯Êý
* readºÍwriteµÄµ×²ãʵÏÖ
*/
/*
* linux/fs/pipe.c
*
* (C) 1991 Linus Torvalds
*/
#include <signal.h>
#include <linux/sched.h>
// ÄÚ´æ¹ÜÀíÍ·Îļþ¡£º¬ÓÐÒ³Ãæ´óС¶¨Òåº ......
LinuxÏÂÅäÖþ²Ì¬IPµØÖ·£¬ÉèÖÃDNSºÍÖ÷»úÃû
ÅäÖÃÎļþλÓÚ£º
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.3
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ʹIPµØÖ·ÉúЧ£º
/sbin/ifdown eth0
/sbin/ifup eth0
ÅäÖÃdns½âÎö
echo "nameserver 211.98.1.28" ......
Ò»¡¢°²×°JDK
°²×°°üÃûΪ£ºjdk-1_5_0_18-linux-i586.rpm.bin
°²×°²½Ö裺
1. ÒÔrootÉí·ÝµÇ¼Linux²Ù×÷ϵͳ
2. ½«jdk-1_5_0_18-linux-i586.rpm.bin°²×°°üÉÏ´«µ½/tmpĿ¼ÏÂ, ¼ì²âÈ·±£jdk-1_5_0_18-linux-i586.rpm.binÓпÉÖ´ÐÐȨÏÞ£»
Èç¹ûjdk-1_5_0_18-linux-i586.rpm.binûÓпÉÖ´ÐÐȨÏÞ£¬¿ÉʹÓÃÒ»ÏÂÃüÁîÌí¼Ó
#c ......