-
Notifications
You must be signed in to change notification settings - Fork 323
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
visual studio release compilation static lib error: lld-link: error: could not open 'obj/v8_wrappers.lib': no such file or directory #512
Comments
I'm running into as well. What's weird is that v8_wrapper appears to be just a header file. I don't think it would even generate a lib file. |
@dividebylife |
I was able to build by just removing the #include lines for v8_wrapper. But the libs that were generated could not be linked on windows. It's possible that "libs not linking on windows" is a separate problem, though. |
I'm experiencing the exact same issue on windows 10 - x64. Any ideas on how this could be resolved? |
|
@dividebylife |
some tried it ? still having failure with the latest v8 build ( i didn't pull the 7.7.299.9999)
Now I'm noticing they are using a modified version of v8 https://github.com/ncsoft/v8 |
I managed to work around that. The key is Step 1: Create #include "src/base/platform/wrappers.h" Step 2: Update +build obj/v8_wrappers.obj: cxx ../../src/base/platform/wrappers.cc
-build obj/v8_wrappers.lib: alink
+build obj/v8_wrappers.lib: alink obj/v8_wrappers.obj Step 3: Build v8_wrappers. ninja -C out.gn/x64.release v8_wrappers
ninja: Entering directory `out.gn/x64.release'
[2/2] LIB obj/v8_wrappers.lib Voilà, c'est très bien. |
Shouldn't this ticket be opened under the main v8 project, not v8.dev? |
I have open sourced the step-by-step with patch script for building Windows version. It works for v8.9 and v9.0. Also, I have prepared pre-built V8 for both Linux and Windows. Good luck! |
i followed all the steps from https://v8.dev/docs/build-gn
to build release-static v8 lib but I'm getting this error :
using VC 2019 , win10 64bit from https://v8.dev/docs/build-gn
doing git branch it shows :
the error I'm getting :
The text was updated successfully, but these errors were encountered: