This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCPN multi touch, right click emulation, on screen keyboard
#4
MGrouch, thanks for sharing your latest right click solution (on Cruiser's Forum here).
https://www.cruisersforum.com/forums/f13...39147.html
(I thought it would be better to have this discussion in the OpenPlotter forum rather than in the OpenCPN forum)

However, I'm having a little problem getting this installed properly.  Please forgive my newby-ness.  I am a pretty experienced Windows (ex-) programmer, but am just getting into Linux/Raspbian.

I have installed the OpenPlotter 2 NOOBS version and it's running OK.  I've gotten Signal K running and CanUtils installed somehow, and have been able to send simulated N2K messages into to Signal K Dashboard from an Arduino (that was exciting to get working).  I hold my breath every time I try something I've found on the internet, scared I'm going to screw up my system and have to start from scratch again.  (I am periodically backing up my SD card, tho).

So I downloaded your right-click-emu.sh file to my Pi desktop.  When I double-clicked it, it opened in the editor (not what I expected, but OK).  Then I had to figure out how to run it.

Code:
sudo bash right-click-emu.sh

didn't work... said "No such file or directory"

So I moved it into my Documents folder and got pretty much the same thing.

So I tried this:


Code:
sudo bash /home/pi/Documents/right-click-emu.sh


That worked partway.  The library install worked OK, and the git clone worked ok.  But then I got an error.

Code:
cp: cannot stat 'out/evdev-rce': No such file or directory
chmod: cannot access '/usr/local/bin/evdev-rce': No such file or directory
uinput
/home/pi/Documents/right-click-emu.sh: line 27: /root/.config/autostart/evdev-rce.desktop: No such file or directory

So I tried it manually step by step, and the problem is on the make step

Code:
pi@openplotter:~ $ cd 'evdev-right-click-emulation'
pi@openplotter:~/evdev-right-click-emulation $ make all
mkdir: cannot create directory ‘out’: Permission denied
make: *** [Makefile:15: out/uinput.o] Error 1

After a little research, I think this is a permissions issue, but not sure how to properly resolve it.  

Then I tried

Code:
sudo make all

and that seemed to work.  I had a similar permissions error with the next line (chmod), and resolved it again with sudo chmod.

So I continued manually line by line and got all the way through without any more errors.  

But a 1-finger long press on my touchscreen doesn't do anything.  (And I did try a reboot). So, a few questions.

1.  Should I have started this process with your .sh file in a different directory?  If so, where?
2.  Should this work for all touchscreen devices, or is it device specific?  I have a Waveshare 7" HDMI Capacitive LCD Touchscreen.
3.  Is this only for OpenCPN use, or should it work anywhere (ie on the desktop)?

Any suggestions?  I haven't tried twofinger.  I actually don't use the screen much right now--it's more convenient to VNC from my computer with full keyboard and laptop for now, but eventually I will want to use it in touchscreen mode.

Thanks in advance for a little guidance (from anyone).

I have attached the full log from the Terminal window if you want to see every detail (and all the mistakes I made).
Reply


Messages In This Thread
RE: OpenCPN multi touch, right click emulation, on screen keyboard - by SoggyGeek - 2020-09-02, 10:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)