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

linux make error #263

Open
s-b-repo opened this issue May 12, 2024 · 2 comments
Open

linux make error #263

s-b-repo opened this issue May 12, 2024 · 2 comments

Comments

@s-b-repo
Copy link

CMake Error at flutter/generated_plugins.cmake:19 (add_subdirectory):
add_subdirectory given source
"flutter/ephemeral/.plugin_symlinks/awesome_notifications/linux" which is
not an existing directory.
Call Stack (most recent call first):
CMakeLists.txt:91 (include)

CMake Error at flutter/generated_plugins.cmake:19 (add_subdirectory):
add_subdirectory given source
"flutter/ephemeral/.plugin_symlinks/dart_vlc/linux" which is not an
existing directory.
Call Stack (most recent call first):
CMakeLists.txt:91 (include)

CMake Error at flutter/generated_plugins.cmake:19 (add_subdirectory):
add_subdirectory given source
"flutter/ephemeral/.plugin_symlinks/dynamic_color/linux" which is not an
existing directory.
Call Stack (most recent call first):
CMakeLists.txt:91 (include)

CMake Error at flutter/generated_plugins.cmake:19 (add_subdirectory):
add_subdirectory given source
"flutter/ephemeral/.plugin_symlinks/gtk/linux" which is not an existing
directory.
Call Stack (most recent call first):
CMakeLists.txt:91 (include)

CMake Error at flutter/generated_plugins.cmake:19 (add_subdirectory):
add_subdirectory given source
"flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linux" which is not
an existing directory.
Call Stack (most recent call first):
CMakeLists.txt:91 (include)

@s-b-repo
Copy link
Author

s-b-repo commented May 12, 2024

https://pastebin.com/pLXApSdu solved the issue

CMake Error at flutter/CMakeLists.txt:7 (include):
include could not find requested file:

/home/uwu/Downloads/LoliSnatcher_Droid-master/linux/flutter/ephemeral/generated_config.cmake

@s-b-repo
Copy link
Author

The error you're encountering is due to missing directories for Flutter plugins in the ephemeral/.plugin_symlinks folder, which is likely related to incorrect plugin paths or missing dependencies during the build process.
Steps to resolve the issue:

Ensure plugins are installed:
    Run the following Flutter command to install all dependencies, including the missing plugins:

    bash

flutter pub get

Regenerate plugin symlinks:

Sometimes the symlinks for Flutter plugins may not be properly generated. You can force Flutter to recreate them by cleaning the build and then regenerating:

bash

flutter clean
flutter pub get

Check for missing plugins:

Ensure the plugins like awesome_notifications, dart_vlc, dynamic_color, and gtk are properly included in your pubspec.yaml file. If they're missing, add them with the correct versions and then run flutter pub get again.

Fix CMakeLists.txt paths:

If the issue persists, manually check the paths in CMakeLists.txt to ensure they point to the correct plugin directories. These paths should match the actual locations in the flutter/ephemeral/.plugin_symlinks/ folder.

Rebuild the project:

Once everything is set up correctly, try rebuilding the project:

bash

    cmake .
    make

This should resolve the errors related to missing plugin directories during the CMake build process

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