Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failing with -lOSMesa #30

Open
henryclever opened this issue Mar 20, 2019 · 20 comments
Open

Installation failing with -lOSMesa #30

henryclever opened this issue Mar 20, 2019 · 20 comments

Comments

@henryclever
Copy link

It seems today I am unable to install opendr. I've not had trouble with it in the past. When I install with pip, it gives the error /usr/bin/ld: cannot find -lOSMesa collect2: error: ld returned 1 exit status.

Also, I noticed that the mesa website seems to be down:
https://www.mesa3d.org/osmesa.html

Perhaps these two issues are linked? Has anyone else had this issue, and if so, what is the workaround?

Thanks!
Henry C.

@abeacco
Copy link

abeacco commented Mar 21, 2019

The same is happening here today.
Any ideas?

@henryclever
Copy link
Author

Today, it appears the mesa3D website is back up; however, the error remains.

H

@neonb88
Copy link

neonb88 commented Mar 23, 2019

Is OSMesa correctly installed on your machine? That seems to be what your error message is telling you.

-n8

@neonb88
Copy link

neonb88 commented Mar 23, 2019

Also, it would be very helpful if you could include machine information. For instance, are you trying to install with python2? python3? Version of OS you are using, etc. I'm sure there are forms online for specifying all the details.

@henryclever
Copy link
Author

Thanks for the response. I'll get back to you on Monday when I'm on my work machine that has this issue. -
H

@henryclever
Copy link
Author

henryclever commented Mar 26, 2019

Hi,

I've got the same problem on two separate machines. One has 16.04 and an Nvidia 1070Ti and the other with 14.04 and a 720. Both are using Python 2.7. My other machines where opendr works fine are matching 16.04/1070Ti machines and my laptop with has 14.04 and an Intel GPU. All Python 2.7.

I haven't build OSMesa from source on any of the computers I'm using where opendr was (and is) working.

I have run: sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev though and with no errors.

No errors when I run glxinfo | grep "OpenGL version".

I'll need to dig into this more to get other information, but if this helps you possibly ID the issue, it would be great!

Henry C.

@yyf8989
Copy link

yyf8989 commented Mar 27, 2019

same problem

@yyf8989
Copy link

yyf8989 commented Mar 27, 2019

It seems today I am unable to install opendr. I've not had trouble with it in the past. When I install with pip, it gives the error /usr/bin/ld: cannot find -lOSMesa collect2: error: ld returned 1 exit status.

Also, I noticed that the mesa website seems to be down:
https://www.mesa3d.org/osmesa.html

Perhaps these two issues are linked? Has anyone else had this issue, and if so, what is the workaround?

Thanks!
Henry C.

have you solved it?

@henryclever
Copy link
Author

It seems today I am unable to install opendr. I've not had trouble with it in the past. When I install with pip, it gives the error /usr/bin/ld: cannot find -lOSMesa collect2: error: ld returned 1 exit status.
Also, I noticed that the mesa website seems to be down:
https://www.mesa3d.org/osmesa.html
Perhaps these two issues are linked? Has anyone else had this issue, and if so, what is the workaround?
Thanks!
Henry C.

have you solved it?

No, I have not solved it.

-Henry C.

@henryclever
Copy link
Author

Got it installed, but required building from source.

clone the repo and then git checkout 17ad5c4. It's an earlier version but works fine for all I need.

Henry C.

@yyf8989
Copy link

yyf8989 commented Mar 28, 2019

Got it installed, but required building from source.

clone the repo and then git checkout 17ad5c4. It's an earlier version but works fine for all I need.

Henry C.

I solved it by installing llvm-8.0.0 and opendr from source.

@sudiptabiswas22
Copy link

sudiptabiswas22 commented Apr 3, 2019

@henryclever @yyf8989 can you please write down the detailed steps including every command? I used the following commands and apparently opendr is not getting installed in my virtual env.
sudo git clone "https://github.com/mattloper/opendr.git"
cd opendr
sudo git checkout 17ad5c4
sudo python setup.py install

Screenshot from 2019-04-03 16-31-59

@bylowerik
Copy link

bylowerik commented Apr 3, 2019

I had the same problem, tried Ubuntu 14,16 and 18, all with python2.7.

Then I used apt-cache search *osmesa* and found libosmesa6-dev which I installed.

pip install opendr worked flawless using a virtualenv with python 3.6.

Sometimes it is easy. :)

@ChenDRAG
Copy link

ChenDRAG commented Apr 4, 2019

I had the same problem, tried Ubuntu 14,16 and 18, all with python2.7.

Then I used apt-cache search *osmesa* and found libosmesa6-dev which I installed.

pip install opendr worked flawless using a virtualenv with python 3.6.

Sometimes it is easy. :)

It worked like magic! Thanks.

@sudiptabiswas22
Copy link

@bylowerik it is indeed magic. Thanks :)

@gsygsy96
Copy link

Sad.... the error still exits when I install under virtualenv. Anyone can help me?
My Operation:

  1. apt-cache search "osmesa"
  2. pip install opendr

@sudiptabiswas22
Copy link

sudiptabiswas22 commented Apr 12, 2019

@mehemeha998 have you installed libosmesa6-dev? You can download and install from the following link as well.
https://packages.debian.org/sid/libosmesa6-dev

@noranart
Copy link

Mine is solved by:
sudo apt-get install libosmesa6-dev
pip2 install opendr

@fhuzero
Copy link

fhuzero commented Jul 18, 2019

Mine is solved by:
sudo apt-get install libosmesa6-dev
pip2 install opendr

It works for me, too!

@shehan0
Copy link

shehan0 commented Mar 31, 2020

This worked for me.

sudo apt install libosmesa6-dev
sudo apt-get install build-essential
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
—————

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests