Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.
This repository was archived by the owner on Jul 18, 2026. It is now read-only.

Compilation failing on linux (nixOS) #12

Description

@corintho

I want to get this running through the main library: flutter_midi_command. But I am facing an issue at compilation time.

/home/<project_folder>/linux/flutter/generated_plugin_registrant.cc:9:10: fatal error: 'flutter_midi_command_linux/none.h' file not found
/home/<project_folder>/linux/flutter/ephemeral/.plugin_symlinks/flutter_midi_command_linux/linux/flutter_midi_command_linux_plugin.cc:74:72: error: redefinition of 'channel'
/home/<project_folder>/linux/flutter/ephemeral/.plugin_symlinks/flutter_midi_command_linux/linux/flutter_midi_command_linux_plugin.cc:79:56: error: redefinition of 'channel'

This is the generated_plugin_registrant.cc file:

//
//  Generated file. Do not edit.
//

// clang-format off

#include "generated_plugin_registrant.h"

#include <flutter_midi_command_linux/none.h>

void fl_register_plugins(FlPluginRegistry* registry) {
  g_autoptr(FlPluginRegistrar) flutter_midi_command_linux_registrar =
      fl_plugin_registry_get_registrar_for_plugin(registry, "none");
  none_register_with_registrar(flutter_midi_command_linux_registrar);
}

I thought it might be an environment issue due to a lack of native libraries and headers missing, but I am at a loss. I tried making alsa available, but it did not change anything.
Do you have any tips on how I should proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions