Post Reply 
Building SleepyHead on Linux
Author Message
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: #21
RE: Building SleepyHead on Linux
Created new directory, git clone from above, followed the instructions in the first message of thread.

$ qmake DEFINES+=BrokenGL
$ make
...
Graphs/gGraphView.cpp: In member function ‘bool gGraphView::pinchTriggered(QPinchGesture*)’:
Graphs/gGraphView.cpp:503:9: warning: variable ‘group’ set but not used [-Wunused-but-set-variable]
int group =0;
^
Graphs/gGraphView.cpp: In member function ‘virtual void gGraphView::resizeEvent(QResizeEvent*)’:
Graphs/gGraphView.cpp:1016:5: error: ‘QOpenGLWidget’ has not been declared
QOpenGLWidget::resizeEvent(e);
^
Makefile:1563: recipe for target 'gGraphView.o' failed
make[1]: *** [gGraphView.o] Error 1
make[1]: Leaving directory '/home/bruce/Apps/sleepyhead-code/sleepyhead'
Makefile:42: recipe for target 'sub-sleepyhead-make_first-ordered' failed
make: *** [sub-sleepyhead-make_first-ordered] Error 2

Unhappy Sad
11-20-2015 10:39 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
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: #22
RE: Building SleepyHead on Linux
Rebuilding without BrokenGL and running from the CLI yields:
~Apps/sleepyhead-code/sleepyhead$ ./SleepyHead
Warning: Started logging thread
Segmentation fault (core dumped)

I found a clue in syslog:
[177252.652723] NVRM: API mismatch: the client has the version 352.63, but this kernel module has the version 352.41. Please make sure that this kernel module and all NVIDIA driver components have the same version.

[177252.655068] SleepyHead[31698]: segfault at 8 ip 00007fda855fd120 sp 00007fffd07f78b8 error 4 in libQt5Gui.so.5.4.2[7fda854e1000+51b000]

So it looks like the Nvidia driver is out of sync with the kernel. I'll try to fix this. Not that I actually know how to do this, but...
11-21-2015 11:29 AM
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: #23
RE: Building SleepyHead on Linux
Re-sync nvidia drivers and re-boot cured problem. Smile
Running OpenGL2. Ubuntu 15.10, works fine. All is good again.
11-21-2015 12:52 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
archangle Offline
Wiki Editor
Advisory Members

Posts: 3,159
Joined: Feb 2012

Machine: ResMed S9 AutoSet
Mask Type: Nasal pillows
Mask Make & Model: ResMed Swift FX
Humidifier: ResMed S9 H5i
CPAP Pressure: 16-20
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments: Happy PAPper

Sex: Undisclosed
Location: USA

Post: #24
RE: Building SleepyHead on Linux
(11-21-2015 12:52 PM)happydreams Wrote:  Re-sync nvidia drivers and re-boot cured problem. Smile
Running OpenGL2. Ubuntu 15.10, works fine. All is good again.

Good. Did you build an OpenGL version of SH, or build the BrokenGL version?

I think I've read somewhere about some changes in NVidia drivers for Linux, so something must have went south.

Get the free SleepyHead software here.
Useful links.
Click here for information on the main alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check it yourself.
11-21-2015 03:29 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: #25
RE: Building SleepyHead on Linux
I built the OpenGL version of SH.
11-22-2015 04:50 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
alaskazimm Offline

Members

Posts: 7
Joined: Feb 2016

Machine: Airsense 10 Elite
Mask Type: Nasal pillows
Mask Make & Model: ResMed Swift FX
Humidifier: ResMed
CPAP Pressure: 10
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Western Alaska

Post: #26
RE: Building SleepyHead on Linux
I just followed the instructions on the first post to install SleepyHead on a Linux Mint 17.3 machine and it went very well. I used the Broken GL flag on qmake and didn't notice many errors on the scrolling text during make. On first run, the program notified me that my hardware could use the Open GL and likely run faster.

In any case, SleepyHead ran well and didn't seem to be noticeably slow. Data import was simple, even though I've got a brick (non-brick machine inbound). Further testing is needed but this looks like a good build.

Thank you archangle for putting together the first post and build instructions!
02-02-2016 04:31 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: #27
RE: Building SleepyHead on Linux
SH 1.0

If I do a git pull from git://git.code.sf.net/p/sleepyhead/code will that have the new 1.0.0 source? It did not look like it on the sourceforge page. If not, what is the link? Do I need to sign stuff to get access? For the new software, all I found was a mac build. I'd like to try an Ubuntu build. 15.10.
03-05-2016 04:38 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
pholynyk Online

Advisory Members

Posts: 308
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: #28
RE: Building SleepyHead on Linux
The standard git clone or pull will currently get you the 1.0.0-beta-0 --- as of this afternoon

I created a build directory beside the sleepyhead-code directory and build within that one. I do qmake DEFINES+=BrokenGL ../sleepyhead-code/SleepyHeadQT.pro - which takes an instant, and then make - which takes a while, but not long enough to go fix a coffee. then ./sleepyhead/SleepyHead starts it up with the release notes and a warning to back up your existing data somewhere because this version rewrites it in a new format.

Happy Testing
03-06-2016 04:46 PM
Find all posts by this user Post Reply Quote this message in a reply
GuyM Offline

Members

Posts: 4
Joined: Mar 2016

Machine: Resmed AirSense 10 Auto
Mask Type: Nasal mask
Mask Make & Model: unsure
Humidifier: none
CPAP Pressure: unsure
CPAP Software: Not using software

Other Comments:

Sex: Undisclosed
Location:

Post: #29
RE: Building SleepyHead on Linux
I am having a difficult time building SleepyHead on my Linux Mint 17.3 machine. I'm a newbie to Linux, but have been trying my best to learn. I ran the script from the first post in this thread but was given errors in the output. I ran it again to get the output so hopefully someone here could assist. For what it's worth, my machine has an older Nvidia graphics card, so I don't think my problem is the BrokenGL version? Below is my output.

guy@guy-desktop ~ $ ./SleepyHeadScript
[sudo] password for guy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libudev-dev is already the newest version.
g++ is already the newest version.
libqt5serialport5 is already the newest version.
libqt5serialport5-dev is already the newest version.
libqt5webkit5-dev is already the newest version.
git is already the newest version.
qt5-default is already the newest version.
qt5-qmake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Cloning into 'sleepyhead-code'...
remote: Counting objects: 18072, done.
remote: Compressing objects: 100% (4425/4425), done.
remote: Total 18072 (delta 14387), reused 17183 (delta 13561)
Receiving objects: 100% (18072/18072), 11.80 MiB | 139.00 KiB/s, done.
Resolving deltas: 100% (14387/14387), done.
Checking connectivity... done.
cd sleepyhead/ && /home/guy/anaconda2/bin/qmake /home/guy/shbuild/sleepyhead-code/sleepyhead/sleepyhead.pro -o Makefile
Project MESSAGE: Building with QGLWidget gGraphView
Project MESSAGE: Warning: unknown QT: serialport
cd sleepyhead/ && make -f Makefile
make[1]: Entering directory `/home/guy/shbuild/sleepyhead-code/sleepyhead'
/home/guy/anaconda2/bin/uic daily.ui -o ui_daily.h
/home/guy/anaconda2/bin/uic overview.ui -o ui_overview.h
/home/guy/anaconda2/bin/uic mainwindow.ui -o ui_mainwindow.h
/home/guy/anaconda2/bin/uic oximetry.ui -o ui_oximetry.h
/home/guy/anaconda2/bin/uic preferencesdialog.ui -o ui_preferencesdialog.h
/home/guy/anaconda2/bin/uic report.ui -o ui_report.h
/home/guy/anaconda2/bin/uic profileselect.ui -o ui_profileselect.h
/home/guy/anaconda2/bin/uic newprofile.ui -o ui_newprofile.h
/home/guy/anaconda2/bin/uic exportcsv.ui -o ui_exportcsv.h
/home/guy/anaconda2/bin/uic UpdaterWindow.ui -o ui_UpdaterWindow.h
/home/guy/anaconda2/bin/uic oximeterimport.ui -o ui_oximeterimport.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DLOCK_RESMED_SESSIONS -DGIT_BRANCH=\"master\" -DGIT_REVISION=\"c68ce6b\" -DBETA_BUILD -D_TTY_POSIX_ -DQUAZIP_STATIC -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../anaconda2/mkspecs/linux-g++ -I. -I../../../anaconda2/include/QtCore -I../../../anaconda2/include/QtNetwork -I../../../anaconda2/include/QtGui -I../../../anaconda2/include/QtOpenGL -I../../../anaconda2/include/QtXml -I../../../anaconda2/include/QtWebKit -I../../../anaconda2/include -I../3rdparty/quazip/quazip -I../3rdparty/quazip -I/usr/X11R6/include -I. -I. -o common_gui.o common_gui.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DLOCK_RESMED_SESSIONS -DGIT_BRANCH=\"master\" -DGIT_REVISION=\"c68ce6b\" -DBETA_BUILD -D_TTY_POSIX_ -DQUAZIP_STATIC -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../anaconda2/mkspecs/linux-g++ -I. -I../../../anaconda2/include/QtCore -I../../../anaconda2/include/QtNetwork -I../../../anaconda2/include/QtGui -I../../../anaconda2/include/QtOpenGL -I../../../anaconda2/include/QtXml -I../../../anaconda2/include/QtWebKit -I../../../anaconda2/include -I../3rdparty/quazip/quazip -I../3rdparty/quazip -I/usr/X11R6/include -I. -I. -o daily.o daily.cpp
In file included from Graphs/gSummaryChart.h:13:0,
from daily.h:25,
from daily.cpp:28:
Graphs/gGraphView.h:536:30: error: expected ‘;’ at end of member declaration
bool event(QEvent * event) Q_DECL_OVERRIDE;
^
Graphs/gGraphView.h:536:32: error: ‘Q_DECL_OVERRIDE’ does not name a type
bool event(QEvent * event) Q_DECL_OVERRIDE;
^
daily.cpp: In member function ‘void Daily::on_LineCursorUpdate(double)’:
daily.cpp:2006:74: error: no matching function for call to ‘QDateTime::fromMSecsSinceEpoch(double&, Qt::TimeSpec)’
QDateTime dt = QDateTime::fromMSecsSinceEpoch(time, Qt::LocalTime);
^
daily.cpp:2006:74: note: candidate is:
In file included from ../../../anaconda2/include/QtCore/QDateTime:1:0,
from ./SleepLib/machine.h:15,
from ./SleepLib/profiles.h:17,
from Graphs/gSummaryChart.h:12,
from daily.h:25,
from daily.cpp:28:
../../../anaconda2/include/QtCore/qdatetime.h:273:22: note: static QDateTime QDateTime::fromMSecsSinceEpoch(qint64)
static QDateTime fromMSecsSinceEpoch(qint64 msecs);
^
../../../anaconda2/include/QtCore/qdatetime.h:273:22: note: candidate expects 1 argument, 2 provided
daily.cpp: In member function ‘void Daily::addBookmark(qint64, qint64, QString)’:
daily.cpp:2223:62: error: no matching function for call to ‘QDateTime::fromTime_t(long long int, Qt::TimeSpec)’
QDateTime d=QDateTime::fromTime_t(st/1000L, Qt::LocalTime);
^
daily.cpp:2223:62: note: candidate is:
In file included from ../../../anaconda2/include/QtCore/QDateTime:1:0,
from ./SleepLib/machine.h:15,
from ./SleepLib/profiles.h:17,
from Graphs/gSummaryChart.h:12,
from daily.h:25,
from daily.cpp:28:
../../../anaconda2/include/QtCore/qdatetime.h:272:22: note: static QDateTime QDateTime::fromTime_t(uint)
static QDateTime fromTime_t(uint secsSince1Jan1970UTC);
^
../../../anaconda2/include/QtCore/qdatetime.h:272:22: note: candidate expects 1 argument, 2 provided
daily.cpp: In member function ‘void Daily::on_addBookmarkButton_clicked()’:
daily.cpp:2251:62: error: no matching function for call to ‘QDateTime::fromTime_t(long long int, Qt::TimeSpec)’
QDateTime d=QDateTime::fromTime_t(st/1000L, Qt::LocalTime);
^
daily.cpp:2251:62: note: candidate is:
In file included from ../../../anaconda2/include/QtCore/QDateTime:1:0,
from ./SleepLib/machine.h:15,
from ./SleepLib/profiles.h:17,
from Graphs/gSummaryChart.h:12,
from daily.h:25,
from daily.cpp:28:
../../../anaconda2/include/QtCore/qdatetime.h:272:22: note: static QDateTime QDateTime::fromTime_t(uint)
static QDateTime fromTime_t(uint secsSince1Jan1970UTC);
^
../../../anaconda2/include/QtCore/qdatetime.h:272:22: note: candidate expects 1 argument, 2 provided
make[1]: *** [daily.o] Error 1
make[1]: Leaving directory `/home/guy/shbuild/sleepyhead-code/sleepyhead'
make: *** [sub-sleepyhead-make_default-ordered] Error 2
03-13-2016 12:23 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
pholynyk Online

Advisory Members

Posts: 308
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: #30
RE: Building SleepyHead on Linux
What version of QT5 are you using in Mint 17.3? Type qmake --version at a prompt; it will report a version for qmake and for QT. Mine reports:
phil@AmyDee:~$ qmake --version
QMake version 3.0
Using Qt version 5.3.2 in /usr/lib/i386-linux-gnu

I believe QT 5.3 is the earliest that is usable for SleepyHead, although I'm not sure of that. I had heard that Mint is somewhat behind that. I use Debian Jessie stable; I thought it was the slowest to update things, but I have been compiling SleepyHead successfully.
(This post was last modified: 03-13-2016 12:39 PM by pholynyk.)
03-13-2016 12:36 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 116 11-29-2016 07:41 AM
Last Post: OpalRose
  did Linux corrupt my SD card? AirPlease 6 844 09-23-2016 02:06 AM
Last Post: zagam
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 280 08-21-2016 07:16 PM
Last Post: pholynyk
  Oximetry - Do any of the pulse oximeters work with linux? happydreams 47 5,204 07-17-2016 08:31 AM
Last Post: johanh
  SleepyHead 1.0.0 Linux kazoni 23 1,497 05-23-2016 03:36 PM
Last Post: palerider
  Add Linux download to the Sleep Files site hfinger 11 1,110 01-13-2016 05:48 PM
Last Post: DariaVader
  SleepyHead and Linux Sleepster 31 6,149 05-02-2014 08:45 AM
Last Post: SnuffySleeper

Forum Jump:

Who's Online (Complete List)