EspoTek / Labrador

EspoTek Labrador is a USB device that transforms your PC or smartphone into a fully-featured electronics lab. This repo holds all of the source code!
http://espotek.com
1.11k stars 119 forks source link

continous android build? #78

Open drtrigon opened 5 years ago

drtrigon commented 5 years ago

Is there a reason why the most recent android release dates back to end 2017?

EspoTek commented 5 years ago

Yep, there are no build scripts for it. Also, a lot of the new features haven't been plumbed into the Android UI.

This is something to work on.

drtrigon commented 5 years ago

It again the same argument we had some years ago. If the linux binaries need package install I don't like them. So I would like to use the android app, but since there is none... I'm again without working software.

EspoTek commented 5 years ago

Fair point. Continuous Android builds will take some time, but I can look into Linux tonight.

EspoTek commented 5 years ago

Looks like I got close, but no cigar. Failed on the last step. I'll try and have a fixed build up ASAP.

EspoTek commented 5 years ago

Have a build up: https://github.com/EspoTek/Labrador/releases/tag/continuous-linux-appimage

As linking statically can cause issues on newer systems, I opted to use darealshinji's method here: https://github.com/darealshinji/AppImageKit-checkrt

I can confirm it runs perfectly on new Linux (kubuntu 18.04 LTS), albeit the interface doesn't look quite as nice as with the native make install. Are you able to confirm that it works on 14.04?

drtrigon commented 5 years ago

Looks like a nice solution. Tested 23c2fee on 14.04 and it runs. Here is the console output:

$ ./EspoTek_Labrador-23c2fee-x86_64.AppImage 
[sudo] password for -----: 
QObject::connect: No such slot bufferControl::signalGenIn(bool)
QObject::connect:  (sender name:   'signalGenGroup_CH2')
QObject::connect:  (receiver name: 'bufferDisplay')
QObject::connect: No such slot timedTickBox::resetTimer(bool)
QObject::connect:  (sender name:   'lockPsuCheckBox')
QObject::connect:  (receiver name: 'lockPsuCheckBox')
QMetaObject::connectSlotsByName: No matching signal for on_actionRecord_triggered(bool)
QMetaObject::connectSlotsByName: No matching signal for on_actionTake_Snapshot_triggered()
Attempting to open "/tmp/.mount_EspoTejbwJuN/usr/bin/waveforms/_list.wfl"
nameBuffer =  Sin

nameBuffer =  Square

nameBuffer =  Triangle

nameBuffer =  Sawtooth

nameBuffer =  DC
newName =  "Sin"
opening "/tmp/.mount_EspoTejbwJuN/usr/bin/waveforms/Sin.tlw"
Length =  128
Divisibility =  4
List loaded!!
Attempting to open "/tmp/.mount_EspoTejbwJuN/usr/bin/waveforms/_list.wfl"
nameBuffer =  Sin

nameBuffer =  Square

nameBuffer =  Triangle

nameBuffer =  Sawtooth

nameBuffer =  DC
newName =  "Sin"
opening "/tmp/.mount_EspoTejbwJuN/usr/bin/waveforms/Sin.tlw"
Length =  128
Divisibility =  4
List loaded!!
Making USB Driver invisible!!
pipeID 0 = 129
Generic Usb Driver setup complete
unixUsbDriver created!
driver =  unixUsbDriver(0x1c7ded0)
axes =  QCustomPlot(0x1b1d490, name="scopeAxes")
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
Libusb context initialised
DEVICE NOT FOUND
Connected
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected
dt_userWantsToCalibrate 65536
ReinitUsb entering stage 2

unixUsbDriver destructor ran!
Libusb exited
unixUsbDriver destructor completed!

genericUsbDriver dectructor entering
genericUsbDriver dectructor completed
Reinitialising USB driver!
Making USB Driver invisible!!
pipeID 0 = 129
Generic Usb Driver setup complete
unixUsbDriver created!
ReinitUsbStage2 is returning
ReinitUsb Stage 1 complete
deviceConnectedDisplay::connectedStatusChanged running!
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
Libusb context initialised
DEVICE NOT FOUND
Connected
deviceConnectedDisplay::connectedStatusChanged running!
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected
deviceConnectedDisplay::connectedStatusChanged running!
CHECKING CONNECTION!
Entering unixUsbDriver::usbInit
DEVICE NOT FOUND
Connected

(however had no time to confirm https://github.com/EspoTek/Labrador/issues/55 yet...)

EspoTek commented 5 years ago

Awesome. I'll have to pass on my thanks to the guy who made the libstdc++ patch.

Ikemeister commented 3 years ago

Back to Android, when can a build that works for version 11 be expected? Would any error symptoms be useful?

EspoTek commented 3 years ago

Hi mate, some Android users report no issues, some report no connection at all. It's something I'd need to discuss with the libusb mailing list, but it should be possible to get out a custom build with better compatibility.

Ikemeister commented 3 years ago

Thx. Any idea of expected timeframe?

EspoTek commented 3 years ago

Honestly, can't give an exact timeframe at the moment. I'll try to have something out around Feb-ish, but can't guarantee.

EspoTek commented 3 years ago

Now builds on Android thanks to PR from @superfrink. Still using old libusb, though.