03-13-2016, 01:18 PM
(This post was last modified: 03-13-2016, 01:18 PM by GuyM.)
RE: Building SleepyHead on Linux
(03-13-2016, 12:36 PM)pholynyk Wrote: 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.
Thanks for your help pholynyk. My output is below
guy@guy-desktop ~ $ qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /home/guy/anaconda2/lib
By the way, the anaconda2/lib is related to an online course I'm taking trying to learn Python programming. Do I need to uninstall something related to that?
RE: Building SleepyHead on Linux
Whew! It's guaranteed that SleepyHead won't build or run with QT4! Until you can upgrade to a distribution with a newer QT5, I'm afraid you won't be able to build SleepyHead.
But you should probably complete your Python course before you make changes.
RE: Building SleepyHead on Linux
(03-13-2016, 01:29 PM)pholynyk Wrote: Whew! It's guaranteed that SleepyHead won't build or run with QT4! Until you can upgrade to a distribution with a newer QT5, I'm afraid you won't be able to build SleepyHead.
But you should probably complete your Python course before you make changes.
At least it's something simple. One of these days I hope to be better in this Linux environment so I don't have to ask such dumb questions! Thanks again for your help.
RE: Building SleepyHead on Linux
I have tried compiling SleepyHead according to the instructions at the beginning of this thread on 2 different machines running Ubuntu 14.04. In both instances the subdirectory "sleepyhead" is not created and there is no executable "SleepyHead". I get 2 errors at the end of the compile:
make[1]: *** [prs1_loader.o] Error 1
make[1]: *** Waiting for unfinished jobs....
SleepLib/loader_plugins/resmed_loader.cpp: In member function ‘void ResmedLoader::ToTimeDelta(Session*, EDFParser&, EDFSignal&, ChannelID, long int, qint64, EventDataType, EventDataType, bool)’:
SleepLib/loader_plugins/resmed_loader.cpp:2917:32: warning: ‘c’ may be used uninitialized in this function [-Wmaybe-uninitialized]
tmp = EventDataType© * es.gain;
^
make[1]: Leaving directory `/home/jim/shbuild/sleepyhead-code/sleepyhead'
make: *** [sub-sleepyhead-make_first-ordered] Error 2
Does anyone know what could cause this problem?
RE: Building SleepyHead on Linux
You left off the critical preceding lines which mention that there is no removeAll function for the particular class.
The hazards of working with beta source code I'm afraid; I'm assuming Jedimark will fix that tonight or tomorrow. That prd1_loader is code he is working on right now.
RE: Building SleepyHead on Linux
Thanks Pholynyk. I recompiled using v0.9.8 and it now works fine.
RE: Building SleepyHead on Linux
try git remote set-url origin
http://gitlab.jedimark.net/code/sleepyhead.git
then git pull and make
RE: Building SleepyHead on Linux
Further investigation indicates that QT 5.4 is probably the minimum version that will compile SH 1.0.0-beta.
My Debian Jessie stable has 5.3, but Jessie testing has 5.5, so I will do that upgrade and report back.
RE: Building SleepyHead on Linux
Just reporting a successful build of SleepyHead1.0.0-beta-1 on Ubuntu15.10. OpenGL build. Everything seems to be "mostly ok". I had an issue with the Overview mode, where the scroll bar failed to update the display. Actually nothing updated the display in that mode. Discovered debug mode, which showed nothing. However once debug mode was entered the Overview Mode worked as intended. And it continued to work after I exited debug mode. I seem to have occasional text problems in the graphs and tool tips. Some characters are missing or blocky. Would broken GL fix that?