Giter Club home page Giter Club logo

Comments (9)

ardera avatar ardera commented on September 13, 2024

Okay, it's on my to-do list.

from flutter-pi.

dbeulen avatar dbeulen commented on September 13, 2024

Great, if theres anything i can help you with, just let me know. I had a look on the code, but just didn't even know where to start looking.

from flutter-pi.

ardera avatar ardera commented on September 13, 2024

@dbeulen
That's not your fault at all, the whole I/O "subsystem" is a complete mess right now. I tried integrating it all into one function that "does it all" (on_evdev_input) but that wasn't a good choice after all.

from flutter-pi.

matzesoft avatar matzesoft commented on September 13, 2024

Can we have a option to disable multitouch until you fixed the bug to prevent unwanted inputs?

from flutter-pi.

ardera avatar ardera commented on September 13, 2024

Can we have a option to disable multitouch until you fixed the bug to prevent unwanted inputs?

I just now uploaded the fix/touchscreen-input branch (which is based on the feature/video_player_plugin branch) that fixes touchscreen input. I still have to fix orientation on that branch, that's why it isn't merged into master yet. (The touchscreen fix involved basically completely rewriting flutter-pi.c)
You can also use dbeulen's fork which removed multi-touch support, but supports orientation.

from flutter-pi.

dbeulen avatar dbeulen commented on September 13, 2024

We didnt do a very clean job of removing multitouch, but it works for now....

from flutter-pi.

matzesoft avatar matzesoft commented on September 13, 2024

So in first place, thanks both for your work!

@ardera I tried to compile the fix/touchscreen-input branch but always run into the same error.

pi@raspberrypi:~/sdks/flutter-pi $ make
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
Package libinput was not found in the pkg-config search path.
Perhaps you should add the directory containing `libinput.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libinput' found
Package libudev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libudev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libudev' found
cc -c -I./include  -DBUILD_TEXT_INPUT_PLUGIN -DBUILD_GPIOD_PLUGIN -DBUILD_SPIDEV_PLUGIN -DBUILD_TEST_PLUGIN -DBUILD_OMXPLAYER_VIDEO_PLAYER_PLUGIN -O0 -ggdb  src/flutter-pi.c -o out/obj/flutter-pi.o
In file included from src/flutter-pi.c:25:
/usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory
 #include <drm.h>
          ^~~~~~~
compilation terminated.
make: *** [Makefile:41: out/obj/flutter-pi.o] Error 1

I never had such problems with the master branch but I am running on the lite version so maybe that's just me missing some packages.

from flutter-pi.

ardera avatar ardera commented on September 13, 2024

I never had such problems with the master branch but I am running on the lite version so maybe that's just me missing some packages.

Exactly, you need to have the following additional packages installed: libsystemd-dev, libudev-dev, libinput-dev

The drm.h: No such file or directory error is weird. If it still ocurrs after installing the packages you can try invoking make with the --always-make flag.

The dependency on libudev is another reason why I haven't merged into master yet, udev sadly is not present on all embedded linux devices.

from flutter-pi.

matzesoft avatar matzesoft commented on September 13, 2024

Exactly, you need to have the following additional packages installed: libsystemd-dev, libudev-dev, libinput-dev

I tried this but haven't put "-dev" behind the requested package name. Just because I'm interested - when does a library get this "-dev" sign?

But with these packages building worked fine until I wanted to start my app. The main project I'm working on just crashed right after starting it:

[flutter-pi] WARNING: could not make stdin raw
flutter: Observatory listening on http://127.0.0.1:38329/x58Rzlh9VMc=/
[flutter-pi] Error handling platform message. plugin_registry_on_platform_message: Invalid argument
on_get_transformation
create_backing_store
present_layers_callback
on_get_transformation
create_backing_store
present_layers_callback
collect_window_surface_backing_store
destroying window surface backing store FBO
on_get_transformation
create_backing_store
present_layers_callback
on_get_transformation
create_backing_store
present_layers_callback
collect_window_surface_backing_store
destroying window surface backing store FBO
on_get_transformation
create_backing_store
present_layers_callback
on_get_transformation
create_backing_store
present_layers_callback
collect_window_surface_backing_store
destroying window surface backing store FBO
on_get_transformation
create_backing_store
present_layers_callback
on_get_transformation
create_backing_store
present_layers_callback
collect_window_surface_backing_store
destroying window surface backing store FBO
on_get_transformation
create_backing_store
present_layers_callback
Segmentation fault

Output of the default Flutter app was this:

[flutter-pi] WARNING: could not make stdin raw
flutter: Observatory listening on http://127.0.0.1:35811/T2GiZOLlQJk=/
[flutter-pi] Error handling platform message. plugin_registry_on_platform_message: Invalid argument
on_get_transformation
create_backing_store
present_layers_callback
on_get_transformation
create_backing_store
present_layers_callback
collect_window_surface_backing_store
destroying window surface backing store FBO

IMG_1333

So this has probably something to do with orientation which you said is not implemented yet.

from flutter-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.