Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xchm安装总结
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
kaytoo
n00b
n00b


Joined: 09 Dec 2006
Posts: 22

PostPosted: Sun Dec 31, 2006 1:54 am    Post subject: Xchm安装总结 Reply with quote

这么简单的东东,还是让我碰到问题了。。。。- -;
google了N天都没有找出我这症状的.不过还好,经过高人的指点,终于解决了,拿出来和大家分享下
Code:

Compiling source in /var/tmp/portage/xchm-1.2/work/xchm-1.2 ...
!!! set-wxconfig: Error:  Can't find normal or debug version:
 !!! set-wxconfig:         /usr/lib/wx/config/gtk2-unicode-release-2.6 not found
!!! set-wxconfig:         /usr/lib/wx/config/gtk2-unicode-debug-2.6 not found
!!! You need to emerge wxGTK with unicode in your USE


开始看到提示,我以为是缺少了wxGTK参数,结果并不是这样,添加了根本不管用.
可以用
emerge wxGTK -vp
现看看他的USE参数,然后在做emerge --newuse xchm我的是加了X参数后,就可以安装了.[/code]
Back to top
View user's profile Send private message
akar
Moderator
Moderator


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Tue Jan 02, 2007 3:49 am    Post subject: Reply with quote

  謝謝分享囉。


  其實真正讓你碰問題的應該是 unicode 這個參數,就是配置 wxWidgets 是否支持 unicode 處理。

Quote:
[ebuild R ] x11-libs/wxGTK-2.6.2-r1 USE="X gnome opengl sdl -debug -doc -joystick -odbc -unicode*" 0 kB


  因為這次 wxWidget 是用 GTK+ 來實現的(所以才叫 wxGTK),而 GTK+ 庫是全面實現 unicode 支持,所以 wxGTK 包的 USE 當有 "X" 時,會自動添加 unicode 的支持。


  (昨天剛弄好 madedit.sf.net 的 ebuild ,所以對 wxGTK 做了一番研究)


  對了,如果你的電腦是當桌面系統用的話,那把 USE="X" 加到 /etc/make.conf ,會方便好多。 但如果有些包又不想要 X 的支持,就在 /etc/portage/package.use 添加一句,例如:

/etc/portage/package.use wrote:
net-dialup/rp-pppoe -X



  注:不過奇怪,你之前的 wxGTK 是什麼版本?因為目前的 wxGTK-2.6.2-r1 是強制支持 unicode 的:
/usr/portage/x11-libs/wxGTK/wxGTK-2.6.2-r1.ebuild wrote:

use X && configure_build gtk2 unicode "${myconf} --with-gtk=2"
use X || configure_build base unicode "--disable-gui"

_________________
AKar
Back to top
View user's profile Send private message
kaytoo
n00b
n00b


Joined: 09 Dec 2006
Posts: 22

PostPosted: Mon Jan 08, 2007 5:11 pm    Post subject: Reply with quote

不知道是不是说的这里
Code:

src_compile() {
        myconf="${myconf}
                --with-png
                --with-jpeg
                --with-tiff
                $(use_enable opengl)
                $(use_with opengl)
                $(use_with gnome gnomeprint)
                $(use_with sdl)
                $(use_enable joystick)"

        use X && configure_build gtk2 unicode "${myconf} --with-gtk=2"
        use X || configure_build base unicode "--disable-gui"
}

如果是unicode参数的话,为什么之前在make.conf中加了unicode参数却不行呢?不大明白。。。
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum