Ubuntu Linux and Sleepyhead
Ubuntu Linux and Sleepyhead
I am using Ubuntu 14.04 64bit, and I have been trying to get the latest Sleepyhead compiled, but cannot seem to get it to work. I can get the .deb package for the 0.9.2 version to load and run, but it won't work with my 60 series machine. I have Sleepyhead installed on my wife's Win 8 laptop, but I despise using that thing. I am not very good at compiling things unless I have step by step instructions. I know that doesn't sound like the typical Linux user, but I use it because I can't stand windows.
Re: Ubuntu Linux and Sleepyhead
I just compiled 0.9.6 on my Ubuntu 14.04 64 bit machine.
Like you, I also don't compile much, so it took me several tries following the directions here:
http://sleepyhead.sourceforge.net/wiki/ ... rom_source
What follows is NOT a step by step, but simply some notes on what I found while going through this myself.
I did find I needed to install a few additional packages that I didn't already have. They may not have all been needed, but I think I had errors for each.
Following the wiki:
Download the Qt5 SDK and install.
you will likey have to chmod the download to make it executable to run:
Obtain the Sleepyhead Source Code
In a terminal in a empty directory: (Note, I think I had a problem with a folder name with a space. Make sure the full path does not contain any spaces.)
Compile. I used the command line here:
following the wiki, it took me a while to find the qmake. If you installed qt based on defaults, it probably installed them into your user folder. so:
Starting at the sleepyhead-code root folder:
That should create the makefile
Then:
Hope this helps get you started. Watch the output and see if it displays anything missing. Reply back if you get hung up, I'll try to keep an eye here and help if possible.
-craig
Like you, I also don't compile much, so it took me several tries following the directions here:
http://sleepyhead.sourceforge.net/wiki/ ... rom_source
What follows is NOT a step by step, but simply some notes on what I found while going through this myself.
I did find I needed to install a few additional packages that I didn't already have. They may not have all been needed, but I think I had errors for each.
Code: Select all
sudo apt-get install git g++ libglew1.5-dev libglewmx1.5-dev zlib1g-dev
Download the Qt5 SDK and install.
you will likey have to chmod the download to make it executable to run:
Code: Select all
chmod +x qt-opensource-linux-x64-1.6.0-4-online.run
./qt-opensource-linux-x64-1.6.0-4-online.run
In a terminal in a empty directory: (Note, I think I had a problem with a folder name with a space. Make sure the full path does not contain any spaces.)
Code: Select all
git clone git://sleepyhead.git.sourceforge.net/gitroot/sleepyhead/sleepyhead
following the wiki, it took me a while to find the qmake. If you installed qt based on defaults, it probably installed them into your user folder. so:
Starting at the sleepyhead-code root folder:
Code: Select all
cd ..
mkdir build
cd build
~/Qt/5.3/gcc_64/bin/qmake ../sleepyhead-code/SleepyHeadQT.pro
Then:
Code: Select all
make -j3
-craig
_________________
Machine: DreamStation Auto CPAP Machine |
Mask: AirFit™ N20 Nasal CPAP Mask with Headgear |
Humidifier: DreamStation Heated Humidifier |
Additional Comments: Started PAP on 1/16/07. - Typical 90% pressure ~ 10 cm H20 |
Re: Ubuntu Linux and Sleepyhead
Now THAT's support.
_________________
Mask: AirFit™ P10 Nasal Pillow CPAP Mask with Headgear |
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control |
Additional Comments: Sleepyhead SW. NeilMed and Alkalol Nasal rinses. Veramyst. AutoPAP 11-20 cms. Started June '14, untreated AHI 31-38, with PAP around 1. |
Re: Ubuntu Linux and Sleepyhead
The bad part is that I didn't get in 30 min... I guess it'll have to be free.
Hey, we're all here to help. Here was something I thought I might actually be able to add some real value to. (I hope.) OP, if you get it working, please let us know.
Hey, we're all here to help. Here was something I thought I might actually be able to add some real value to. (I hope.) OP, if you get it working, please let us know.
_________________
Machine: DreamStation Auto CPAP Machine |
Mask: AirFit™ N20 Nasal CPAP Mask with Headgear |
Humidifier: DreamStation Heated Humidifier |
Additional Comments: Started PAP on 1/16/07. - Typical 90% pressure ~ 10 cm H20 |
Re: Ubuntu Linux and Sleepyhead
you're elected to make .deb packages for mark to put up on the dl site...Craig-Tx wrote:I just compiled 0.9.6 on my Ubuntu 14.04 64 bit machine.
Hope this helps get you started. Watch the output and see if it displays anything missing. Reply back if you get hung up, I'll try to keep an eye here and help if possible.
-craig
you should grab 0.9.7, he's got some neat stuff in the latest commits.
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.
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.
Re: Ubuntu Linux and Sleepyhead
I think you may have missed one part in my post. I had to install g++. I have not compiled ANYTHING yet on this build, much less built a .deb (wouldn't have any idea how to even start that! )palerider wrote: you're elected to make .deb packages for mark to put up on the dl site...
you should grab 0.9.7, he's got some neat stuff in the latest commits.
And dang... I JUST got 0.9.6. Building 0.9.7 as I type.
_________________
Machine: DreamStation Auto CPAP Machine |
Mask: AirFit™ N20 Nasal CPAP Mask with Headgear |
Humidifier: DreamStation Heated Humidifier |
Additional Comments: Started PAP on 1/16/07. - Typical 90% pressure ~ 10 cm H20 |
Re: Ubuntu Linux and Sleepyhead
I got it to compile, but will only build version 0.9.2. I can't get seem to get it to pull down a newer version of the source files.
Re: Ubuntu Linux and Sleepyhead
In the sleephead folder, if you do a
It should update the source to the latest version
I would delete anything in the "build" folder and re-run the qmake and the make.
Code: Select all
git pull
I would delete anything in the "build" folder and re-run the qmake and the make.
_________________
Machine: DreamStation Auto CPAP Machine |
Mask: AirFit™ N20 Nasal CPAP Mask with Headgear |
Humidifier: DreamStation Heated Humidifier |
Additional Comments: Started PAP on 1/16/07. - Typical 90% pressure ~ 10 cm H20 |
Re: Ubuntu Linux and Sleepyhead
Also, once it is built, make sure you are running the SleepyHead program from the build/sleepyhead folder, not any shortcut (if you previously had one).
You can move the sleepyhead folder out of the build folder to a more suitable location once you know it works.
You can move the sleepyhead folder out of the build folder to a more suitable location once you know it works.
_________________
Machine: DreamStation Auto CPAP Machine |
Mask: AirFit™ N20 Nasal CPAP Mask with Headgear |
Humidifier: DreamStation Heated Humidifier |
Additional Comments: Started PAP on 1/16/07. - Typical 90% pressure ~ 10 cm H20 |
Re: Ubuntu Linux and Sleepyhead
I ran a "git pull", but I didn't empty the "build" folder. It is recompiling now. We'll see if it works this time.Craig-Tx wrote:In the sleephead folder, if you do aIt should update the source to the latest versionCode: Select all
git pull
I would delete anything in the "build" folder and re-run the qmake and the make.
Re: Ubuntu Linux and Sleepyhead
One more thing: If you want to look at the source code for the version, look in:
sleepyhead/sleepyhead/version.h
There should be some constants near the top defined as:
I doubt this is the best way to determine the source code version, but it will confirm if git updated the code properly or not.
sleepyhead/sleepyhead/version.h
There should be some constants near the top defined as:
Code: Select all
const int major_version = 0; // incompatible API changes
const int minor_version = 9; // new features that don't break things
const int revision_number = 7; // bugfixes, revisions
_________________
Machine: DreamStation Auto CPAP Machine |
Mask: AirFit™ N20 Nasal CPAP Mask with Headgear |
Humidifier: DreamStation Heated Humidifier |
Additional Comments: Started PAP on 1/16/07. - Typical 90% pressure ~ 10 cm H20 |
Re: Ubuntu Linux and Sleepyhead
It says I have the correct version. I have deleted all the files I find from my older 0.9.2. Time to try again.
Re: Ubuntu Linux and Sleepyhead
I had previously installed the 0.9.2 from a .deb. Apparently something was hanging around from that installation that was causing it to run as 0.9.2 even though I was compiling 0.9.7. I went through and deleted everything I could find from the previous installation, recompiled again, and now it works. I will say that it didn't want to import my data at first. I had to import it a couple of times for it to recognize the machine data on my sd card. Once it finally imported my data it worked a treat.
Re: Ubuntu Linux and Sleepyhead
yay! another working linux.MINItron wrote:I had previously installed the 0.9.2 from a .deb. Apparently something was hanging around from that installation that was causing it to run as 0.9.2 even though I was compiling 0.9.7. I went through and deleted everything I could find from the previous installation, recompiled again, and now it works. I will say that it didn't want to import my data at first. I had to import it a couple of times for it to recognize the machine data on my sd card. Once it finally imported my data it worked a treat.
now all you have to do is a git pull now and again, and make.
do *not* do what I did once, (just the once) and do a make -j without a number... at least, not unless you've got more memory than I do... finally ended up rebooting...
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.
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.
Re: Ubuntu Linux and Sleepyhead
I'll stick with "make -j3" I do have a dual core 64bit AMD processor. I'll see if my import in the morning is as problematic as the first import tonight.
The worst part is I have spent the last 18 years maintaining the avionics on Navy aircraft. For the last 6+ years that has included Linux, network admin, router maintenance, satellite internet and other crazy computer nonsense. I still have trouble making these darn things do what I want.
The worst part is I have spent the last 18 years maintaining the avionics on Navy aircraft. For the last 6+ years that has included Linux, network admin, router maintenance, satellite internet and other crazy computer nonsense. I still have trouble making these darn things do what I want.