Thanks a lot for all your help. I managed to get everything working. On Monday, September 22, 2025 at 3:58:43 PM UTC-4 Ben Noordhuis wrote:
> On Mon, Sep 22, 2025 at 6:38 PM 'Mati Cohen' via v8-users > <[email protected]> wrote: > > > > Hey, I managed to get my builds. > > > > Now, when I run the app on Android it crashes here when trying to > initialize v8: > > > > const bool kEmbedderSandbox = (build_config & kSandbox) != 0; > > if (kEmbedderSandbox != V8_ENABLE_SANDBOX_BOOL) { > > FATAL( > > "Embedder-vs-V8 build configuration mismatch. On embedder side " > > "sandbox is %s while on V8 side it's %s.", > > kEmbedderSandbox ? "ENABLED" : "DISABLED", > > V8_ENABLE_SANDBOX_BOOL ? "ENABLED" : "DISABLED"); > > } > > > > As far as I could see v8_enable_sandbox is true by default (and I am not > overwriting it). Is there any reason why these vars don't match? I can't > see their values on the debugger. > > > > I am using the default default_min_sdk_version (v21), so maybe sandbox > was not supported yet on that version? > > > > I guess another option is to set v8_enable_sandbox=false, but I'd like > to take advantage of sandbox if that's an option. > > > > Thanks! > > You have to compile your own code (that is, your code that links > against V8) with the same flags as V8 itself was built with. > > For example, if V8 was built with V8_ENABLE_SANDBOX and > V8_COMPRESS_POINTERS (v8_enable_sandbox=true and > v8_enable_pointer_compression=true), then your own code must be > compiled with `c++ -DV8_ENABLE_SANDBOX -DV8_COMPRESS_POINTERS`. > -- -- v8-users mailing list [email protected] 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/v8-users/179b10be-58e2-474c-ad2d-a69fe358d732n%40googlegroups.com.
