Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake generation failure #140

Open
steven09176 opened this issue Apr 20, 2018 · 2 comments
Open

Cmake generation failure #140

steven09176 opened this issue Apr 20, 2018 · 2 comments

Comments

@steven09176
Copy link

我試著按照所提供的procedure, 但在Cmake 的程序上無法generated
Tool Requirements 都有安裝包括
CMake >= 2.8.11
Visual Studio Express 2012 with Update 1
git
Editor with EditorConfig supported
但這個程序無法編譯,
Visual Studio 11" -T "v110_xp"
cmake -G "Visual Studio 11 Win64" -T "v110_xp"
請問有解嗎?

@CuteLasty
Copy link

CuteLasty commented May 25, 2018

我使用VS2017 Enterprise 15.7.2, 不過我想 VS2017 Community 就夠了. 如果你堅持2012, 可以改一下cmake 的命令試試看.

Step:

  1. Start a cmd.exe
  2. Switch to C:\
  3. git clone https://github.com/chewing/windows-chewing-tsf
  4. cd windows-chewing-tsf
  5. git submodule update --init --remote --recursive
  6. Download https://www.sqlite.org/2018/sqlite-amalgamation-3230100.zip
  7. Unzip it to a temp folder, then copy all unzip files to C:\windows-chewing-tsf\libchewing\thirdparty\sqlite-amalgamation (Update sqlite3)
  8. md VS2017_64
  9. cmake -G "Visual Studio 15 2017 Win64" -DWITH_INTERNAL_SQLITE3=yes ..
  10. cmake --build .

如此, 應該剩下build test-chewinwrapper 會fail, 這個請自己處理一下 test-chewingwrapper.cpp 裡面關於 "CHEWING_PATH" and "CHEWING_USER_PATH" 的設定...

@ShikiSuen
Copy link

看一下 git commit 歷史就很清楚了:windows xp 支援被暫時取消了。
原因是 windows xp 內建的 tsf 不完美。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants