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

Building OSCAR
#1
Building OSCAR
Pardon me if this is the wrong place to ask, but I am trying to build OSCAR on Ubuntu 18.04.  I cloned the repo, made a build directory and ran qmake successfully.  I installed all of the listed dependencies.  The make failed when linking.  It appears that /usr/bin/ld: cannot find -lGL.  I cannot find a library called libgl.  Can someone point me in the right direction?

In the past, I've been able to compile Sleepyhead.  Perhaps, I've gotten a bit rusty at this.  Any and all help would be greatly appreciated.
Post Reply Post Reply



Donate to Apnea Board  
#2
RE: Building OSCAR
You need libgl1.so to finish the build.

If you look in the Building folder for Linux, you can study mkDebian9.sh - the difference is that Ubuntu has QT 5.9 instead of 5.7. It has the dependencies you'll need.

Don't use the two .sh files that link and remove the OSCAR file - they don't do the right thing.

I'll be posting a new build file shortly after I finish testing it. It will be in the next release.
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.
Post Reply Post Reply
#3
RE: Building OSCAR
I'll take a look in the mkDebian9.sh.  On the left is the dependency, on the right is the version that is installed in my system.

    --depends 'libqt5core5a > 5.7.0'   --> 5.9.5+dfsg-0ubuntu2.1
    --depends libqt5serialport5           --> 5.9.5-0ubuntu1
    --depends libqt5xml5                   --> 5.9.5+dfsg-0ubuntu2.1
    --depends libqt5network5             --> 5.9.5+dfsg-0ubuntu2.1
    --depends libqt5gui5                    --> 5.9.5+dfsg-0ubuntu2.1
    --depends libqt5widgets5             --> 5.9.5+dfsg-0ubuntu2.1
    --depends libqt5opengl5               --> 5.9.5+dfsg-0ubuntu2.1
    --depends libqt5printsupport5       --> 5.9.5+dfsg-0ubuntu2.1
    --depends libglu1-mesa                --> 9.0.0-2.1build1
    --depends libgl1                           --> 1.0.0-2ubuntu2.3

The build failed with the above libraries in place.  I think the problem might be that I have libGL.so.1, and libGL.so.1.0.0, but not libGL.so in my /usr/lib/x86_64-linux-gnu directory.  So, do I need to make a link of some sort?  If so, what would the command be?  

I did not edit the Makefile, so whatever it said to do, it tried to do it.  If that included the .sh files to move and link directories, then it would have tried it if the build succeeded.  Perhaps it was good that there was a linking failure.

It sounds like there is still some testing going on.  I can wait, if you think that it is better to do so.

Just for completeness, the last line of the build was:
g++ -Wl,-O1 -o OSCAR common_gui.o cprogressbar.o daily.o exportcsv.o main.o mainwindow.o newprofile.o overview.o preferencesdialog.o profileselect.o reports.o sessionbar.o updateparser.o UpdaterWindow.o gFlagsLine.o gFooBar.o gGraph.o gGraphView.o glcommon.o gLineChart.o gLineOverlay.o gSegmentChart.o gspacer.o gStatsLine.o gSummaryChart.o gXAxis.o gYAxis.o layer.o calcs.o common.o day.o event.o machine.o machine_loader.o preferences.o profiles.o schema.o session.o cms50_loader.o icon_loader.o intellipap_loader.o mseries_loader.o prs1_loader.o resmed_loader.o somnopose_loader.o zeo_loader.o translation.o statistics.o oximeterimport.o serialoximeter.o md300w1_loader.o gSessionTimesChart.o logger.o machine_common.o weinmann_loader.o gdailysummary.o MinutesAtPressure.o journal.o progressdialog.o cms50f37_loader.o profileselector.o edfparser.o aboutdialog.o welcome.o qrc_Resources.o moc_daily.o moc_exportcsv.o moc_mainwindow.o moc_newprofile.o moc_overview.o moc_preferencesdialog.o moc_profileselect.o moc_sessionbar.o moc_UpdaterWindow.o moc_gGraph.o moc_gGraphView.o moc_machine_loader.o moc_cms50_loader.o moc_icon_loader.o moc_prs1_loader.o moc_resmed_loader.o moc_statistics.o moc_oximeterimport.o moc_serialoximeter.o moc_md300w1_loader.o moc_logger.o moc_progressdialog.o moc_cms50f37_loader.o moc_profileselector.o moc_aboutdialog.o moc_welcome.o moc_mytextbrowser.o   -lX11 -lz -lGLU -lQt5PrintSupport -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Xml -lQt5SerialPort -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile:485: recipe for target 'OSCAR' failed
make[1]: *** [OSCAR] Error 1
make[1]: Leaving directory '/home/bruce/Apps/build/oscar'
Makefile:44: recipe for target 'sub-oscar-make_first-ordered' failed
make: *** [sub-oscar-make_first-ordered] Error 2
Post Reply Post Reply
#4
RE: Building OSCAR
On my Ubuntu system, libGL.so* is found in /usr/lib/x86_64-linux-gnu - if yours is a 32 bit system, it will be /usr/lib/x86_32-linux-gnu

if you do >>dpkg -S libGL.so<< it will tell you which package to install (it should be libgl1:amd64 or libgl1:i386) and where it will be put - as above
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.
Post Reply Post Reply



Donate to Apnea Board  
#5
RE: Building OSCAR
Following up on this, here is the output of the command.
Code:
$ dpkg -S libGL.so
libgl1:i386: /usr/lib/i386-linux-gnu/libGL.so.1.0.0
libgl1:amd64: /usr/lib/x86_64-linux-gnu/libGL.so.1
libglvnd-dev:amd64: /usr/lib/x86_64-linux-gnu/libGL.so
libgl1:amd64: /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
libgl1:i386: /usr/lib/i386-linux-gnu/libGL.so.1
I do have libGL.so.1 installed, but not libGL.so.  I am running a 64 bit system.  Do I install libglvnd-dev?  Or make a link from libGL.so.1 to libGL.so?  Sorry, this linking stuff confuses me.  Grateful for your guidance so far.
Post Reply Post Reply
#6
RE: Building OSCAR
You probably do have a link from libGL.so.1 to libGL.so already. To check -

ls -l /usr/lib/x86_64-linux-gnu/libGL.so* and
ls -l /usr/lib/i386-linux-gnu/libGL.so*

It doesn't really matter what follows the .so - all version should work
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.
Post Reply Post Reply
#7
RE: Building OSCAR
(08-29-2019, 10:32 AM)pholynyk Wrote: You probably do have a link from libGL.so.1 to libGL.so already. To check -

ls -l /usr/lib/x86_64-linux-gnu/libGL.so* and
ls -l /usr/lib/i386-linux-gnu/libGL.so*

It doesn't really matter what follows the .so - all version should work

Code:
$ ls -l /usr/lib/x86_64-linux-gnu/libGL.so*
lrwxrwxrwx 1 root root     14 Jul 15 13:25 /usr/lib/x86_64-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 567624 May 10 08:17 /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
$ ls -l /usr/lib/i386-linux-gnu/libGL.so*
lrwxrwxrwx 1 root root     14 Jul 15 13:25 /usr/lib/i386-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 390680 May 10 08:17 /usr/lib/i386-linux-gnu/libGL.so.1.0.0

If this is true, then why did the linking fail in:  /usr/bin/ld: cannot find -lGL ?
Post Reply Post Reply



Donate to Apnea Board  


Possibly Related Threads...
Thread Author Replies Views Last Post
Idea OSCAR is born, here your wishes, suggestions and heads-up! A KLERK 96 3,377 09-18-2019, 08:02 PM
Last Post: Sheepish
  Oscar setup saltydawg2 4 85 09-18-2019, 12:23 AM
Last Post: jaswilliams
  OSCAR Data folder choice supersleepymedic 4 113 09-17-2019, 06:41 PM
Last Post: supersleepymedic
Surprised Oscar / Resmed S9 / Unlocked SD Card problem eugene.robitaille 5 175 09-16-2019, 02:45 PM
Last Post: Sheepish
  OSCAR color settings? Cattaur 6 168 09-15-2019, 10:40 AM
Last Post: pholynyk
  Problem Data Import OSCAR perler242 5 151 09-15-2019, 09:35 AM
Last Post: perler242
  OSCAR related questions Arik 1 97 09-13-2019, 12:37 PM
Last Post: jaswilliams


New Posts   Today's Posts






About Apnea Board

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