Building OSCAR Ubuntu 20.04 - Printable Version +- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums) +-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area) +--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum) +--- Thread: Building OSCAR Ubuntu 20.04 (/Thread-Building-OSCAR-Ubuntu-20-04) |
Building OSCAR Ubuntu 20.04 - happydreams - 10-07-2020 Today I finally upgraded to 20.04 Ubuntu from 18.04. Now OSCAR doesn't run. Just crashes. So I thought I'd build it from source. Followed the instructions, made the directories, cloned the repo, etc. Seemed to build ok. No errors. No crazy warnings (or at least I think so). The exit to make was make[1]: Leaving directory ....../oscar So I found the executable and typed ./OSCAR & Output as follows: Code: ~/Apps/OSCAR/buildoscar/oscar$ 00000: Debug: Started logging thread RE: Building OSCAR Ubuntu 20.04 - pholynyk - 10-07-2020 It would be simpler to download the Unbutu20 version of OSCAR and install it. It ought to work, and I'd like to hear whether it does or not. On the other hand, you'll never learn if you don't try... so Here is what it was about to display: Code: 00162: Debug: OSCAR 1.2.0-rc.2+1faaf625 (linux x86_64) Without at least a stack dump and the loader map, it can be quite difficult . RE: Building OSCAR Ubuntu 20.04 - jaswilliams - 10-08-2020 happy dreams it could be your graphics driver giving issues, press and hold shift whilst starting OSCAR and it should step back the graphics driver used RE: Building OSCAR Ubuntu 20.04 - happydreams - 10-08-2020 pholynyk So... are you saying to add a delay after each qDebug().noquote() statement after initializeLogger()? I've built Sleepyhead and OSCAR before, just not on 20.04. Could be I am missing something. I'd rather build the app, if at all possible. Is it better to post these kinds of questions to gitlab, or here? RE: Building OSCAR Ubuntu 20.04 - happydreams - 10-08-2020 At the moment using nvidia-driver-418 meta package. I could go back to 390. Nouveau won't render Chromium properly at all. Never had a problem with opengl before. RE: Building OSCAR Ubuntu 20.04 - happydreams - 10-08-2020 Changed video driver to 390. Now it just hangs after 00171: Debug: Using System Tray for Menu. No window pops up at all. Code: $ cd Apps/OSCAR/buildoscar/oscar Probably don't have all the pre-requisites, or my version of QT stuff is newer and doesn't work. I'll dig some more. RE: Building OSCAR Ubuntu 20.04 - pholynyk - 10-08-2020 Another way to find the seg fault is to run OSCAR with gdb, and then use the stack trace command and the loader map to find the exact location of the seg faulting instruction. You'll have to edit the oscar.pro file to force the loader to create the map. Failing that, adding a lot of sleep(1) calls may be the easiest way to find the problem statement. Trying the existing deb file would isolate the problem to something in your build process or system. If the distributed deb package won't run for you, then we have a different problem. RE: Building OSCAR Ubuntu 20.04 - happydreams - 10-08-2020 Another way to find the seg fault is to run OSCAR with gdb, and then use the stack trace command and the loader map to find the exact location of the seg faulting instruction. You'll have to edit the oscar.pro file to force the loader to create the map. Afraid using gdb on an unfamiliar code base, will lead me down a path I don't want to go. Just not that good of a coder. However, I may try it, simply due to my tenaciousness. (Nice way of saying stubborn, isn't it? ) Just found something interesting. When I opened QT Creator, (double click on OSCAR_QT.pro) I got an error. It says the following plugins had errors and cannot be loaded. QmlDesigner, and QmlProfiler. The details state: Plugin initialization failed: Cannot create OpenGL context. Also curious is an unchecked box stating QT 5.4.2 is in PATH! This is strange! My actual path does not show QT anything. Qt Creator 4.11.0, based on Qt 5.12.8 (gcc 9.3.0 64 bit) The kit that is selected is Desktop /home/xxx/Apps/OSCAR/build-OSCAR_QT-Desktop-Debug /home/xxx/Apps/OSCAR/build-OSCAR_QT-Desktop-Release /home/xxx/Apps/OSCAR/build-OSCAR_QT-Desktop-Profile None of these locations exist, hidden or otherwise! Now, I have no idea how to deal with QT Creator, so this all could be a red herring. Make files, I do understand and have used to build large projects. I have installed all the packages listed in BUILD_Linux.md. I do have (for a long time now) opengl 2.0. I built Sleepyhead with opengl2 without issue. I will try the deb for fault isolation. RE: Building OSCAR Ubuntu 20.04 - happydreams - 10-08-2020 deb file does not work either. When launched, I got a window that stated Additional MIME Types Required An application is requesting additional file support So I clicked OK. This automatically bumped me into the Ubuntu SW app which stated: Unable to Find Requested Software Unfortunately the application/x-sharedlib file format you were searching for could not be found. Now if I try to run OSCAR (from the deb file) I just get a seg fault. (core dumped) ./OSCAR Not good. I presume the deb file installs to /usr/bin/OSCAR, because that is what I ran! June 2, 17:11 file date RE: Building OSCAR Ubuntu 20.04 - sawinglogz - 10-08-2020 (10-08-2020, 09:37 AM)happydreams Wrote: Another way to find the seg fault is to run OSCAR with gdb, and then use the stack trace command and the loader map to find the exact location of the seg faulting instruction. You'll have to edit the oscar.pro file to force the loader to create the map. The simplest way to do this (without falling down that rabbit hole) is: Code: gdb OSCAR And let us know what the stack trace says. You can also run qmake with "CONFIG+=memdebug" and it will compile with ASAN, which checks for out-of-bounds memory errors, double-frees, etc. |