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

OSCAR build errors on MacOS
#1
OSCAR build errors on MacOS
I have just downloaded the source code for OSCAR onto my Macbook with QT version 5.15.8_1.
During the build I received several errors saying that variables were set but unused.
As I am currently unfamiliar with the OSCAR software I do not know the best way to fix the errors.
I simply added "[[maybe_unused]]" at the appropriate places.

Here are the changes I made:

oscar/SleepLib/machine_loader.cpp:320: int i, skipped [[maybe_unused]] = 0;

oscar/SleepLib/calcs.cpp:1497: int cnt [[maybe_unused]] = 0;

oscar/SleepLib/machine.cpp:1146: int cnt [[maybe_unused]] = 0;

oscar/SleepLib/loader_plugins/sleepstyle_loader.cpp:682: int nblock [[maybe_unused]] = 0;

oscar/SleepLib/loader_plugins/sleepstyle_loader.cpp:926: long PRSessCount [[maybe_unused]] = 0;

oscar/Graphs/MinutesAtPressure.cpp:466: int qtyEvents [[maybe_unused]] = 0;

oscar/Graphs/gGraphView.cpp:1417: int pinned_graphs [[maybe_unused]] = 0; // count
oscar/reports.cpp:537: int gcnt [[maybe_unused]] = 0;

After making the updates the build appeared to complete successfully and I could start OSCAR.

I am unable to test OSCAR further because I do not have any data.
I have just been diagnosed with Sleep Apnea and will only receive a CPAP machine (probably Löwenstein Prisma) at the beginning of September.
After that I should be able to test my build further.

I hope this information is helpful to you.
Best Regards,
JEMH
Post Reply Post Reply
#2
RE: OSCAR build errors on MacOS
The OSCAR code was configured for Qt v5.15.2 for building. Your problems are probably a result of using a newer version.

- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
#3
RE: OSCAR build errors on MacOS
I had the same behavior with Qt v5.15.2.
Perhaps its due to the compiler version.
Xcode command line tools version: 14.3.1.0.1.1683849156
This causes me no difficulties, it is simply for your information.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Can't run OSCAR in macOS v15.1 williamvv 2 143 11-14-2024, 05:22 AM
Last Post: williamvv
  Latest MacOS will not allow OSCAR to run snorkler 6 535 11-14-2024, 05:17 AM
Last Post: williamvv
Information EzShareApp - CPAP Data Downloader from EzShare SD card for macOS adrianfeeger 24 1,011 11-07-2024, 11:18 PM
Last Post: walshy1009
  scrolling issues in OSCAR 1.5.1 for macOS leonking 3 1,050 02-07-2024, 09:48 PM
Last Post: apapnoob
  Buidling OSCAR on macOS Sonoma (14.2.1) hisaotsu 2 791 01-08-2024, 11:33 AM
Last Post: Crimson Nape
  Is it possible to build OSCAR in Qt-Creator? JEMH 4 669 10-20-2023, 11:29 AM
Last Post: JEMH
  SD Card errors/OSCAR....all new to me TomWii 11 1,968 09-23-2023, 04:02 PM
Last Post: Crimson Nape


New Posts   Today's Posts


About Apnea Board

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