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

Embedding Dart Runtime, Windows Compilation (DLL, /MD)? #44604

Open
parrajustin opened this issue Jan 7, 2021 · 1 comment
Open

Embedding Dart Runtime, Windows Compilation (DLL, /MD)? #44604

parrajustin opened this issue Jan 7, 2021 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.

Comments

@parrajustin
Copy link

I'm attempting to embed the Dart vm into a game engine I have a few questions.

  1. The command ./tools/build.py --no-goma --mode release --os host -a x64 runtime returns a static library built using the /MT runtime library which isn't all that compatible with the game engine's /MD runtime. Is it currently known if the dart runtime can be built using the different runtime library?

  2. Is it possible to produce a libdart_jit.dll for embedding in windows?

  3. If it is possible to build dart runtime changing the /MT[d] flags to /MD[d]. In an attempt to embed the dart vm I changed the flag to the /MD type in hopes of producing a compatible .lib file. When attempting to compile I receive numerous linking errors found HERE (All seem to be from the libdart_vm build rule, maybe?). Did I make a mistake or is there something I'm missing?

I'm hoping to use dart as scripting for the game (or possible future programs). This is also a stepping stone for me for attempting to embed flutter for building the ui inside native applications.

Thanks for any help.

@vsmenon vsmenon added the area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. label Jan 7, 2021
@vsmenon
Copy link
Member

vsmenon commented Jan 7, 2021

@parrajustin - you might also consider asking in one of the venues here for a faster response: https://dart.dev/community#join-the-conversation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

2 participants