🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.unix.development
1 messages
1 total messages Started by SINOX Tue, 01 Aug 2006 01:49
kdevelop for C++��������
#14
Author: SINOX
Date: Tue, 01 Aug 2006 01:49
207 lines
12417 bytes
sinox����kdevelop for C++��������

�ϴ���д��vc���ʺϿ��������ƪ����,���ᵽkdevelop�����������.��ô���������
���Ƿ��vc�Ƚ���?�����㽫�ҵ���.�㽫������sinox���濪���������ô�򵥷���!
��ʹ�㲻����c++����,��ҲҪ��kdevelop!kdevelop��sinox�����׼���ӻ���������!

���DZ�վΪsinox�û���Ƶ�kdevelopѧϰ�̳�,ּ�ڰ���sinox�û�Ѹ������kdevelop
��������,���ǹ����������kdevelop�������Ž̳�.

kdevelop for C++��һ�����ӻ���������,��C++Builder,Delphi����.

����kdevelop��IDE for c/c++.kdevelop�汾��3.2.2(ʹ��kde3.4.2)

1.��������
ѡ�񹤳̲˵����½�����
ѡ��c++/Kde/Appliation Framework,����Ӧ�ó�����ƺ�����·��.Ȼ��nextֱ�����
,ѡ���Լ������Ҫ����.

2.����ִ��
���ڿ���ִ�б���˵���ִ�г���,�����automake���ó���,Ȼ�����ִ��.
����ʱ��������´���!
UNAME_VERSION = Sinox 1.2-RELEASE #0: Mon Jan 9 01:22:17 UTC 2006
root@sinox.shouji88.com:/usr/obj/usr/src/sys/GENERIC
configure: error: cannot guess build type; you must specify one�޷��²����
����ϵͳ����,��ָ��һ��!
*** �˳�״̬��1 ***
������Ϊ���kdevelop����freebsd�±��뿪����,automake���freebsd���ñ���ѡ��.
��sinox��û���Լ��ı���ѡ��!���Ա������!
�����滻������configure��admin/config.guess�����ļ�freebsd��ִ�Сд�滻
,configure��freebsd,config.guess��FreeBSD�滻.
�������ļ���ͨ�õ�,�´θ��Ƶ��µ���Ŀ����!��Ҫ��sinox��������Դ���Ҳ����
Ҫ������.
���������simple KDE Application��simple Designed Based KDE Application��
��ͨ��.Appliation Frameworkûͨ��.
Դ������src,������po.ͨ��̲˵�������ӷ���,��poĿ¼�����һ��
zh_CN.GB2312.po,˫����Kbabel��.���ڷ����Ժ��ٲ���.���뺯����i18N.
Դ������main.cppΪ������,��main����.

3.��ӽ���
�Ҵ�simple Designed Based KDE Application����һ����Ŀ.���ļ��˵��½�����һ��
�ļ�,������ui(user interface�û�����),cpp,h.
��ѡ��Dialog wid buttons(Bottom)ui,����form1,��src���һ��form1.ui�ļ�,˫��
��,����һ���?����.
�޸ı?����,������һ��pushButton,��˫������clicked�¼�.
����Ҫ������?���洴��һ����.�Ӷ�ʵ�ֱ��.
ѡ��form1.ui,�Ҽ�˵�ִ��create or select implementation,���ֽ�������.�Ҵ���
���� form1,Ȼ�����form1.h��form1.cpp�����ļ�.
signal��slot, signal�Ƿ����¼�,slot�ǽ��մ����¼�. connect�ǰ��¼������,��
slot����.������connects�������¼�, slots���¼������״̬.
Widget�Ǵ��ڻ���.
ui�Ľ���ؼ�����,���԰���Ѹ�ٿ����������.ui���һ��xml�ļ��ļ�.
��ݿ⿪����ο��ĵ�Creating Dadabase Application,������ݸ�֪�ؼ�,���Ҳ��
����.
ui�༭���Դ�����ݿ�����,����->database connections.����ᴴ����ݿ�����,��
����ֱ����.�������ܷ�������ݿ�.
��û�п������õ������,������Ҫ��װ.����������ӳ���driver is not loaded��
��.mysql��QMYSQL3�����,Ĭ�϶˿�3306

4.�¼����
���ڼ��밴ťpushButton.ѡ�м���İ�ť,ѡ�����Կ�� signal handler�¼�,˫��
clicked����һ��pushButton2_clicked�¼�!˫��clicked�¼���������ߵĹ���ͼ��
(��ʱ���޷���������,ֻ��˫��clicked),���������.����.h,.cpp�Զ������¼���
��!���������delphi��.
��������,��ť��ôû�г���?ѡ��form1.ui,�Ҽ�˵�ִ��create or select
implementation,ѡ��ʹ�����е�����,ȷ��.����ĸ�����Ҫ���¸��µ�����!�������
����Ҫ������.���?��,���±�������.
��������Ȱѽ�����ƺ�,��д����.

5.ʹ�ÿؼ�����
UI�пؼ�����һ������,����textLabel2,���ǿ������¼���ֱ�Ӹ���ֵ
textLabel2->setText( "pushbutton2" );
����������.h,.cpp�ļ���û�п�����Ķ���,��ô������?�ڱ�����ɵ�.moc�ļ�����
�����¼��Ķ���ʹ���,���ǻ���û�п����ؼ���������.
�������ڹ��캯����.
button = new QPushButton( this, "button" );
button->setGeometry( QRect( 11, 124, 198, 27 ) );

6.�ϵ����
�ϵ����ú�Ϳ��Ե���ִ��,����ִ��,��gdb����,���Է����,��ջ���,������C++��
����������.

7.�ؼ���ͷǿ��ӻ���
��Щ��ʹ�÷�����Ҫ�ο�����ѧϰ,kdevelop�ɲ������ܸ�֪��,������ʾ���ַ�������
,���Ի���Ҫ�µ㹤����Ϥqt��.
����Ƿǿ��ӻ�����,������c++��������,ʹ�� C++���,û���κ�������.qt����ǰ��
�и�Q��ĸ.

8.�ĵ�����
�ұ߷�ҳ�ĵ����Բ鿴�������԰���,������Ӣ�ĵ�.�Ķ���������Ӵ���.������
��.

9.�ܽ�
kedevelop for C++����һ��c++builder�Ŀ��ӻ���������,��vc�߼�( VC��ID��ǿؼ�
,�dz�����),���濪��������.����gcc����.
��Ȼkedevelop�������ܹ���ΪC++��������,���Ǹ��ּ�������ԵĿ�������
,php,java,perl�ȵ�.
�����������,�� sinox���濪�������������!���Ը�windows����!
��վд�ĵ�һƪ���Ž̳�,ֻ����ש����,ϣ�����Ժ�д����õĽ̳�����.
��Ȼ��ϣ�������ܱ�д�ͳ����й�kdevelop�鼮,�ǽ�����sinox���������Ѹ�ٷ�չ.

�������о��ʼ�.
���ںܶ࿪Դ����������ڲ�ͬ��unix/linux�ϱ���,����Բ�ͬ����ϵͳ�������ļ�
���û��sinox���þͻ��޷�����.����ʱ��������ô����?�����ַ���,һ��������
sinox����ϵͳ�ı���ѡ��,��һ�ֵ��޸�freebsd�ı���ѡ��Ϊsinox.
�����޸ĵ��ļ���configure��admin/config.guess�������ļ�!���������ļ��а�����
���ݸ�Ϊsinox!
������Щ
*:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
��Ϊ
*:Sinox:*:*|*:GNU/FreeBSD:*:*)

�Լ�
freebsd*)
��Ϊ
sinox*)

��סֻ��һ��ǰ��*)ǰ���freebsd�Ķ�,����IJ�Ҫ�Ķ�(������,��������ô��?����
freebsd-elf*))
��������ͨ�����ɹ���!

./configure
checking build system type... admin/config.guess: unable to guess system
type

This script, last modified 2003-07-02, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (admin/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to in order to provide the needed
information to handle your system.

config.guess timestamp = 2003-07-02

uname -m = i386
uname -r = 1.2-RELEASE
uname -s = Sinox
uname -v = Sinox 1.2-RELEASE #0: Mon Jan 9 01:22:17 UTC 2006
root@sinox.shouji88.com:/usr/obj/usr/src/sys/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = i386
UNAME_RELEASE = 1.2-RELEASE
UNAME_SYSTEM = Sinox
UNAME_VERSION = Sinox 1.2-RELEASE #0: Mon Jan 9 01:22:17 UTC 2006
root@sinox.shouji88.com:/usr/obj/usr/src/sys/GENERIC
configure: error: cannot guess build type; you must specify one
sinox# ./configure
checking build system type... admin/config.guess: unable to guess system
type

This script, last modified 2003-07-02, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (admin/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to in order to provide the needed
information to handle your system.

config.guess timestamp = 2003-07-02

uname -m = i386
uname -r = 1.2-RELEASE
uname -s = Sinox
uname -v = Sinox 1.2-RELEASE #0: Mon Jan 9 01:22:17 UTC 2006
root@sinox.shouji88.com:/usr/obj/usr/src/sys/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = i386
UNAME_RELEASE = 1.2-RELEASE
UNAME_SYSTEM = Sinox
UNAME_VERSION = Sinox 1.2-RELEASE #0: Mon Jan 9 01:22:17 UTC 2006
root@sinox.shouji88.com:/usr/obj/usr/src/sys/GENERIC
configure: error: cannot guess build type; you must specify one
sinox# ./configure �޸��Ժ�
checking build system type... i386-unknown-freebsd1.2
checking host system type... i386-unknown-freebsd1.2
checking target system type... i386-unknown-freebsd1.2
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes


Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=832541
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads