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 dosn't compile (undef ref)
#1
oscar dosn't compile (undef ref)
i tried to compile oscar in debian, but it did not work.
could it be a missing package or something ?

Code:
/usr/bin/ld: main.o: in function `main':
main.cpp:(.text.startup+0x1ce8): undefined reference to `HighResolution::init()'
/usr/bin/ld: main.cpp:(.text.startup+0x1d7d): undefined reference to `HighResolution::init(HighResolution::HiResolutionMode)'
/usr/bin/ld: main.cpp:(.text.startup+0x1d8e): undefined reference to `HighResolution::init(HighResolution::HiResolutionMode)'
/usr/bin/ld: main.cpp:(.text.startup+0x1d99): undefined reference to `HighResolution::isEnabled()'
/usr/bin/ld: main.cpp:(.text.startup+0x2259): undefined reference to `HighResolution::display(bool)'
/usr/bin/ld: mainwindow.o: in function `MainWindow::CloseProfile()':
mainwindow.cpp:(.text+0x109d): undefined reference to `CheckUpdates::showMessage()'
/usr/bin/ld: mainwindow.o: in function `MainWindow::CheckForUpdates(bool)':
mainwindow.cpp:(.text+0x14dd): undefined reference to `CheckUpdates::CheckUpdates(QWidget*)'
/usr/bin/ld: mainwindow.o: in function `MainWindow::OpenProfile(QString, bool)':
mainwindow.cpp:(.text+0xb16a): undefined reference to `CheckUpdates::showMessage()'
/usr/bin/ld: mainwindow.o: in function `MainWindow::CheckForUpdates(bool)':
mainwindow.cpp:(.text+0x14f7): undefined reference to `CheckUpdates::checkForUpdates(bool)'
/usr/bin/ld: preferencesdialog.o: in function `PreferencesDialog::Save()':
preferencesdialog.cpp:(.text+0x350e): undefined reference to `HighResolution::checkBox(bool, QCheckBox*)'
/usr/bin/ld: preferencesdialog.o: in function `PreferencesDialog::PreferencesDialog(QWidget*, Profile*)':
preferencesdialog.cpp:(.text+0xae66): undefined reference to `HighResolution::checkBox(bool, QCheckBox*)'
/usr/bin/ld: prs1_loader.o: in function `PRDS2File::initializeKey()':
prs1_loader.cpp:(.text+0xedf): undefined reference to `decrypt_aes256(QByteArray const&, QByteArray const&, QByteArray&)'
/usr/bin/ld: prs1_loader.cpp:(.text+0xf0f): undefined reference to `pbkdf2_sha256(QByteArray const&, QByteArray const&, int, QByteArray&)'
/usr/bin/ld: prs1_loader.cpp:(.text+0xf2f): undefined reference to `decrypt_aes256_gcm(QByteArray const&, QByteArray const&, QByteArray const&, QByteArray const&, QByteArray&)'
/usr/bin/ld: prs1_loader.o: in function `PRDS2File::decryptData()':
prs1_loader.cpp:(.text+0x11367): undefined reference to `decrypt_aes256_gcm(QByteArray const&, QByteArray const&, QByteArray const&, QByteArray const&, QByteArray&)'
/usr/bin/ld: prs1_loader.cpp:(.text+0x11542): undefined reference to `encrypt_aes256_gcm(QByteArray const&, QByteArray const&, QByteArray const&, QByteArray&, QByteArray&)'
/usr/bin/ld: moc_checkupdates.o: in function `CheckUpdates::qt_metacall(QMetaObject::Call, int, void**)':
moc_checkupdates.cpp:(.text+0xe7): undefined reference to `CheckUpdates::replyFinished(QNetworkReply*)'
/usr/bin/ld: moc_checkupdates.o: in function `CheckUpdates::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
moc_checkupdates.cpp:(.text+0x30): undefined reference to `CheckUpdates::replyFinished(QNetworkReply*)'
/usr/bin/ld: moc_checkupdates.o:(.data.rel.ro._ZTV12CheckUpdates[_ZTV12CheckUpdates]+0x28): undefined reference to `CheckUpdates::~CheckUpdates()'
/usr/bin/ld: moc_checkupdates.o:(.data.rel.ro._ZTV12CheckUpdates[_ZTV12CheckUpdates]+0x30): undefined reference to `CheckUpdates::~CheckUpdates()'
/usr/bin/ld: moc_checkupdates.o:(.data.rel.ro._ZTV12CheckUpdates[_ZTV12CheckUpdates]+0x1c8): undefined reference to `non-virtual thunk to CheckUpdates::~CheckUpdates()'
/usr/bin/ld: moc_checkupdates.o:(.data.rel.ro._ZTV12CheckUpdates[_ZTV12CheckUpdates]+0x1d0): undefined reference to `non-virtual thunk to CheckUpdates::~CheckUpdates()'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:586: OSCAR] Error 1
make[1]: Leaving directory '/home/user/OSCAR/build/oscar'
make: *** [Makefile:47: sub-oscar-make_first-ordered] Error 2
Post Reply Post Reply
#2
RE: oscar dosn't compile (undef ref)
I had the error but if you compile as a fresh install, it works well.
You just have to delete all the temporary files.
From France. English spoken. Equipped since end of 2009. ResMed AirSense 10 Autoset since November 2023.
Linux user since 2009 --> current main distribution : Xubuntu 22.04 (laptop)
LUG (named ALDIL) Member since 2015. certifications : ITIL© and ISTQB©


Post Reply Post Reply
#3
RE: oscar dosn't compile (undef ref)
Are you trying to build with Qt 5.15.2? Also, if you are attempting to build it in the same directory that produced the errors, try running, "make clean" first.

- 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
#4
RE: oscar dosn't compile (undef ref)
with qt 5.15.10 (it worked)
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Compile environment setup help robbob2112 3 889 08-09-2023, 03:08 PM
Last Post: robbob2112


New Posts   Today's Posts


About Apnea Board

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