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

Issue when building the library using ninja #2

Open
eacrawford02 opened this issue May 18, 2022 · 0 comments
Open

Issue when building the library using ninja #2

eacrawford02 opened this issue May 18, 2022 · 0 comments

Comments

@eacrawford02
Copy link

I've just been trying to follow along with the readme to get the embedding example set up but have hit a snag in the "Modifying some GN files" section of the doc. Namely, when trying to execute the ninja libdart command in the generated DebugX64 directory, I get the following error:

C:\src\depot_tools\dart-sdk\sdk\out\DebugX64>ninja libdart
ninja: error: unknown target 'libdart', did you mean 'dart'?

I'm not sure if this is caused by incorrectly generating the ninja files in previous steps or if changes have been made to the Dart SDK or depot_tools that would've changed the target I'd be attempting to build, so I was wondering if you might be able shed a little light on that.

Additionally, how do you actually run the code in this repo? Simply cloning it into Visual Studio and attempting a build throws the following error:

\dart-embedding-example\dart\platform\assert.h(12,1): fatal error C1189: #error: neither DEBUG nor NDEBUG defined

Does the source need to be placed within the depot_tools\dart-sdk directory and then built from within there? Or is it something else that I'm missing entirely?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant