View Full Version : Tutorial for installing SourceForge SleepyHead CPAP/BiPAP (Sleep Apnea) software

March 7th, 2012, 10:18 PM
Help me help others ...
Note: If you're on Ubuntu Lucid 10.04, please let me know if this works for you!

Having never compiled anything, here's my best guess at how to install SourceForge SleepyHead freeware for analyzing & graphing data stored by the following home-use sleep apnea equipment:

Philips Respironics System One
ResMed S9 families
DeVilbiss Intellipap
Fisher & Paykel Icon
Contec CMS50 (USB serial) oximeters
ResMed S9's oximeter attachment.

Read about SleepyHead software from the SleepyHead Web Site (http://sleepyhead.sourceforge.net/).
Read the SleepyHead Wiki (http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page)on SourceForge.net
Read the SleepyHead Build-from-Source (http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Build_from_source) page on SourceForge.net.

For Ubuntu Natty 11.04, simply download the .deb & doubleclick on it:


32-bit (sleepyhead_0.9.2-1_i386.deb (http://sourceforge.net/projects/sleepyhead/files/Releases/Linux/sleepyhead_0.9.2-1_i386.deb/download))
64-bit (sleepyhead_0.9.2-1_amd64.deb (http://sourceforge.net/projects/sleepyhead/files/latest/download?source=files))

For Ubuntu Lucid 10.04, you'll need to compile from source:
Note: Doubleclicking the .deb on Ubuntu Lucid 10.04 will elicit the following fatal error:
Error: Dependency is not satisfiable: libqtcore4 (>= 4:4.7.0~beta1)

Install C++ & QT development tools & the GIT client:

$ sudo apt-get install git-core qt4-dev-tools libqt4-opengl-dev libqtwebkit-dev zlib1g-dev Obtain the SleepyHead source code (using 'git'):

$ git clone git://sleepyhead.git.sourceforge.net/gitroot/sleepyhead/sleepyheadCreate a Makefile:

$ qmakeCompile the SleepyHead executable:

makeNote: Please reply whether this works for you on Ubuntu Lucid 10.04!

March 9th, 2012, 06:56 AM
I added additional information to the first post above based on this response below from here:
- How do you compile source code (sleepyhead src from Sourceforge)? (http://ubuntuforums.org/showthread.php?p=11755956#post11755956)

it works fine in lucid setup, the only thing missing from the instructions is apt-get install zlib1g-dev for zlib.h

March 10th, 2012, 03:33 PM
FYI: A friend of mine who is a lifelong developer (so he had all the programs installed) was able to skip all but three of the steps above to compile the SleepyHead executable.

It worked for me on Lucid 10.04 just by running these commands:
git clone git://sleepyhead.git.sourceforge.net/gitroot/sleepyhead/sleepyhead

March 10th, 2012, 08:15 PM
Moved to Packaging and Compiling Programs.

March 11th, 2012, 06:43 AM
Moved to Packaging and Compiling Programs.


More details on debugging the compilation step on Ubuntu 10.04 are here:
- How do you compile source code (sleepyhead src from Sourceforge)? (http://ubuntuforums.org/showthread.php?p=11756055#post11756055)