Apnea Board Forum - CPAP | Sleep Apnea
SleepyHead 1.0.0 Linux - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: SleepyHead 1.0.0 Linux (/Thread-SleepyHead-1-0-0-Linux)

Pages: 1 2 3 4


SleepyHead 1.0.0 Linux - kazoni - 04-01-2016

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!


RE: SleepyHead 1.0.0 Linux - Crimson Nape - 04-01-2016

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/



RE: SleepyHead 1.0.0 Linux - AlanE - 04-01-2016

(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.



RE: SleepyHead 1.0.0 Linux - kazoni - 04-01-2016

(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!



RE: SleepyHead 1.0.0 Linux - happydreams - 04-09-2016

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.


RE: SleepyHead 1.0.0 Linux - kazoni - 04-12-2016

(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.


RE: SleepyHead 1.0.0 Linux - palerider - 04-12-2016

5.2.1 may be a too old version of qt5. it works fine with 5.4.2, though.


RE: SleepyHead 1.0.0 Linux - pholynyk - 04-13-2016

(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.


RE: SleepyHead 1.0.0 Linux - kazoni - 04-13-2016

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


RE: SleepyHead 1.0.0 Linux - palerider - 04-13-2016

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