蘋果升級 X11!

Mac OS X 平台上程式設計的相關問題討論

版主: bryanchangdigdog謝孟叡

內容
發表人
pmg4lktan
留言五百如一日
文章: 800
註冊時間: 12/17/2001 1:01 am
來自: 大馬
聯繫:

蘋果升級 X11!

#1 文章 pmg4lktan »

圖檔

今天,蘋果貼上了 0.2 版本的 X11 for Mac OS X public beta 供 X11-based 程式與 Mac OS X 的 native 程式使到 X11 為基礎的程式轉移至 Mac 的工作更為簡易。新版本也包括一些改進及修補,所有資料可在此獲得。
Best regards from,
pmg4lktan
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

Re: 蘋果升級 X11!

#2 文章 謝孟叡 »

pmg4lktan 寫:圖檔

今天,蘋果貼上了 0.2 版本的
根據點二被踏版的資料 XCIN 可能有希望....
void
sched_init(void){
printf("standard timeslicing quantum is %d us\n", std_quantum_us);
}
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

#3 文章 bryanchang »

From Macminute:

"...Apple also released version 0.2.1 of its X11 for Mac OS X public beta, which allows X11-based applications to run side-by-side with native Mac OS X applications and makes it easier to port X11-based applications to the Mac. According to Apple, the installer now defaults to replacing /etc/X11, to use quartz-wm instead of twm. The update comes only a day after the 0.2 release."

http://www.apple.com/macosx/x11/download/
圖檔
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

#4 文章 謝孟叡 »

bryanchang 寫:From Macminute:

"...Apple also released version 0.2.1 of its X11 for Mac OS X public beta, which allows X11-based applications to run side-by-side with native Mac OS X applications and makes it easier to port X11-based applications to the Mac. According to Apple, the installer now defaults to replacing /etc/X11, to use quartz-wm instead of twm. The update comes only a day after the 0.2 release."

http://www.apple.com/macosx/x11/download/
and ... "Installer now defaults to replacing /etc/X11, to use quartz-wm instead of twm. This is the only change since v0.2." 反正我都改好了,這個 update 大概是白下載了。
void
sched_init(void){
printf("standard timeslicing quantum is %d us\n", std_quantum_us);
}
頭像
davidma
留言破百
文章: 165
註冊時間: 10/31/2002 1:01 am
來自: taipei
聯繫:

#5 文章 davidma »

X11是否為移轉程式
我想學如何使用,該從哪開始呢??????????
David Ma

HQ Apple Store
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

#6 文章 謝孟叡 »

davidma 寫:X11是否為移轉程式
我想學如何使用,該從哪開始呢??????????
雖然不是,但是可不可以定義一下你所謂的移轉程式是什麼意思好嗎?
void
sched_init(void){
printf("standard timeslicing quantum is %d us\n", std_quantum_us);
}
頭像
davidma
留言破百
文章: 165
註冊時間: 10/31/2002 1:01 am
來自: taipei
聯繫:

#7 文章 davidma »

那請告訴我X11是什麼用途的軟體 :?:
David Ma

HQ Apple Store
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

#8 文章 謝孟叡 »

davidma 寫:那請告訴我X11是什麼用途的軟體 :?:
我很好奇什麼是移轉程式嘛....

X11.app 是個 X window 的伺服器。而 X window 軟體使用 X window 的協定把圖形界面的畫面交由 X window 的伺服器來負責顯示。在很多 Unix 的系統中 X window 的角色有點像 MacOSX 中 Aqua 的畫圖功能。
void
sched_init(void){
printf("standard timeslicing quantum is %d us\n", std_quantum_us);
}
頭像
davidma
留言破百
文章: 165
註冊時間: 10/31/2002 1:01 am
來自: taipei
聯繫:

#9 文章 davidma »

喔.原來我弄錯了
我有下載.想使用它...但不知哪裡可學習...如此 :o
David Ma

HQ Apple Store
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

#10 文章 謝孟叡 »

davidma 寫:喔.原來我弄錯了
我有下載.想使用它...但不知哪裡可學習...如此 :o
市面上也有一些討論 X 視窗的書,您可以先從此開始,要不然這裡也有一些:

http://www.x.org
http://www.xfree86.org
void
sched_init(void){
printf("standard timeslicing quantum is %d us\n", std_quantum_us);
}
頭像
digdog
討論區管理員
文章: 1297
註冊時間: 05/02/2001 1:01 am
聯繫:

Re: 蘋果升級 X11!

#11 文章 digdog »

beta 3 is out.
外加 X11 SDK 一包。

Pseudocolor (8-bit) visual plane support
Option to quit X11 without presenting warning dialog
Command-Q keyboard shortcut to quit X11
Command-, to bring up preferences dialog
Keyboard mappings with dead keys fixed
Linking against libGL no longer results with multiple definitions of glGetColorTableEXT
Locked files left behind in /tmp no longer block non-admin users from starting X11
Windows can be resized by user to any size and not be limited by the Dock's height
Dragging remotely hosted windows no longer causes crash
Hardware accelerated scrolling in 16 bit mode now works
X Server no longer crashes if application tried to retrieve data back from the framebuffer using XGetImage
Bug fixes and other feature enhancements
頭像
luisehsu
留言破百
文章: 147
註冊時間: 07/04/2001 1:01 am
來自: Nowhere to Nowhere
聯繫:

Re: 蘋果升級 X11!

#12 文章 luisehsu »

digdog 寫: Option to quit X11 without presenting warning dialog
I still can't see this option inside the preference :shock:
Besides, it seems the default quartz-wm doesn't work for me, so i change to sawfish, which defined in .xinitrc file.
I don't know if that's the bug or my setup is incorrect.

Look forward to suggestion and thanks in advance.

Louis
Fortune favors the bold.
- Virgil (70 BC - 19 BC)
頭像
digdog
討論區管理員
文章: 1297
註冊時間: 05/02/2001 1:01 am
聯繫:

Re: 蘋果升級 X11!

#13 文章 digdog »

你要檢查你的 ~/.xinitrc,看看最後一行是不是:

代碼: 選擇全部

exec quartz-wm
如果是別的 wm,就把它 comment 掉吧。

/etc/x11/xinit/xinitrc 是蘋果的設定。
nian-shau shiu 寫: Besides, it seems the default quartz-wm doesn't work for me, so i change to sawfish, which defined in .xinitrc file.
給其他人參考:
X11 啟動時,會先看 ~/ 有沒有 .xinitrc,如果沒有,才會去讀 /etc/x11/xinit/xinitrc,所以有很多人會說沒法子用 quartz-wm,都是因為 ~/ 有 .xinitrc,而且裡面用的是其他的 wm。
頭像
luisehsu
留言破百
文章: 147
註冊時間: 07/04/2001 1:01 am
來自: Nowhere to Nowhere
聯繫:

Re: 蘋果升級 X11!

#14 文章 luisehsu »

digdog 寫:你要檢查你的 ~/.xinitrc,看看最後一行是不是:

代碼: 選擇全部

exec quartz-wm
如果是別的 wm,就把它 comment 掉吧。

/etc/x11/xinit/xinitrc 是蘋果的設定。
我是把原來的sawfish comment掉換上 quartz-wm
結果一執行X11時,只見xterm一閃而逝
直接從iTerm中執行xterm&
則馬上出現process done的message

不得已只好再回去用sawfish
雖然也很好看就是了 :lol:
Fortune favors the bold.
- Virgil (70 BC - 19 BC)
頭像
digdog
討論區管理員
文章: 1297
註冊時間: 05/02/2001 1:01 am
聯繫:

Re: 蘋果升級 X11!

#15 文章 digdog »

nian-shau shiu 寫: 我是把原來的sawfish comment掉換上 quartz-wm
結果一執行X11時,只見xterm一閃而逝
直接從iTerm中執行xterm&
則馬上出現process done的message
你有試過先把 .xinitrc 拿掉,用 /etc/x11/xinit/xinitrc 的啟動看看?

如果這樣沒問題,那就是你 .xinitrc 裡的其他設定在作怪了。
頭像
luisehsu
留言破百
文章: 147
註冊時間: 07/04/2001 1:01 am
來自: Nowhere to Nowhere
聯繫:

Re: 蘋果升級 X11!

#16 文章 luisehsu »

digdog 寫: 你有試過先把 .xinitrc 拿掉,用 /etc/x11/xinit/xinitrc 的啟動看看?

如果這樣沒問題,那就是你 .xinitrc 裡的其他設定在作怪了。
i copy xinitrc into my home directory and rename to .xinitrc
then try xterm &
the same phenomenon (xterm window just flashs away...)
however, for other x-app such as gvim or xeyes
they works fine

i doubt something wrong with my xterm setup
below is my xterm alias:

代碼: 選擇全部

xterm:   aliased to xterm -geometry 100x36 -bg black -fg gray -j -sb -rightbar -sl 1000 &
but i don't think it matters

thanks for any suggestion in advance :)
Fortune favors the bold.
- Virgil (70 BC - 19 BC)
頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

Re: 蘋果升級 X11!

#17 文章 謝孟叡 »

nian-shau shiu 寫: i copy xinitrc into my home directory and rename to .xinitrc
then try xterm &
the same phenomenon (xterm window just flashs away...)
however, for other x-app such as gvim or xeyes
they works fine

i doubt something wrong with my xterm setup
below is my xterm alias:

代碼: 選擇全部

xterm:   aliased to xterm -geometry 100x36 -bg black -fg gray -j -sb -rightbar -sl 1000 &
but i don't think it matters

thanks for any suggestion in advance :)
I don't know why and how you aliased xterm.
This is my way to launch xterm.
圖檔
void
sched_init(void){
printf("standard timeslicing quantum is %d us\n", std_quantum_us);
}
頭像
luisehsu
留言破百
文章: 147
註冊時間: 07/04/2001 1:01 am
來自: Nowhere to Nowhere
聯繫:

Re: 蘋果升級 X11!

#18 文章 luisehsu »

謝孟叡 寫: I don't know why and how you aliased xterm.
This is my way to launch xterm.
well
i just add the alias as above inside the .cshrc
besides, have tried the way you setup w/ and w/o my xterm configuration
the same result

thanks
Fortune favors the bold.
- Virgil (70 BC - 19 BC)
頭像
digdog
討論區管理員
文章: 1297
註冊時間: 05/02/2001 1:01 am
聯繫:

Re: 蘋果升級 X11!

#19 文章 digdog »

nian-shau shiu 寫: i copy xinitrc into my home directory and rename to .xinitrc
then try xterm &
the same phenomenon (xterm window just flashs away...)
幹嘛這麼麻煩還要打指令?這樣不就好了?

圖檔
nian-shau shiu 寫: i doubt something wrong with my xterm setup
below is my xterm alias:

代碼: 選擇全部

xterm:   aliased to xterm -geometry 100x36 -bg black -fg gray -j -sb -rightbar -sl 1000 &
but i don't think it matters
我照你這樣打也不會有問題說。除非你是在 Terminal.app 下這樣輸入,而且沒設 DISPLAY 變數,那就會發生 Can't Open Display 然後跳掉的問題。
頭像
luisehsu
留言破百
文章: 147
註冊時間: 07/04/2001 1:01 am
來自: Nowhere to Nowhere
聯繫:

Re: 蘋果升級 X11!

#20 文章 luisehsu »

digdog 寫: 我照你這樣打也不會有問題說。除非你是在 Terminal.app 下這樣輸入,而且沒設 DISPLAY 變數,那就會發生 Can't Open Display 然後跳掉的問題。
詭異的是沒有任何error message
just said process is done

更詭異的是如果我不信邪死命的type xterm &
咦!
居然xterm就出現了 :shock:
不過好歹也得try個五六次

請問有什麼其他的configuration file可以try and error?

謝謝
Fortune favors the bold.
- Virgil (70 BC - 19 BC)
回覆文章