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
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
  scrolling issues in OSCAR 1.5.1 for macOS leonking 3 732 02-07-2024, 09:48 PM
Last Post: apapnoob
  Buidling OSCAR on macOS Sonoma (14.2.1) hisaotsu 2 547 01-08-2024, 11:33 AM
Last Post: Crimson Nape
  Is it possible to build OSCAR in Qt-Creator? JEMH 4 514 10-20-2023, 11:29 AM
Last Post: JEMH
  SD Card errors/OSCAR....all new to me TomWii 11 1,561 09-23-2023, 04:02 PM
Last Post: Crimson Nape
  macOS will not open OSCAR ? jrolli1509 6 1,157 02-12-2023, 07:49 PM
Last Post: biyahero
  macOS Ventura users please read Jeff8356 0 615 11-25-2022, 09:26 AM
Last Post: Jeff8356
Question macOS "The disk you attached was not readable by this computer." rolltide 5 1,721 05-18-2022, 10:17 AM
Last Post: rolltide


New Posts   Today's Posts


About Apnea Board

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