isar-community / isar

Extremely fast, easy to use, and fully async NoSQL database for Flutter
https://isar-community.dev
Apache License 2.0
131 stars 15 forks source link

linux support not working anymore? #6

Closed otmi100 closed 6 months ago

otmi100 commented 6 months ago

Steps to Reproduce

Follow the steps in the readme to adopt community version.

Code sample

flutter create -t app isar_linux
cd isar_linux

-> Follow migration guide from readme (only pubspec changes required) 

flutter pub get
dart run build_runner build
flutter build linux

CMake Error at cmake_install.cmake:124 (file):
  file INSTALL cannot find
  "/home/xxx/development/isar_linux/linux/flutter/ephemeral/.plugin_symlinks/isar_flutter_libs/linux/libisar.so":
  No such file or directory.
2

Error: Build process failed

Details

[✓] Flutter (Channel stable, 3.19.2, on Arch Linux 6.7.6-arch1-1, locale en_US.UTF-8) • Flutter version 3.19.2 on channel stable at /home/mitch/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 7482962148 (2 days ago), 2024-02-27 16:51:22 -0500 • Engine revision 04817c99c9 • Dart version 3.3.0 • DevTools version 2.31.1

isar_version: &isar_version 3.1.1 isar*: git: url: https://github.com/isar-community/isar.git .....


vicenterusso commented 6 months ago

Try this:

dependency_overrides:
  isar:
    git:
      url: https://github.com/isar-community/isar.git
      ref: 3.1.1

  isar_flutter_libs:
    git:
      url: https://github.com/isar-community/isar.git
      ref: 3.1.1

  isar_generator:
    git:
      url: https://github.com/isar-community/isar.git
      ref: 3.1.1
mrclauss commented 6 months ago

Probably the same issue like #4 , when fetching isar_flutter_libs from git the binary libraries are not built. Please retry once we published the actual packages...

mrclauss commented 6 months ago

Until we published it you may give it a try to adapt your pubspec as follows to use the prereleased 3.1.2 version:

isar_version : &isar_version ^3.1.2
dependencies:
  isar:
    version: *isar_version
    hosted: https://contactulater.app/
  isar_flutter_libs:
    version: *isar_version
    hosted: https://contactulater.app/
dev_dependencies:
  isar_generator:
    version: *isar_version
    hosted: https://contactulater.app/

Please provide some feedback if that works

otmi100 commented 6 months ago

Yap, that works. Thank's a lot!

You guys are my last hope to stick with isar.. otherwise I've a lot of migration to do...

mrclauss commented 6 months ago

Same here, that's why I joined the community fork, to avoid having to migrate everything :)