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

build error with Visual Studio 2015 #314

Closed
nonew opened this issue Oct 31, 2015 · 1 comment
Closed

build error with Visual Studio 2015 #314

nonew opened this issue Oct 31, 2015 · 1 comment

Comments

@nonew
Copy link

nonew commented Oct 31, 2015

Hello, All

When I build with vs2015, error occured as following:
C:\workspaces\google\mozc\src>python build_mozc.py build -c Release package
INFO: Running: ninja.exe -C out_win/Release mozc_win32_build32
ninja: Entering directory `out_win/Release'
[3/578] CXX obj\third_party\protobuf\src\google\protobuf\protobuf.dynamic_message.obj
FAILED: ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" /nologo /showIncludes /FC @obj\third_party\protobuf\src\google\protobuf\protobuf.dynamic_message.obj.rsp /c ....\third_party\protobuf\src\google\protobuf\dynamic_message.cc /Foobj\third_party\protobuf\src\google\protobuf\protobuf.dynamic_message.obj /Fdobj\protobuf\protobuf.cc.pdb
....
c:\program files (x86)\microsoft visual studio 14.0\vc\include\hash_map(17): error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
注意: 包含文件: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\hash_set
c:\program files (x86)\microsoft visual studio 14.0\vc\include\hash_set(17): error C2338: <hash_set> is deprecated and will be REMOVED. Please use <unordered_set>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
....
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "build_mozc.py", line 1438, in
main()
File "build_mozc.py", line 1434, in main
procedure[1](cmd_opts, cmd_args, original_directory_name)
File "build_mozc.py", line 1056, in BuildMain
BuildOnWindows(targets)
File "build_mozc.py", line 1037, in BuildOnWindows
RunOrDie([ninja, '-C', target_dir] + tokens)
File "C:\workspaces\google\mozc\src\build_tools\util.py", line 99, in RunOrDie
'==========']))

build_tools.util.RunOrDieError:

ERROR: ninja.exe -C out_win/Release mozc_win32_build32

Seems that hash_map is deprecated, and should use unordered_map, but I could not find definition of unordered_map in the project.
Can you help to make it compatible with vs2015 ? Thank you in advance!

@yukawa
Copy link
Collaborator

yukawa commented Nov 2, 2015

Thank you for the report but we don't support Visual Studio 2015 right now. Please use Visual Studio 2013 instead until we officially switch to Visual Studio 2015.

Note that we do have a plan to switch to Visual Studio 2015, but I'd like to focus on other high priority issues at the moment. Please subscribe #315 if you are interested in the progress on Visual Studio 2015 support in Mozc for Windows.

That said, just fixing build failures is not so difficult. I've uploaded a proof-of-concept change 518f41a into support_msvs_2015 branch just for your reference.

git clone -b support_msvs_2015 https://github.com/google/mozc.git --recursive
cd mozc\src
python build_mozc.py gyp --msvs_version=2015 --noqt
python build_mozc.py build package

@yukawa yukawa closed this as completed Nov 2, 2015
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

2 participants