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] Fails to build #562

Open
Casuallynoted opened this issue Feb 26, 2024 · 4 comments
Open

[Linux] Fails to build #562

Casuallynoted opened this issue Feb 26, 2024 · 4 comments

Comments

@Casuallynoted
Copy link

Casuallynoted commented Feb 26, 2024

I'm getting the following errors when running the suggested build steps on Linux, I currently have the Flutter SDK and Android Studio installed.


cas@Framework:~/miria$ flutter pub get
"ja_OJ": 425 untranslated message(s).
To see a detailed report, use the untranslated-messages-file 
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection> 


This will generate a JSON format file containing all messages that 
need to be translated.
Resolving dependencies... (1.6s)
  _fe_analyzer_shared 61.0.0 (67.0.0 available)
  analyzer 5.13.0 (6.4.1 available)
  auto_route 6.4.0 (7.8.4 available)
  auto_route_generator 6.2.0 (7.3.2 available)
  build_runner_core 7.2.11 (7.3.0 available)
  built_value 8.8.1 (8.9.1 available)
  change 0.7.2 (0.7.3 available)
  cider 0.2.5 (0.2.6 available)
  cross_file 0.3.3+8 (0.3.4+1 available)
  csslib 0.17.3 (1.0.0 available)
  dart_style 2.3.2 (2.3.4 available)
  device_info_plus 9.1.1 (9.1.2 available)
  dio 5.4.0 (5.4.1 available)
  ffi 2.1.0 (2.1.2 available)
  file 6.1.4 (7.0.0 available)
  file_picker 5.5.0 (6.1.1 available)
  fl_chart 0.62.0 (0.66.2 available)
  flutter_html 3.0.0-alpha.6 (3.0.0-beta.2 available)
  flutter_lints 2.0.3 (3.0.1 available)
  flutter_riverpod 2.4.9 (2.4.10 available)
  flutter_secure_storage 8.1.0 (9.0.0 available)
  flutter_secure_storage_windows 2.1.1 (3.0.0 available)
  flutter_svg 2.0.9 (2.0.10+1 available)
  freezed 2.4.6 (2.4.7 available)
  http 1.2.0 (1.2.1 available)
  image 4.1.4 (4.1.7 available)
! image_editor 1.3.0 from git https://github.com/shiosyakeyakini-info/flutter_image_editor_fix_ios_color_option.git at baae0b in image_editor (overridden)
! image_editor_common 1.0.1 from git https://github.com/shiosyakeyakini-info/flutter_image_editor_fix_ios_color_option.git at baae0b in image_editor_common (overridden)
! image_editor_platform_interface 1.0.1 from git https://github.com/shiosyakeyakini-info/flutter_image_editor_fix_ios_color_option.git at baae0b in image_editor_platform_interface (overridden)
  intl 0.18.1 (0.19.0 available)
  js 0.6.7 (0.7.1 available)
  leak_tracker 10.0.0 (10.0.4 available)
  leak_tracker_flutter_testing 2.0.1 (3.0.3 available)
  leak_tracker_testing 2.0.1 (3.0.1 available)
  lints 2.1.1 (3.0.0 available)
  meta 1.11.0 (1.12.0 available)
  mime 1.0.4 (1.0.5 available)
  package_info_plus 4.2.0 (5.0.1 available)
  permission_handler 10.4.5 (11.3.0 available)
  permission_handler_android 10.3.6 (12.0.5 available)
  permission_handler_apple 9.1.4 (9.4.0 available)
  permission_handler_platform_interface 3.12.0 (4.2.0 available)
  permission_handler_windows 0.1.3 (0.2.1 available)
  receive_sharing_intent 1.4.5 (1.6.7 available)
  riverpod 2.4.9 (2.5.0 available)
  screen_brightness 0.2.2+1 (1.0.0 available)
  screen_brightness_android 0.1.0+2 (1.0.0 available)
  screen_brightness_ios 0.1.0 (1.0.0 available)
  screen_brightness_macos 0.1.0+1 (1.0.0 available)
  screen_brightness_platform_interface 0.1.0 (1.0.0 available)
  screen_brightness_windows 0.1.3 (1.0.0 available)
  share_plus 7.2.1 (7.2.2 available)
  shared_preferences_web 2.2.2 (2.3.0 available)
  sqflite 2.3.0 (2.3.2 available)
  sqflite_common 2.5.0+2 (2.5.3 available)
  test_api 0.6.1 (0.7.0 available)
  url_launcher 6.2.3 (6.2.5 available)
  url_launcher_android 6.2.2 (6.3.0 available)
  url_launcher_platform_interface 2.3.1 (2.3.2 available)
  url_launcher_web 2.2.3 (2.3.0 available)
  uuid 3.0.7 (4.3.3 available)
  vector_graphics 1.1.9+2 (1.1.11+1 available)
  vector_graphics_codec 1.1.9+2 (1.1.11+1 available)
  vector_graphics_compiler 1.1.9+2 (1.1.11+1 available)
  vm_service 13.0.0 (14.0.0 available)
  wakelock_plus 1.1.4 (1.1.6 available)
  web 0.3.0 (0.5.0 available)
  web_socket_channel 2.4.0 (2.4.4 available)
  webview_flutter 4.4.4 (4.7.0 available)
  webview_flutter_android 3.13.2 (3.15.0 available)
  webview_flutter_platform_interface 2.9.1 (2.10.0 available)
  webview_flutter_wkwebview 3.10.2 (3.12.0 available)
Got dependencies!
69 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
cas@Framework:~/miria$ flutter build linux

CMake Error at /var/lib/snapd/snap/flutter/145/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
  A required package was not found
Call Stack (most recent call first):
  /var/lib/snapd/snap/flutter/145/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
  flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/CMakeLists.txt:13 (pkg_check_modules)


Building Linux application...                                           
Unable to generate build files
@Npepperlinux
Copy link
Contributor

I think it is a flutter-snap issue.
The easiest way to solve this problem is to install the Flutter SDK manually.


手動インストールの推奨はWikiに書いてあるけど、そろそろこの辺も英訳したほうがよさそう。

@Casuallynoted
Copy link
Author

I think it is a flutter-snap issue. The easiest way to solve this problem is to install the Flutter SDK manually.

手動インストールの推奨はWikiに書いてあるけど、そろそろこの辺も英訳したほうがよさそう。

Unfortunately after a manual flutter install, I am getting:

cas@Framework:~/miria$ flutter build linux

CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
  flutter/CMakeLists.txt:25 (pkg_check_modules)


Building Linux application...                                           
Unable to generate build files

@Npepperlinux
Copy link
Contributor

Npepperlinux commented Feb 27, 2024

You need to install libsecret-1-dev and libmpv-dev (this is written in Japanese in the Wiki but not in the README yet, sorry).

sudo apt install libsecret-1-dev libmpv-dev

@Npepperlinux
Copy link
Contributor

Was the build successful?

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

2 participants