Installing SleepyHead on Ubuntu 18.04

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User11
Posts: 5
Joined: Wed May 30, 2018 8:25 am

Installing SleepyHead on Ubuntu 18.04

Post by User11 » Wed May 30, 2018 8:31 am

Please direct me to the right site.

Or better, please give me step-by-step instructions, since I am not that Linux savvy.

Thank you very much

User avatar
OkyDoky
Posts: 2870
Joined: Mon Aug 25, 2014 5:18 pm

Re: Installing SleepyHead on Ubuntu 18.04

Post by OkyDoky » Wed May 30, 2018 9:20 am

On the Sleepyhead site it states:
This build is ONLY for ubuntu 15.04, sorry linux guys & gals, if this isn't you, you'll have to build from source

I don't know if this has changed but there are Linux users here that might be able to help. (Palerider and others)

Keep checking back for their input.

This site helps with learning about how to download but not sure it will be what you need. https://sleep.tnet.com/resources/sleepyhead
Here is the Sleepyhead download site. https://sleepyhead.jedimark.net/
ResMed Aircurve 10 VAUTO EPAP 11 IPAP 15 / P10 pillows mask / Sleepyhead Software / Back up & travel machine Respironics 760

User avatar
zonker
Posts: 11048
Joined: Fri Jun 19, 2015 4:36 pm

Re: Installing SleepyHead on Ubuntu 18.04

Post by zonker » Wed May 30, 2018 11:48 am

as okydoky said, there are linux users here. not me, i'm just here to bump the thread.
people say i'm self absorbed.
but that's enough about them.
Oscar-Win
https://www.apneaboard.com/OSCAR/OSCAR-1.5.1-Win64.exe
Oscar-Mac
https://www.apneaboard.com/OSCAR/OSCAR-1.5.1.dmg

User avatar
palerider
Posts: 32300
Joined: Wed Dec 16, 2009 5:43 pm
Location: Dallas(ish).

Re: Installing SleepyHead on Ubuntu 18.04

Post by palerider » Wed May 30, 2018 12:02 pm

OkyDoky wrote:
Wed May 30, 2018 9:20 am
On the Sleepyhead site it states:
This build is ONLY for ubuntu 15.04, sorry linux guys & gals, if this isn't you, you'll have to build from source
That said, it will work on later versions if you've got the right qt libraries and such installed. I'm still using the one I compiled back in 2016...

I don't have time right now to do the OP's research and dig up the posted build instructions, maybe later.

_________________
Mask: Bleep DreamPort CPAP Mask Solution
Additional Comments: S9 VPAP Auto
Get OSCAR

Accounts to put on the foe list: dataq1, clownbell, gearchange, lynninnj, mper!?, DreamDiver, Geer1, almostadoctor, sleepgeek, ajack, stom, mogy, D.H., They often post misleading, timewasting stuff.

prodigyplace
Posts: 1739
Joined: Mon Mar 27, 2017 5:45 pm
Location: Central Virginia

Re: Installing SleepyHead on Ubuntu 18.04

Post by prodigyplace » Wed May 30, 2018 12:27 pm

User11 wrote:
Wed May 30, 2018 8:31 am
Please direct me to the right site.

Or better, please give me step-by-step instructions, since I am not that Linux savvy.

Thank you very much
I am not sure the answer but the developer (jedimark) hangs out in Discord chat at https://discord.gg/4RYKscZ

EDIT: I found this elsewhere:

Linux Platform Build Notes
Requires Qt 5+ with webkit, package manager version will do, recent Debian systems (and others) have QtWebkit in the package manager along with reasonably modern Qt5 builds.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: AirFit™ P10 Nasal Pillow CPAP Mask with Headgear
Additional Comments: ClimateLineAir Heated Tube & Sleepyhead software
Please visit our sponsor, CPAP.com at https://www.cpap.com/ for all your CPAP needs.

User11
Posts: 5
Joined: Wed May 30, 2018 8:25 am

Re: Installing SleepyHead on Ubuntu 18.04

Post by User11 » Thu May 31, 2018 8:20 am

What I did so far

I installed : libqt5serialport5 git qt5-qmake qt5-default libqt5webkit5-dev libqt5serialport5- g++ libudev-dev

sudo mkdir build_sleepyhead
cd build_sleepyhead
sudo git clone https://gitlab.com/sleepyhead/sleepyhead-code.git

sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
Cannot find file: ../sleepyhead-code/SleepyHeadQT.pro.
cd '.... /build_sleepyhead/sleepyhead-code'
~/build_sleepyhead/sleepyhead-code$ sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
~/build_sleepyhead/sleepyhead-code$ sudo make

cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/build_sleepyhead/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project ERROR: Unknown module(s) in QT: serialport
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 3

So what am doing wrong? Thanks

prodigyplace
Posts: 1739
Joined: Mon Mar 27, 2017 5:45 pm
Location: Central Virginia

Re: Installing SleepyHead on Ubuntu 18.04

Post by prodigyplace » Thu May 31, 2018 9:32 am

User11 wrote:
Thu May 31, 2018 8:20 am
What I did so far

I installed : libqt5serialport5 git qt5-qmake qt5-default libqt5webkit5-dev libqt5serialport5- g++ libudev-dev

sudo mkdir build_sleepyhead
cd build_sleepyhead
sudo git clone https://gitlab.com/sleepyhead/sleepyhead-code.git

sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
Cannot find file: ../sleepyhead-code/SleepyHeadQT.pro.
cd '.... /build_sleepyhead/sleepyhead-code'
~/build_sleepyhead/sleepyhead-code$ sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
~/build_sleepyhead/sleepyhead-code$ sudo make

cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/build_sleepyhead/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project ERROR: Unknown module(s) in QT: serialport
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 3

So what am doing wrong? Thanks
That is the newer 1.1 version we (the worldwide team) are currently testing to resolve bugs.

I just took a look at the build instructions there. QTWebKit is no longer required arne we ate testing with Qt 5.11.0.
I think this is what the README there meant.
mkdir sleepyhead-code
cd sleepyhead-code
sudo git clone https://gitlab.com/sleepyhead/sleepyhead-code.git

mkdir build_sleepyhead
cd build_sleepyhead
sudo qmake ../sleepyhead-code/SleepyHeadQT.pro

If you want to help out and are computer savvy, the SleepyHead Users chat Discord invite is in my signature here. We can direct you from there to the Dev chat.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: AirFit™ P10 Nasal Pillow CPAP Mask with Headgear
Additional Comments: ClimateLineAir Heated Tube & Sleepyhead software
Please visit our sponsor, CPAP.com at https://www.cpap.com/ for all your CPAP needs.

User11
Posts: 5
Joined: Wed May 30, 2018 8:25 am

Re: Installing SleepyHead on Ubuntu 18.04

Post by User11 » Thu May 31, 2018 12:57 pm

Thanks prodigyplace,
Unfortunately I am not good at all and at my age it's going a be very hard to start learning (no matter what THEY say, wait till they reach their 80th.. ).

Anyway, I deleted everything (using sudo) and tried your suggestion.
There is an improvement - no more " Cannot find file: ../sleepyhead-code/SleepyHeadQT.pro. "
But still errors:
~/sleepyhead-code/build_sleepyhead$ sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
Info: creating stash file /home/martin/sleepyhead-code/build_sleepyhead/.qmake.stash

~/sleepyhead-code/build_sleepyhead$ sudo make
cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/sleepyhead-code/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project ERROR: Unknown module(s) in QT: serialport
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 3

Hope that you can point out the error

prodigyplace
Posts: 1739
Joined: Mon Mar 27, 2017 5:45 pm
Location: Central Virginia

Re: Installing SleepyHead on Ubuntu 18.04

Post by prodigyplace » Thu May 31, 2018 1:00 pm

User11 wrote:
Thu May 31, 2018 12:57 pm
Thanks prodigyplace,
Unfortunately I am not good at all and at my age it's going a be very hard to start learning (no matter what THEY say, wait till they reach their 80th.. ).

Anyway, I deleted everything (using sudo) and tried your suggestion.
There is an improvement - no more " Cannot find file: ../sleepyhead-code/SleepyHeadQT.pro. "
But still errors:
~/sleepyhead-code/build_sleepyhead$ sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
Info: creating stash file /home/martin/sleepyhead-code/build_sleepyhead/.qmake.stash

~/sleepyhead-code/build_sleepyhead$ sudo make
cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/sleepyhead-code/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project ERROR: Unknown module(s) in QT: serialport
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 3

Hope that you can point out the error
Let me see if I can find the answer for you. I have not built this on Linux

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: AirFit™ P10 Nasal Pillow CPAP Mask with Headgear
Additional Comments: ClimateLineAir Heated Tube & Sleepyhead software
Please visit our sponsor, CPAP.com at https://www.cpap.com/ for all your CPAP needs.

prodigyplace
Posts: 1739
Joined: Mon Mar 27, 2017 5:45 pm
Location: Central Virginia

Re: Installing SleepyHead on Ubuntu 18.04

Post by prodigyplace » Thu May 31, 2018 2:15 pm

User11 wrote:
Thu May 31, 2018 12:57 pm
Thanks prodigyplace,
Unfortunately I am not good at all and at my age it's going a be very hard to start learning (no matter what THEY say, wait till they reach their 80th.. ).

Anyway, I deleted everything (using sudo) and tried your suggestion.
There is an improvement - no more " Cannot find file: ../sleepyhead-code/SleepyHeadQT.pro. "
But still errors:
~/sleepyhead-code/build_sleepyhead$ sudo qmake ../sleepyhead-code/SleepyHeadQT.pro
Info: creating stash file /home/martin/sleepyhead-code/build_sleepyhead/.qmake.stash

~/sleepyhead-code/build_sleepyhead$ sudo make
cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/sleepyhead-code/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project ERROR: Unknown module(s) in QT: serialport
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 3

Hope that you can point out the error
I had one of the developers look at this thread. He noticed you installed libqt5serialport5 but not libqt5serialport5-dev He thinks that could be at least part of your issue.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: AirFit™ P10 Nasal Pillow CPAP Mask with Headgear
Additional Comments: ClimateLineAir Heated Tube & Sleepyhead software
Please visit our sponsor, CPAP.com at https://www.cpap.com/ for all your CPAP needs.

User11
Posts: 5
Joined: Wed May 30, 2018 8:25 am

Re: Installing SleepyHead on Ubuntu 18.04

Post by User11 » Thu May 31, 2018 5:35 pm

I installed libqt5serialport5-dev but it still does not work:

~/sleepyhead-code/build_sleepyhead$ sudo make

cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/sleepyhead-code/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Failure to open file: /home/martin/sleepyhead-code/build_sleepyhead/sleepyhead/Makefile
Unable to generate makefile for: /home/martin/sleepyhead-code/sleepyhead-code/sleepyhead/sleepyhead.pro
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 5
martin@martin-Inspiron-13-5378:~/sleepyhead-code/build_sleepyhead$ sudo make
cd sleepyhead/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/martin/sleepyhead-code/sleepyhead-code/sleepyhead/sleepyhead.pro ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
make[1]: Entering directory '/home/martin/sleepyhead-code/build_sleepyhead/sleepyhead'
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/daily.ui -o ui_daily.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/overview.ui -o ui_overview.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/mainwindow.ui -o ui_mainwindow.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/oximetry.ui -o ui_oximetry.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/preferencesdialog.ui -o ui_preferencesdialog.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/report.ui -o ui_report.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/profileselect.ui -o ui_profileselect.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/newprofile.ui -o ui_newprofile.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/exportcsv.ui -o ui_exportcsv.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/UpdaterWindow.ui -o ui_UpdaterWindow.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/oximeterimport.ui -o ui_oximeterimport.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/profileselector.ui -o ui_profileselector.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/aboutdialog.ui -o ui_aboutdialog.h
/usr/lib/qt5/bin/uic ../../sleepyhead-code/sleepyhead/welcome.ui -o ui_welcome.h
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DLOCK_RESMED_SESSIONS -DGIT_BRANCH=\"master\" -DGIT_REVISION=\"ce8a7e23\" -DBETA_BUILD -D_TTY_POSIX_ -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I../../sleepyhead-code/sleepyhead -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o common_gui.o ../../sleepyhead-code/sleepyhead/common_gui.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DLOCK_RESMED_SESSIONS -DGIT_BRANCH=\"master\" -DGIT_REVISION=\"ce8a7e23\" -DBETA_BUILD -D_TTY_POSIX_ -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I../../sleepyhead-code/sleepyhead -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o daily.o ../../sleepyhead-code/sleepyhead/daily.cpp
In file included from ../../sleepyhead-code/sleepyhead/SleepLib/profiles.h:18:0,
from ../../sleepyhead-code/sleepyhead/daily.h:25,
from ../../sleepyhead-code/sleepyhead/daily.cpp:26:
../../sleepyhead-code/sleepyhead/SleepLib/machine_loader.h:19:10: fatal error: zlib.h: No such file or directory
#include "zlib.h"
^~~~~~~~
compilation terminated.
Makefile:1253: recipe for target 'daily.o' failed
make[1]: *** [daily.o] Error 1
make[1]: Leaving directory '/home/martin/sleepyhead-code/build_sleepyhead/sleepyhead'
Makefile:44: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 2

prodigyplace
Posts: 1739
Joined: Mon Mar 27, 2017 5:45 pm
Location: Central Virginia

Re: Installing SleepyHead on Ubuntu 18.04

Post by prodigyplace » Thu May 31, 2018 6:12 pm

It looks like the released version of Sleepyhead is in the official Ubuntu repositories.

https://packages.ubuntu.com/bionic/sleepyhead

That would be much easier to install.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: AirFit™ P10 Nasal Pillow CPAP Mask with Headgear
Additional Comments: ClimateLineAir Heated Tube & Sleepyhead software
Please visit our sponsor, CPAP.com at https://www.cpap.com/ for all your CPAP needs.

User avatar
palerider
Posts: 32300
Joined: Wed Dec 16, 2009 5:43 pm
Location: Dallas(ish).

Re: Installing SleepyHead on Ubuntu 18.04

Post by palerider » Thu May 31, 2018 7:45 pm

First thing, you shouldn't use sudo for gmake or make.

Your problem above is a missing zlib:
User11 wrote:
Thu May 31, 2018 5:35 pm
../../sleepyhead-code/sleepyhead/SleepLib/machine_loader.h:19:10: fatal error: zlib.h: No such file or directory
On my system, it's provided by the package zlib1g-dev

Pretty much all the problems compiling SH come down to that.. make, see what's missing, add the package, make again.

Then when you've got all the bits on your system, it should build.

_________________
Mask: Bleep DreamPort CPAP Mask Solution
Additional Comments: S9 VPAP Auto
Get OSCAR

Accounts to put on the foe list: dataq1, clownbell, gearchange, lynninnj, mper!?, DreamDiver, Geer1, almostadoctor, sleepgeek, ajack, stom, mogy, D.H., They often post misleading, timewasting stuff.

User11
Posts: 5
Joined: Wed May 30, 2018 8:25 am

Re: Installing SleepyHead on Ubuntu 18.04

Post by User11 » Wed Jun 06, 2018 7:15 am

As suggested by prodigyplace I went to the Synaptic and installed SleepyHead.
And it works very well.
Thank you all for your help

krauster
Posts: 22
Joined: Thu Sep 13, 2018 11:13 pm

Re: Installing SleepyHead on Ubuntu 18.04

Post by krauster » Thu Jan 02, 2020 7:54 pm

I am a Linux newbie. Got Sleepyhead working in Windows10 last year and I haven't used the software much for awhile. I am switching over to Linux Mint. I've downloaded and installed Mint 19.3, which I understand to be derived from Ubuntu and Debian.

In Mint there is "Software Manager" and I searched for Sleepyhead and found it (1.0.0-beta-2+dfsg-4) and installed it. But when the software install was complete I couldn't find it doing a search.

Uninstalled it, than tried installing it using the Synaptic Package Manager, in case that would make a difference, and I get the same results. It completes the install, or at least doesn't give an error message. But when searching for it the Linux Mint Menu (lower left corner) it doesn't find the application.

Any Linux Mint users?