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

Building SleepyHead on Linux
#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
Post Reply Post Reply
#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...


Post Reply Post Reply
#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.

Post Reply Post Reply
#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 OSCAR CPAP 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.
Post Reply Post Reply
#25
RE: Building SleepyHead on Linux
I built the OpenGL version of SH.
Post Reply Post Reply
#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!
Post Reply Post Reply
#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.
Post Reply Post Reply
#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
Post Reply Post Reply
#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
Post Reply Post Reply
#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.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  A couple of hints for building OSCAR on Windows chrisxkeith 1 228 10-15-2024, 11:37 AM
Last Post: Crimson Nape
  Linux Mint 22 grioghair 18 1,036 08-27-2024, 12:44 AM
Last Post: untoutseul05
  Is there a solution to read out the newer versions of the Contect CMS50F under Linux? Mast04 13 2,038 07-22-2024, 01:02 AM
Last Post: Pierelly
  Oscar 1.5.3 for Linux freezes after clicking on 'CPAP Importer'. Mast04 13 1,114 05-04-2024, 02:11 AM
Last Post: Mast04
  OSCAR v1.5.2 - Linux Versions Crimson Nape 3 583 03-17-2024, 02:35 PM
Last Post: Crimson Nape
  What version of Linux for my Chromebook? bluetangle127 1 702 10-26-2023, 10:54 AM
Last Post: Crimson Nape
  F12/Take Screenshot Not Saving Screenshot under Linux? DigitalMan43 4 1,026 09-30-2023, 05:04 PM
Last Post: DigitalMan43


New Posts   Today's Posts


About Apnea Board

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