Leon0824 / rimeime

Automatically exported from code.google.com/p/rimeime
0 stars 0 forks source link

有人利用 MacPorts 順利編譯過「鼠鬚管」麼? #656

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
我平時用 MacPorts 的,Homebrew 和它不和,又沒有别的 Mac�
��可以用。

在以下一歩中發生錯誤,無法找到 kyoto-cabinet。

cd librime
git submodule update --init
make -f Makefile.xcode thirdparty

錯誤提示:
http://code.bulix.org/jpwr2p-87107

Original issue reported on code.google.com by JakWi...@gmail.com on 30 Sep 2014 at 12:52

GoogleCodeExporter commented 9 years ago
奇怪,到相應目錄手動 make 一次就成功了。不過未及細看�
��體原因。

Original comment by JakWi...@gmail.com on 30 Sep 2014 at 2:34

GoogleCodeExporter commented 9 years ago
Squirrel.app 亦編譯成功。順便附上編譯全過程:

1. sudo port install boost
2. cd squirrel && git submodule update --init
3. cd librime && git submodule update --init
4. 這歩參考 Makefile.xcode 及 Makefile.thirdparty:make -f 
Makefile.thirdparty CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++" 
LDFLAGS="-stdlib=libc++" kyotocabinet
5. 
由於 kyotocabinet 編譯出了剛纔提交的錯誤,重複第 4 歩�
��定。估計是編譯順序出了點問題。
6. make -f Makefile.xcode
7. cd .. && make && sudo make install

Original comment by JakWi...@gmail.com on 30 Sep 2014 at 2:44

GoogleCodeExporter commented 9 years ago
我記得發現過這個問題,首次編譯卡在 kyotocabinet 
那裏,再次就成功了。
印象裏我已經修復了編譯腳本(?)這我得覈實一下。

Original comment by chen....@gmail.com on 31 Oct 2014 at 2:56

GoogleCodeExporter commented 9 years ago
我上次的編譯過程似乎有點沒提上:我曾經親自到 kyotocabine
t 的目錄 configure 並 make。

這次在 Yosemite 上也要做到這點纔能在笫 4 歩直接 make 
-f Makefile.thirdparty 完事。

Original comment by JakWi...@gmail.com on 18 Nov 2014 at 2:20

GoogleCodeExporter commented 9 years ago
@JakWings which commit?

Original comment by chen....@gmail.com on 19 Nov 2014 at 6:12

GoogleCodeExporter commented 9 years ago
Fixed in this commit:
https://github.com/lotem/librime/commit/5093f0414f8872d96fc2fba70a7f6eb542013170

Please update librime to this commit.

Original comment by chen....@gmail.com on 19 Nov 2014 at 6:21

GoogleCodeExporter commented 9 years ago
纔知道執行 git submodule update 
--init 時不會自動 pull,這點應該在手冊中說明。

另希望將 MacPorts 的編譯過程也一並注上。

Original comment by JakWi...@gmail.com on 19 Nov 2014 at 6:51

GoogleCodeExporter commented 9 years ago
這是因爲沒有及時更新 submodule。
我一般在引進新功能時或下個版本發佈前才會把 librime 和 
brise 的引用更新到最新穩定版本。
現在先不要用 librime 
最新的代碼,否則繁簡轉換可能無法工作。
若只是爲了解決鏈接的錯誤,請更新到 
5093f0414f8872d96fc2fba70a7f6eb542013170

Original comment by chen....@gmail.com on 19 Nov 2014 at 7:44

GoogleCodeExporter commented 9 years ago
OK,謝過。最新代碼果眞有不少問題。

另,MacPorts 只要安裝 boost 就夠了,其餘 lib 直接用 t
hirdparty 文件夾的比較方便。

Original comment by JakWi...@gmail.com on 19 Nov 2014 at 7:50