Linux ϱàÒë²¢°²×°ÅäÖà Qt È«¹ý³Ì
Linux ϱàÒë²¢°²×°ÅäÖà Qt È«¹ý³Ì
×î½ü×¼±¸×ö Nokia µÄ Symbian,Maemo Ï´¥ÃþÆÁ¿ª·¢¡£¿¼Âǵ½³ÌÐòµÄ¿çƽ̨¿ÉÒÆÖ²ÐÔ£¬×îÖÕÑ¡ÔñʹÓà Qt ¿ª·¢¡£Ïà¶ÔÀ´Ëµ£¬¹úÄÚ¹ØÓÚ Qt Ïà¹ØÎĵµ²¢²»ËãºÜ¶à¡£×÷Õß½« Linux ϱàÒë²¢°²×°ÅäÖà Qt È«¹ý³Ì×ܽáÁËһϣ¬Ö»Ï£Íû¿ÉÒÔ·½±ã¸ü¶àµÄÅóÓÑ£¡
1¡£»ñµÃÔ´´úÂë
src ¹ÙÍøÏÂÔصØÖ·£ºftp://ftp.qt.nokia.com/qt/source/
2009 Äê 10 Ô 1 ÈÕ·¢²¼µÄ qt-x11-opensource-src-4.5.3.tar.gz£¬´óС 122 Mb¡£
2¡£½âѹËõ
tar xvfz qt-x11-opensource-src-4.5.3.tar.gz
3¡£Éú³É makefile Îļþ
./configure
Õâ¸öʱºòËû»áÎÊÄ㣺“Which edition of Qt do you want to use?”
È»ºó¸øÄãÁ½¸öÀàÐ͹©Ñ¡Ôñ£º
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
µÚÒ»¸öÊÇÉÌÒµ°æ£¬µÚ¶þ¸öÊÇ×ÔÓÉ°æ¡£
Ñ¡Ôñ 'o'£¨Qt/ǶÈëʽ×ÔÓÉ°æÊÇQtΪÁË¿ª·¢×ÔÓÉÈí¼þÌṩµÄǶÈëʽ°æ±¾£©¡£
Õâʱºò£¬³öÏÖÐí¿É½çÃæ¡£
Ñ¡Ôñ 'yes' ½ÓÊÜÐí¿ÉÐÒé¡£
¿ªÊ¼Éú³É makefile Îļþ¡£Õâ¸ö´óÔ¼ÐèÒª 5 -10 ·ÖÖÓµÄʱ¼ä¡£
4¡£Qt ±àÒë
gmake
Õâ¸ö¹ý³Ìʱ¼ä±È½Ï³¤£¬ÐèÒªÁ½¸öСʱ×óÓÒ¡£
5¡£Qt °²×°
ÔËÐÐ gmake install
ĬÈÏ°²×°ÖÁ
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
mountÊÇÓÃÀ´¹ÒÔØÎļþϵͳµÄ£¬¿ÉÒÔÔÚÆô¶¯µÄʱºò¹ÒÔØÒ²¿ÉÒÔÔÚÆô¶¯ºó¹ÒÔØ¡£ÔÚÆô¶¯ºó¹ÒÔØ¿ÉÒÔʹÓÃmountÃüÁîʵÏÖ£¬ÒªÊµÏÖÆô¶¯Ê±×Ô¶¯¹ÒÔØÉ豸ÔòÐèÆô¶¯autofs·þÎñ¾ÍÌṩÕâÖÖ¹¦ÄÜ¡£¸Ã¹¦ÄܾÍÏñwindowsÖеĹâÇý×Ô¶¯´ò¿ª¹¦ÄÜ£¬Äܹ»¼°Ê±¹ÒÔض¯Ì¬¼ÓÔصÄÎļþϵͳ¡£ÃâÈ¥ÎÒÃÇÊÖ¶¯¹ÒÔÚÂé·³¡£ÒªÊµÏÖ¹âÇý£¬ÈíÅ̵ȵĶ¯Ì¬×Ô¶¯¹ÒÔØ£¬ÐèÒª½øÐÐÏà¹Øµ ......
1. ²é¿´Äں˰汾ÃüÁ
¡¡¡¡1) [root@q1test01 ~]# cat /proc/version
¡¡¡¡ Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005
¡¡¡¡2) [root@q1test01 ~]# uname -a
¡¡¡¡Linux q1test0 ......
ת×Ô£º http://www.diybl.com/course/6_system/linux/Linuxxl/20081124/152557.html
ºÃºÃѧϰ£¬ÌìÌìÏòÉÏ
ÒýÑÔ
¡¡¡¡ Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬ solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù ......
/*
Name: SndKit.c
Copyright: GPLv2
Author: rockins(ybc2084@163.com)
Date: 15-10-06 18:22
Description: implent raw sound record/play
run: ./SndKit [-h] [-d device] [-c channel] [-b bits] [-f hz] [-l len] <-r|-p file>
e.g.:
./SndKit ......