Post Reply 
SleepyHead 1.0.0 Linux
Author Message
kazoni Offline

Members

Posts: 11
Joined: Feb 2016

Machine: ResMed Airsense 10 Auto
Mask Type: Nasal mask
Mask Make & Model: ResMed Airfit N10
Humidifier: ResMed Airsense 10 Auto
CPAP Pressure: 5-10
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location:

Post: #1
SleepyHead 1.0.0 Linux
First off, love Sleepyhead! I'm a big supporter of having full access to my data and seeing the trends myself.

I've been using 0.9.8-2 for awhile without any major issues and now I'm trying to update to 1.0.0. However I'm having issues getting it installed due to missing dependencies (Error: Dependency is not satisfiable: <name of dependency>). So far I've ran into 3 and have fixed 2.
  • libdouble-conversion1v5 (fixed)
  • libicu55 (fixed)
  • libpcre16-3 (can't find so far)

I'm running Linux Mint 17.3 (Rosa) which is built off Ubuntu 14.04.4 LTS (Trusty) on a 64-bit laptop. Am I just missing something horribly obvious? I'm going to keep trying to track down the dependencies myself but any help would be appreciated!
04-01-2016 12:00 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
Crimson Nape Offline

Monitors

Posts: 1,324
Joined: Oct 2014

Machine: ResMed S9 Autoset
Mask Type: Other
Mask Make & Model: P-10 / F&P Simplus / DreamWear
Humidifier: H5i w/Climateline
CPAP Pressure: 8 - EPR 3
CPAP Software: SleepyHead

Other Comments: CMS-50F & 50IW

Sex: Male
Location: Georgia

Post: #2
RE: SleepyHead 1.0.0 Linux
Hi kazoni,
Welcome to the forum!

I don't know if this will provide any help but I found it on the Github note section. I'm doing a copy and paste.

GitHub SleepyHead Notes:

SleepyHead v1.0 branch

SleepyHead is cross platform, opensource sleep tracking program for reviewing CPAP and Oximetry data,
which are devices used in the treatment of Sleep Disorders like Obstructive Sleep Apnea.

Requirements:
-------------
Qt5 SDK with webkit (Qt5.5 from http://qt.io/download-open-source recommended)
Linux needs libudev-dev for qserialport to compile

OSX needs Xcode and commandline tools from AppStore

Windows needs MinGW (in Qt5 SDK) or VC++2013 Express (and matching Qt libraries)

Building:
--------

Recommend shadow building to not cruft up the source code folder:

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

You may need to add a -spec option to qmake to suit your platform.
Adding -j3 speeds up the make command on a dual core or greater system.


Author: Mark Watkins <mark@jedimark.net>
Copyright ©2011-2016 Mark Watkins

Licence Stuff
-------------
This software is released under the GNU Public License version 3.0

Exceptions and 3rd Party Libraries:
It uses QuaZip, by Sergey A. Tachenov, which is a C++ wrapper over Gilles Vollant's ZIP/UNZIP package..
http://sourceforge.net/projects/quazip/

Statistics prove that people who have more birthdays live longer.
04-01-2016 12:36 PM
Find all posts by this user Post Reply Quote this message in a reply
AlanE Offline

Advisory Members

Posts: 1,491
Joined: Mar 2015

Machine: ResMed AirSense 10 Autoset
Mask Type: Nasal pillows
Mask Make & Model: P10 & Mirage Liberty backup
Humidifier: Built-in
CPAP Pressure: 10-14
CPAP Software: ResScan SleepyHead

Other Comments: ʕ•ᴥ•ʔ So Long, and Thanks for All the Fish

Sex: Male
Location: Southwest Florida

Post: #3
RE: SleepyHead 1.0.0 Linux
(04-01-2016 12:00 PM)kazoni Wrote:  I'm running Linux Mint 17.3 (Rosa) which is built off Ubuntu 14.04.4 LTS (Trusty) on a 64-bit laptop. Am I just missing something horribly obvious? I'm going to keep trying to track down the dependencies myself but any help would be appreciated!

The 1.0.0-beta-1 Ubuntu version is for version 15.04.



Using FlashAir W-03 SD card in machine. Access through wifi with FlashPAP or Sleep Master utilities.

I wanted to learn Binary so I enrolled in Binary 101. I seemed to have missed the first four courses. Big Grinnie
04-01-2016 01:55 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
kazoni Offline

Members

Posts: 11
Joined: Feb 2016

Machine: ResMed Airsense 10 Auto
Mask Type: Nasal mask
Mask Make & Model: ResMed Airfit N10
Humidifier: ResMed Airsense 10 Auto
CPAP Pressure: 5-10
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location:

Post: #4
RE: SleepyHead 1.0.0 Linux
(04-01-2016 01:55 PM)AlanE Wrote:  The 1.0.0-beta-1 Ubuntu version is for version 15.04.

I knew I was missing something obvious. Thanks!
04-01-2016 02:07 PM
Find all posts by this user Post Reply Quote this message in a reply
happydreams Offline

Preferred Members

Posts: 23
Joined: Sep 2015

Machine: Respironics System 1 560P
Mask Type: Full face mask
Mask Make & Model: Resmed Airfit F10
Humidifier: Not used
CPAP Pressure: 8 cm
CPAP Software: SleepyHead Other Software

Other Comments:

Sex: Male
Location: NH, USA

Post: #5
RE: SleepyHead 1.0.0 Linux
I've just built SH1.0.0 for Ubuntu15.10. (And 0.9.8-2) Went without a hitch. I did have to search for some dependencies, which took a little detective work. Do you have QT5?
Definitely use the recommended build method JediMark recommends. I just did it 10 minutes ago. Generated a nice clean build of 1.0.0-beta-1.
04-09-2016 12:46 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
kazoni Offline

Members

Posts: 11
Joined: Feb 2016

Machine: ResMed Airsense 10 Auto
Mask Type: Nasal mask
Mask Make & Model: ResMed Airfit N10
Humidifier: ResMed Airsense 10 Auto
CPAP Pressure: 5-10
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location:

Post: #6
RE: SleepyHead 1.0.0 Linux
(04-09-2016 12:46 PM)happydreams Wrote:  I've just built SH1.0.0 for Ubuntu15.10. (And 0.9.8-2) Went without a hitch. I did have to search for some dependencies, which took a little detective work. Do you have QT5?
Definitely use the recommended build method JediMark recommends. I just did it 10 minutes ago. Generated a nice clean build of 1.0.0-beta-1.

Yes, using QT5:
Code:
BlackKnight ~/build_sleepyhead $ qmake --version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu

I did do the build method JediMark listed. When I run make it bombs out on this:
Code:
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DLOCK_RESMED_SESSIONS -DGIT_BRANCH=\"UNKNOWN\" -DGIT_REVISION=\"UNKNOWN\" -DBETA_BUILD -D_TTY_POSIX_ -DQUAZIP_STATIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_LOCATION_LIB -DQT_WEBKIT_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_SERIALPORT_LIB -DQT_POSITIONING_LIB -DQT_SENSORS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../../sleepyhead-code/sleepyhead -I../../sleepyhead-code/3rdparty/quazip/quazip -I../../sleepyhead-code/3rdparty/quazip -I/usr/include/qt5 -I/usr/include/qt5/QtWebKitWidgets -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtLocation -I/usr/include/qt5/QtWebKit -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtSerialPort -I/usr/include/qt5/QtPositioning -I/usr/include/qt5/QtSensors -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -I. -o prs1_loader.o ../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp
Putting child 0x028a3060 (prs1_loader.o) PID 17123 on the chain.
Live child 0x028a3060 (prs1_loader.o) PID 17123
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp: In member function ‘bool PRS1Import::ParseF5Events()’:
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp:779:44: warning: unused variable ‘p’ [-Wunused-variable]
     EventDataType currentPressure=0, leak, p;
                                            ^
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp: In function ‘void SmoothEventList(Session*, EventList*, ChannelID)’:
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp:1238:34: error: ‘class QVector<EventList*>’ has no member named ‘removeAll’
         session->eventlist[code].removeAll(ev);
                                  ^
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp: In member function ‘bool PRS1Import::ParseF0Events()’:
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp:1289:44: warning: unused variable ‘p’ [-Wunused-variable]
     EventDataType currentPressure=0, leak, p;
                                            ^
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp: In member function ‘bool PRS1Import::ParseSummaryF5V2()’:
../../sleepyhead-code/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp:2103:14: warning: unused variable ‘cpapmode’ [-Wunused-variable]
     CPAPMode cpapmode = MODE_UNKNOWN;

I see there's an error with QVector, but I'm at a loss on what to do about it.
04-12-2016 11:30 AM
Find all posts by this user Post Reply Quote this message in a reply
palerider Offline

Preferred Members-

Posts: 440
Joined: Nov 2014

Machine: s9 vpap auto
Mask Type: Nasal pillows
Mask Make & Model: p10
Humidifier: none
CPAP Pressure: 18/13+
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Dallas(ish)

Post: #7
RE: SleepyHead 1.0.0 Linux
5.2.1 may be a too old version of qt5. it works fine with 5.4.2, though.
04-12-2016 04:06 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
pholynyk Offline

Advisory Members

Posts: 306
Joined: Mar 2015

Machine: ResMed AirSense 10 APAP
Mask Type: Full face mask
Mask Make & Model: Amara View
Humidifier: included
CPAP Pressure: 11-17
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Ontario, Canada

Post: #8
RE: SleepyHead 1.0.0 Linux
(04-12-2016 04:06 PM)palerider Wrote:  5.2.1 may be a too old version of qt5. it works fine with 5.4.2, though.

Due to the changes in the QVector methods, 5.4 is the lowest version that will compile SleepyHead 1.0.

I had to change from the 'Desktop' kit that QtCreator found to the 5.4.2 kit that was downloaded with the Community version of QT. The difference was that 5.4.2 was located in /home/me/Qt/5.4 whereas the Desktop stuff was in /usr/bin/... and /usr/include/i386-linux-gnu/qt5.

I hope this helps.
04-13-2016 10:53 AM
Find all posts by this user Post Reply Quote this message in a reply
kazoni Offline

Members

Posts: 11
Joined: Feb 2016

Machine: ResMed Airsense 10 Auto
Mask Type: Nasal mask
Mask Make & Model: ResMed Airfit N10
Humidifier: ResMed Airsense 10 Auto
CPAP Pressure: 5-10
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location:

Post: #9
RE: SleepyHead 1.0.0 Linux
Getting closer I think.
Code:
me@BlackKnight ~/sleepybuild $ ls
total 40K
drwxr-xr-x  2 me me 4.0K Apr 13 16:35 .
drwxr-xr-x 79 me me 4.0K Apr 13 15:43 ..
-rw-r--r--  1 me me  30K Apr 13 15:47 Makefile
me@BlackKnight ~/sleepybuild $ make
cd sleepyhead/ && ( test -e Makefile || /home/me/Qt5.6.0/5.6/gcc_64/bin/qmake /home/me/sleepyhead-code/sleepyhead/sleepyhead.pro -o Makefile ) && make -f Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project ERROR: Unknown module(s) in QT: webkitwidgets
make: *** [sub-sleepyhead-make_first-ordered] Error 3
me@BlackKnight ~/sleepybuild $

apt-get says I have it:
Code:
me@BlackKnight ~/sleepybuild $ sudo apt-get install libqt5webkit5 libqt5webkit5-dev
[sudo] password for me:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libqt5webkit5 is already the newest version.
libqt5webkit5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
me@BlackKnight ~/sleepybuild $

I'm at a loss
04-13-2016 04:39 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
palerider Offline

Preferred Members-

Posts: 440
Joined: Nov 2014

Machine: s9 vpap auto
Mask Type: Nasal pillows
Mask Make & Model: p10
Humidifier: none
CPAP Pressure: 18/13+
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Dallas(ish)

Post: #10
RE: SleepyHead 1.0.0 Linux
how about libqt5widgets5?

when I made a .deb for sh beta1, here was the full list of dependencies for ubuntu 15.10:

Depends:libc6, libdouble-conversion1v5, libffi6, libfreetype6, libgcc1, libglib2.0-0, libgraphite2-3, libgstreamer1.0-0, libgstreamer-plugins-base1.0-0, libharfbuzz0b, libicu55, libjpeg-turbo8, liborc-0.4-0, libpcre16-3, libpcre3, libpng12-0, libqt5core5a, libqt5gui5, libqt5network5, libqt5opengl5, libqt5printsupport5, libqt5qml5, libqt5quick5, libqt5serialport5, libqt5sql5, libqt5webkit5, libqt5widgets5, libqt5xml5, libsqlite3-0, libstdc++6, libudev1, libx11-6, libxau6, libxcb1, libxcomposite1, libxdmcp6, libxext6, libxml2, libxrender1, libxslt1.1, zlib1g
(This post was last modified: 04-13-2016 05:27 PM by palerider.)
04-13-2016 05:24 PM
Find all posts by this user Post Reply Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Idea SleepyHead and Linux MartinT 3 87 11-29-2016 07:41 AM
Last Post: OpalRose
  did Linux corrupt my SD card? AirPlease 6 834 09-23-2016 02:06 AM
Last Post: zagam
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 264 08-21-2016 07:16 PM
Last Post: pholynyk
  Oximetry - Do any of the pulse oximeters work with linux? happydreams 47 5,144 07-17-2016 08:31 AM
Last Post: johanh
  Building SleepyHead on Linux archangle 38 7,417 04-09-2016 12:40 PM
Last Post: happydreams
  Add Linux download to the Sleep Files site hfinger 11 1,084 01-13-2016 05:48 PM
Last Post: DariaVader
  SleepyHead and Linux Sleepster 31 6,078 05-02-2014 08:45 AM
Last Post: SnuffySleeper

Forum Jump:

Who's Online (Complete List)