Hi Ben, Do you mean what am I going that merits all this trouble? 😁
I work on my game engine on my spare time, and I am planning on using V8 as the underlying JavaScript engine, However my immediate need is to use it to power the engine UI, which is a separate project. My idea is to create a small SVG Browser Agent that can be put as an OpenGL or Vulkan Overlay in the game engine, using regular JS to drive animations and events in the SVG page. I tried using Electron, but it turned out that you don't embed Electron, Electron embeds you, and in the end I had to hack too many things to get it barely working on Windows and Linux was a no go. So, I figured I might as well give pure v8 a new try (I used to have cmake scripts to build v8 back when it used scons). I noticed there was no v8 package on MSYS2, despite there being one some years ago, so I started working on that, then tried to install v8 on VCPKG and it just wasn't there despite being requested since long ago (https://github.com/microsoft/vcpkg/issues/372), and now here I am 😆. TL;DR: here's the links for my projects: https://github.com/AeonGames/AeonEngine https://github.com/AeonGames/AeonGUI On Thursday, July 16, 2020 at 9:02:48 PM UTC-6, Ben Ernst wrote: > > Rodrigo, what's your project? I tried and failed to fix this build, I'd > happily throw a few hundred dollars in gratitude at anyone able to get it > working stably. I wonder if there might be other users out there in the > same boat. > Ben > > > > On Fri, 17 Jul 2020 at 03:40, Rodrigo Hernandez <kwizatz.a...@gmail.com > <javascript:>> wrote: > >> >> Ok, found the problem, beside some missing V8_PRIVATE_EXPORTs, >> v8_enable_verify_heap is broken on component builds. >> >> v8_enable_verify_heap is enabled by is_debug, and it causes >> the VERIFY_HEAP define to be added to the compilation flags, >> gen\torque-generated\class-verifiers-tq.cc (Not sure which .tq file >> generates this one) has a file wide guard for this VERIFY_HEAP define, so >> even if compiled, if not set, produces no code. >> >> The problem then is that functions inside class-verifiers-tq.cc reference >> functions in v8_initializers, which is a dependency ONLY exposed in >> v8_for_testing (and v8_init, but that's not a lib). >> >> Since I doubt verify heap is intended for test only targets, I guess >> functions in class-verifiers-tq.cc should not be calling anything in >> v8_initializers. >> >> Either way adding v8_enable_verify_heap=false (even if you have >> is_debug=true) to the args removes those cryptic undefined symbol errors. >> >> >> On Tuesday, July 14, 2020 at 11:50:03 AM UTC-6, Rodrigo Hernandez wrote: >>> >>> >>> Got to the same point with branch head 8.1, did some dependency moves >>> like adding v8_initializers as a v8 dependency as well as wasm_api_test as >>> well as adding some missing V8_EXPORT macros until I got to the point where >>> NodeCache<int64_t> was undefined, >>> moved more deps and got duplicated symbols. >>> >>> Somehow I don't think adding the deps is what's missing, the symbols >>> should be there somewhere or the clang build would fail as well, but it >>> doesn't, I think it has to do with either the assembly generation or >>> something that was left undone when wee8 was added. >>> >>> I have patches for building with MSYS + MinGW64, and none of these >>> issues showed up when writing those, so there must be something GCC/CLANG >>> is doing that MSVC is not doing yet. >>> >>> I need to drop this project until the weekend, I'll come back try to >>> figure out what am I missing then, in the meantime, any hints of what could >>> be going on are welcome. >>> >>> Thanks again. >>> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com <javascript:> >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-u...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/v8-users/20e44a86-a777-4291-a663-ed8c52fd7d35o%40googlegroups.com >> >> <https://groups.google.com/d/msgid/v8-users/20e44a86-a777-4291-a663-ed8c52fd7d35o%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/1d4f3f2d-6f56-43e1-89c9-e472a390a1f7o%40googlegroups.com.