I'm trying to build V8 for embedding its dll files on my win32 C++ application. The build was successful with build command right below. However, when I try to link v8 and its dependency dll files with my test c++ project(Visual Studio 2019, Windows 10), link error occurs all the time.
* working
call gn gen --ide=vs2019
out.gn/x86.release --args="is_clang=true is_debug=false use_glib=false is_component_build=true v8_use_external_startup_data=true v8_static_library=false v8_enable_i18n_support=false target_cpu=\"x86\""
So I changed one of build options(is_clang=true to false) to link successfully, and now build process failed with this error
"FAILED: obj/build/config/sanitizers/options_sources.lib
C:/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x86 False lib.exe /nologo /ignore:4221 /OUT:obj/build/config/sanitizers/options_sources.lib @obj/build/config/sanitizers/options_sources.lib.rsp
Traceback (most recent call last):
File "../../build/toolchain/win/tool_wrapper.py", line 51, in <module>
import win32file # pylint: disable=import-error
ImportError: No module named win32file"
* not working
call gn gen --ide=vs2019
out.gn/x86.release --args="is_clang=false is_debug=false use_glib=false is_component_build=true v8_use_external_startup_data=true v8_static_library=false v8_enable_i18n_support=false target_cpu=\"x86\""
Any idea to solve this issue?