Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account

New Posts   Today's Posts

SleepyHead and Linux
{This is a long post, but I wanted to have everything I needed in one place for the next person who does this. --RCPete}

OK, I now have a working SleepyHead-1.0.0-beta2 on my new Linux system. It's a pretty generic distribution (Slackware 14.2), so the instructions should work for anybody.

I'm using 1.0.0-beta2 on my Windows machine, but thought I'd try the beta0 from jedimark's page. Got a license (free) from GitLab.com and downloaded it. Converted the .deb file to tgz with deb2tgz and unpacked it with the Slackware package tool. It "installed" but failed at run time due to a lack of the Qt5 library bits. OK, time to start from scratch. ("Use the Source, Luke")

Run glxgears. That works, so I have openGL.
Run qmake --version. That returned Qt 4.8.7. Oops.
Read the jedimark pages. (These went unavailable after Christmas while Mark is rebuilding his page, but the basic bit is that Qt5.5.1 is optimal, and anything higher than 5.5 will break SleepyHead.)

Initial setup:
1) The machine wants to use the / partition, but mine ran into space problems (cough*LibreOffice*cough), so I made a large /usr/local partition for builds. If you don't have space problems, skip the /usr/local and carry on.

Getting the pieces:
Getting the Qt5.5.1 is the most involved, but is fairly easy once you've navigated the route.
Go to Qt.io; hit the download button. You now have to answer a few questions to get the bits. You want the "in-house deployment" option. Once it's happy, you get to the downloads. Go the "other files" and the archives. You'll want the qt5.5.1 section, where you'll find the open source file. This is everything, so you shouldn't need Qtcreator. Download the 600Mb+ .run file and move it to the right spot in your machine (/usr/local for me.
Make the run file executable with chmod 744 and run. You will now have Qt5.5 in an opt directory (/usr/local/opt for me). Find the main qmake location. Mine was /usr/local/opt/Qt5.5.2/5.5/gcc_64/bin.
I wanted to keep Qt4.8.7 for other applications, so I finagled the qmake command.
cd /usr/bin
qmake is a simlink to the distribution Qt4 make, so I renamed it
mv qmake qmake-4.8
Then, ln -s /usr/local/opt/Qt5.5.2/5.5/gcc_64/bin/qmake qmake-5.5
Finally, ln -s qmake-5.5 qmake
qmake --version points to the right one. (Once I'm done, qmake will be redirected to qmake-4.8)

Now, get Sleepyhead source. Log in to Gitlab, then in a terminal, run
git clone https://gitlab.com/sleepyhead/sleepyhead-code.git
Move the code to an appropriate directory, and unpack it.
Check the README for buidling in the shadow directory. I found that libudev-dev was not necessary; the libudev pieces in my distribution were sufficient. You should end up with SleepyHead in the build_sleepyhead directory. Run it, and you are good.

End note: I'm moving from a Windows box to a Linux one, and to keep my data, I went to the Windows SleepyHeadData folder, went down to the "Peter" folder for my data and profile, and copied it to the other machine.
Post Reply Post Reply

Donate to Apnea Board  
Good job! As a side note, I've found that SleepyHead runs considerably faster during data import on Linux as opposed to Windows systems.
Post Reply Post Reply

Possibly Related Threads...
Thread Author Replies Views Last Post
  Latest ChromeOS to Support Linux Apps Crimson Nape 0 189 06-19-2018, 10:24 AM
Last Post: Crimson Nape
  Oximetry - Do any of the pulse oximeters work with linux? happydreams 51 10,731 06-02-2018, 10:21 AM
Last Post: GordK
  SleepyHead 1.0.0 Linux kazoni 31 3,942 06-02-2018, 03:28 AM
Last Post: ndstate
  did Linux corrupt my SD card? AirPlease 6 1,235 09-23-2016, 02:06 AM
Last Post: zagam
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 952 08-21-2016, 07:16 PM
Last Post: pholynyk
  Building SleepyHead on Linux archangle 38 10,184 04-09-2016, 12:40 PM
Last Post: happydreams
  Add Linux download to the Sleep Files site hfinger 11 1,880 01-13-2016, 05:48 PM
Last Post: DariaVader

Forum Jump:

New Posts   Today's Posts

About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.