New computer - back to building OSCAR
Old laptop motherboard died. Ran for 3 weeks on a Raspberry Pi 4. Finally my new laptop arrived! Nice new, fast machine. Lots of cores. So to build OSCAR again.
Installed the dependencies. (Still Ubuntu 20.04.1 LTS) Did a fresh git clone. Build fails
Code: cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:2186: intellipap_loader.o] Error 1
Code: g++ -c -pipe -Werror -Wno-error=deprecated-declarations -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -Dhelpless -DQT_DEPRECATED_WARNINGS -DLOCK_RESMED_SESSIONS -D_TTY_POSIX_ -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I../../OSCAR-code/oscar -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mseries_loader.o ../../OSCAR-code/oscar/SleepLib/loader_plugins/mseries_loader.cpp
../../OSCAR-code/oscar/SleepLib/loader_plugins/intellipap_loader.cpp: In function ‘bool load6HighResData(const QString&)’:
../../OSCAR-code/oscar/SleepLib/loader_plugins/intellipap_loader.cpp:1450:37: error: taking address of packed member of ‘DV6_R_REC’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1450 | flow->AddWaveform(ti,R->breath,50,2000);
| ~~~^~~~~~
Any clues? I'm not even using the intellipap machine.
RE: New computer - back to building OSCAR
Are you building within Qt Creator or using the command line?
RE: New computer - back to building OSCAR
Oops! You're hitting a difference in compiler warnings. That error is in the new DeVilbiss support code. I'll fix it ASAP and let you know when there is new source code to test compile.
Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
RE: New computer - back to building OSCAR
ok, fix to intellipap loader has been merged. Please try again and let me know if there are any other errors.
Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
01-26-2021, 03:49 PM
RE: New computer - back to building OSCAR
Thumbs up! Built with no problem. Thanks
RE: New computer - back to building OSCAR
On Xubuntu 20.04.1 (Ubuntu with xfce GUI), it also works.
From France. English spoken. Equipped since end of 2009. ResMed AirSense 10 Autoset since November 2023.
Linux user since 2009 --> current main distribution : Xubuntu 24.04 (laptop & Desktop)
LUG (named ALDIL) Member since 2015. certifications : ITIL© and ISTQB©
RE: New computer - back to building OSCAR
To build an installation package for Ubuntu, does one mkDistDeb.sh? I really didn't understand the instructions in BUILD_Linux.md. From where does one invoke this? There is a notice to not cruft up things, but no guidance how to avoid it. I created a folder Packages under Apps/OSCAR. So from /Apps/OSCAR/Packages I would invoke $ ../OSCAR-code/Building/Linux/mkDistDeb.sh ?
These newer releases of Ubuntu make it very hard to manually create a working desktop launcher. Creating launchers was easy even 6 months ago. All the online instructions don't work anymore as the option in the right click menu is gone. I have 20.04.1 LTS.
RE: New computer - back to building OSCAR
When I build packages, I created a Packages folder, as you did, and then copied all the files in Building/Linux into it. They don't change very often, so I just leave them there. Then in Packages I do "./mkdistDeb.sh Ubun18" - as I build an 18.04 version, then do some tinkering to change a library dependency for 20.04 (I don't really like 20.04, so I've stayed with 18.04 for building.
I usually use Debian Buster/testing as my regular desktop, though.
RE: New computer - back to building OSCAR
Where can I find fpm?
mkDistDeb.sh fails fpm: command not found.
fpm isn't in the regular Ubuntu 20.04 repository. I found a repo on github, but not sure if there are various versions.
This newer version of Ubuntu 20.04.1 is getting on my nerves. Don't care for Gnome 3.36.8
RE: New computer - back to building OSCAR
From my notebook (I'll add it to the building file):
apt install ruby ruby-dev -- this will add a lot of stuff
gem install --no-document fpm --- this will do a lot of stuff
That should do it; sorry about the omission
|