Skip to content

Issue when building the library using ninja #2

Open
@eacrawford02

Description

@eacrawford02

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions