首页 > 学技术 > 技术网文 > IRIX > 正文

[精华] qt编程问题


来源 chinaunix.net 酷勤网整理

这是我的环境变量设置:
_=/usr/sbin/xwsh
LANG=C
PATH=/usr/nekoware/qt/bin:/usr/nekoware/bin:/usr/nekoware/qt/bin:/usr/nekoware/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/etc:/usr/etc:/usr/bin/X11
NOMSGLABEL=1
XUSERFILESEARCHPATH=//.desktop-IRIS/%N://%N://.desktop-IRIS/0.0/%N
LOGNAME=root
MAIL=/usr/mail/root
CPLUS_INCLUDE_PATH=/usr/nekoware/qt/include:/usr/nekoware/qt/include
USER=root
MSGVERB=text:action
LASTLOGIN=Last login: Thu Sep 23 22:55:08 CST 2004 on :0
DISPLAY=:0.0
SHELL=/bin/csh
HOME=/
SGI_TZ_TAG=cn_cst
TERM=iris-ansi
LD_LIBRARY_PATH=/usr/nekoware/qt/lib:/usr/nekoware/qt/lib
QTDIR=/usr/nekoware/qt
QMAKESPEC=irix-g++
PWD=/usr/nekoware/qt/examples/hello
TZ=CST-8
WINEDITOR=/usr/sbin/nedit
NOMSGSEVERITY=1
LIBRARY_PATH=/usr/nekoware/qt/lib
WINDOWID=50331654
下面是我的编译截图








 En_route 回复于:2004-09-25 17:58:49

Please follow this link 

http://forums.nekochan.net/viewtopic.php?p=26360#26360

Briefly, the problem lies with the difference in the namespace used by g++ and sgi's CC. The current nekoware Qt and sgi freeware were compiled via sgi's CC. So the solution, as suggested by [color=blue]ShadeOfBlue[/color] and confirmed by [color=blue]Dexter1(who prepared the nekochan Qt tardist [/color], is to [color=orange]compile Qt using g++.[/color]

My apologies if my previous postings point you to the wrong direction.

Meanwile, you may wish to join the above nekochan forum thread on any other comments/problems you encountered.


 samcd 回复于:2004-09-26 17:05:55

thank u for ur help.
i'm appreciated for ur bringing forward my problem on that forum, and making some experiments.it must take ur much time:)
though i don' t know how to go on it, (maybe just wait tDexter1's succssful work)but i know the problem point where it is. u took me a further  step. i don't give up!
i have joined nekochan forum.


 En_route 回复于:2004-09-26 19:02:42

引用:原帖由 "samcd" 发表:

though i don' t know how to go on it, (maybe just wait ..........



I think dexter1 is suggesting me to compile our own Qt using g++ from source.

You have a faster machine at your disposal. Perhaps you can give it a try. Current Qt version is 3.3.3. And I'm compiling it since last night -- yet to be finished . My machine is a humble O2 180 MHz 256 MB RAM...

BTW, you may consider adding the multi-threaded option, libqt-mt







 En_route 回复于:2004-09-26 19:06:25

2. Start of configuration/compilation...







 En_route 回复于:2004-09-26 19:10:18

3. libqt-3.3.3 completed (took something like 6~7 hours -- see time-stamp of directories [color=orange]lib, bin etc.[/color] since configuration...)







 En_route 回复于:2004-09-26 19:13:36

4. And the designer, assistant etc. (another 7 hrs or so...)







 En_route 回复于:2004-09-26 19:30:51

5. And my O2 is still working hard on the misc. stuff...







 En_route 回复于:2004-09-26 21:20:15

6. Example project: hello world (screenshot of a wavy "Hello world")







 En_route 回复于:2004-09-26 21:22:05

7.  Example project: chart







 En_route 回复于:2004-09-26 21:24:28

8. Example project: i18n







 En_route 回复于:2004-09-26 21:51:13

9. Example project: drawdemo

Note that in the Winterm with a Navy-blue background color, example project [color=orange]table/bigtable[/color] is being compiled... Also note the parameters used for compilation under g++....







 En_route 回复于:2004-09-26 22:01:42

10. Enlarged view of the output of ./drawdemo







 En_route 回复于:2004-09-27 00:51:45

11. The last bit...







 samcd 回复于:2004-09-29 17:02:50

thanks  to En-route. 
i'm appreciated to give me so much details
i'm trying to do it following u , and will give ur my result as  soon as possible.




原文链接:http://bbs.chinaunix.net/viewthread.php?tid=413469
转载请注明作者名及原文出处



收藏本页到: