ÔÚLinuxÉϽ»²æ±àÒëwindows³ÌÐò
ת×Ô:http://www.cublog.cn/u/12592/showart_163722.html
×î½ü¼¸Ìì¸ã wxWidgets£¬ÓÉÓÚҪͬʱ±àÒëÓ¦ÓóÌÐòµÄ Windows °æ±¾£¬ÓÖÀÁµÃÔÚÐéÄâ»úÀïÃæ±àÒë³ÌÐò£¬ÓÚÊÇÏëµ½Óý»²æ±àÒëµÄ·½Ê½ÔÚ Linux ÉϱàÒëºÃ Windows °æ±¾µÄ³ÌÐò£¬ÔÙÓà Wine »òÕßÐéÄâ»úÀ´Ö´ÐС£ÊÔÁËһϣ¬ÕâÖÖ·½·¨ºÜºÃÓ㬱ÈÔÚÐéÄâ»úÀïÃæ±àÒë³ÌÐò¿ìºÜ¶à¡£
ÎҵIJÙ×÷ϵͳÊÇ debian sarge£¬ÆäÖÐÒѾÓÐ mingw32 ±àÒëÆ÷£¬Ö»Ðè°²×°£º
apt-get install mingw32Õâ»á°²×°ºÃ mingw32 ½»²æ±àÒëϵͳ£¬Óà i586-mingw32msvc-gcc ¼´¿ÉΪ Windows ±àÒë³ÌÐò¡£
ÔÚ±àÒë wxWidgets µÄ Windows °æ±¾Ö®Ç°£¬ÐèÒª°²×° DirectX µÄÍ·Îļþ¡£´ó¸ÅÊÇÓÉÓÚ°æȨ֮ÀàµÄÔÒò£¬ÔÚ Debian µÄ mingw32 Öв¢Î´°üº¬ DirectX µÄÍ·Îļþ£¬Ö»°üº¬ÁË DirectX µÄ¿â£¬Òò´ËÐèÒª×Ô¼º°²×°¡£Èç¹û²»°²×°£¬ÔÚ±àÒë wxWidgets µÄʱºò»áÓо¯¸æ£¬²¢ÇÒϵͳ²»»á²úÉú wxDisplay Õâ¸öÀà¡£°²×°²¢²»¸´ÔÓ£¬Ö»Òª´ÓÍøÂçÉÏÕÒµ½Ïà¹ØµÄÍ·ÎļþºÍ¿âÎļþ£¬²¢½âѹµ½ /usr/i586-mingw32msvc Ŀ¼Öм´¿É¡£
È»ºó¾Í¿ÉÒÔ±àÒë wxWidgets ÁË£¬ÏÂÔز¢½âѹԴÂëºó£¬ÓÃÈçÏÂÃüÁî¿ÉÒÔ±àÒ룺
./configure --host=i586-mingw32msvc --target=i586-mingw32msvc --prefix=~/Workshop/mingw32 --enable-monolithic --disable-shared
make; make install-strip
make -C contrib; make -C contrib install-strip
±àÒëÍê³Éºó£¬½øÈë samples Ŀ¼£¬Ëæ±ãÕÒÒ»¸öÀý³Ì make һϣ¬±ã¿É²úÉú exe ÎļþÁË¡£ÒªÖ´ÐÐÕâ¸öÎļþ£¬ÐèÒª mingwm10.dll Õâ¸öÎļþ£¬ÔÚ Debian ÖУ¬´ËÎļþλÓÚ /usr/share/doc/mingw32-runtime Ŀ¼ÖУ¬°ÑËü¸´ÖƵ½µ±Ç°Ä¿Â¼£¬±ã¿ÉÓà wine Ö´ÐÐÁË¡£Èç¹ûûÓÐÎÊÌ⣬Ҳ¿ÉÒÔ°ÑÕâ¸öÎļþÈÔµ½ Wine µÄ C:\Windows\system32 Ŀ¼ÖС£
ÏÂͼÊÇÔÚ Wine ÖÐÖ´ÐгÌÐòµÄЧ¹û£º
ÏÂͼÊÇÔÚ win4lin ÖÐÖ´ÐгÌÐòµÄЧ¹û£º
Ïà¹ØÎĵµ£º
LinuxÄÚºË2.4°æÖÐÈ¥µôÁËÀÏ°æ±¾ÄÚºËÖеľ²Ì¬¶¨Ê±Æ÷»úÖÆ£¬¶øÖ»Áô϶¯Ì¬¶¨Ê±Æ÷¡£ÏàÓ¦µØÔÚtimer_bh()º¯ÊýÖÐÒ²²»ÔÙͨ¹ýrun_old_timers()º¯ÊýÀ´ÔËÐÐÀÏʽµÄ¾²Ì¬¶¨Ê±Æ÷¡£¶¯Ì¬¶¨Ê±Æ÷Ó뾲̬¶¨Ê±Æ÷Õâ¶þ¸ö¸ÅÄîÊÇÏà¶ÔÓÚLinuxÄں˶¨Ê±Æ÷»úÖƵĿÉÀ©Õ¹¹¦ÄܶøÑԵģ¬¶¯Ì¬¶¨Ê±Æ÷ÊÇÖ¸Äں˵Ķ¨Ê±Æ÷¶ÓÁÐÊÇ¿ÉÒÔ¶¯Ì¬±ä»¯µÄ£¬È»¶ø¾Í¶¨Ê±Æ÷±¾Éí¶ ......
Òýµ¼£º
ÈçÐè»ñµÃ¶Ô vmlinux ºÍ zimage Ö®¼äÇø±ðµÄ¼«ºÃ½âÊÍ£¬ÇëÔÚ Alessandro Rubini ±àдµÄ“Kernel Configuration: dealing with the unexpected£¨Linux Magazine£©µÄÒ»ÎÄÖÐÕÒµ½“Booting your kernel”Ò»½Ú¡£
ÓйØÄںˡ¢Ó³ÏñºÍÒýµ¼¹ý³ÌµÄ¸ü¶àÐÅÏ¢£¬ÇëÔĶÁÖÐÑëÀ¥Ê¿À¼´óѧ£¨Central Queensland Universit ......
ÓÐʱºòÔÚ³ÌÐòÀïÃæÐèÒª´ò¿ª¶à¸öÎļþ£¬½øÐзÖÎö£¬ÏµÍ³Ò»°ãĬÈÏÊýÁ¿ÊÇ1024£¬£¨ÓÃulimit -a¿ÉÒÔ¿´µ½£©¶ÔÓÚÕý³£Ê¹ÓÃÊǹ»ÁË£¬µ«ÊǶÔÓÚ³ÌÐòÀ´½²£¬¾ÍÌ«ÉÙÁË¡£
Ð޸İ취£º
ÖØÆô¾ÍOK
ÐÞ¸Ä2¸öÎļþ¡£
1./etc/security/limits.conf
vi /etc/security/limits.conf
¼ÓÉÏ£º
* soft nofile 8192
* hard nofile 20480
2./etc/pam.d/l ......
ÆäʵÊǸöÂù¼òµ¥µÄÎÊÌâ¡£ÔÚLDD3µÄµÚ15ÕÂÉÏÓÐд£¨¼û“Remapping Specific I/O Regions”ÕâÒ»½Ú£©¡£²»¹ýµ±Ê±×÷ÕßÑ¡ÔñÁËÒ»¸ö´íÎóµÄ×ö·¨£ºÏÈ°ÑÕâ¿éIO¿Õ¼äÓÃioremapÓ³Éäµ½ÁËÄں˿ռ䣬ȻºóÔÚÓû§½ø³Ì·ÃÎʱ»Ó³ÉäµÄµØÖ·Ëù²ú ÉúµÄȱҳÖжÏÀÓÃvmalloc_to_pageµÃµ½page£¬·µ»Ø¸øÓû§½ø³Ì¡£
È»¶ø£¬vmalloc_to_pageû·¨Óà ......