{"action":"created","issue":{"url":"https://api.github.com/repos/rime/librime/issues/73","repository_url":"https://api.github.com/repos/rime/librime","labels_url":"https://api.github.com/repos/rime/librime/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/rime/librime/issues/73/comments","events_url":"https://api.github.com/repos/rime/librime/issues/73/events","html_url":"https://github.com/rime/librime/pull/73","id":135993846,"number":73,"title":"Add Travis CI configuration (resolve #71)","user":{"login":"jakwings","id":1451509,"avatar_url":"https://avatars.githubusercontent.com/u/1451509?v=3","gravatar_id":"","url":"https://api.github.com/users/jakwings","html_url":"https://github.com/jakwings","followers_url":"https://api.github.com/users/jakwings/followers","following_url":"https://api.github.com/users/jakwings/following{/other_user}","gists_url":"https://api.github.com/users/jakwings/gists{/gist_id}","starred_url":"https://api.github.com/users/jakwings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakwings/subscriptions","organizations_url":"https://api.github.com/users/jakwings/orgs","repos_url":"https://api.github.com/users/jakwings/repos","events_url":"https://api.github.com/users/jakwings/events{/privacy}","received_events_url":"https://api.github.com/users/jakwings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-24T08:40:16Z","updated_at":"2016-02-26T15:48:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rime/librime/pulls/73","html_url":"https://github.com/rime/librime/pull/73","diff_url":"https://github.com/rime/librime/pull/73.diff","patch_url":"https://github.com/rime/librime/pull/73.patch"},"body":"我想大致配置好了，還差用 rime_api_console 具體測試各種功能。\r\n\r\n盡量用 apt-get 或 homebrew 安裝依賴。boost 具體用的是 iconv 還是 icu 沒研究清楚。\r\n\r\n在 Ubuntu 下編譯 opencc 時遇到 `-fPIC` 相關錯誤，麻煩看一看：\r\nhttps://travis-ci.org/jakwings/librime/builds/111425057\r\n\r\nping: #71"},"comment":{"url":"https://api.github.com/repos/rime/librime/issues/comments/189332745","html_url":"https://github.com/rime/librime/pull/73#issuecomment-189332745","issue_url":"https://api.github.com/repos/rime/librime/issues/73","id":189332745,"user":{"login":"lotem","id":151157,"avatar_url":"https://avatars.githubusercontent.com/u/151157?v=3","gravatar_id":"","url":"https://api.github.com/users/lotem","html_url":"https://github.com/lotem","followers_url":"https://api.github.com/users/lotem/followers","following_url":"https://api.github.com/users/lotem/following{/other_user}","gists_url":"https://api.github.com/users/lotem/gists{/gist_id}","starred_url":"https://api.github.com/users/lotem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotem/subscriptions","organizations_url":"https://api.github.com/users/lotem/orgs","repos_url":"https://api.github.com/users/lotem/repos","events_url":"https://api.github.com/users/lotem/events{/privacy}","received_events_url":"https://api.github.com/users/lotem/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T15:48:22Z","updated_at":"2016-02-26T15:48:22Z","body":"情況是這樣吧：\r\n其他的庫包管理器都提供了，只缺 gtest 和 opencc；\r\ngtest 只產出 .a，那就用它；\r\nopencc 本來就默認做成動態庫，cd 到源碼目錄，按照標準流程編譯、安裝即可；\r\n然後就可以編譯 librime 和測試。\r\n\r\n沒必要非得用上 Makefile.thirdparty。寫這個 Makefile 是因爲若要靜態鏈接所有的第三方庫，流程比較複雜。\r\n\r\n至於Mac，我一般都用 debug 版做測試。\r\nrelease 版的程序在命令行上運行時還得指定 rpath 以定位動態鏈接庫，怪麻煩。\r\n\r\n代碼是一樣的，我感覺沒有必要試遍所有編譯選項。重點是測試在不同平臺、CPU架構下都能正常工作。"}}