mattloper / opendr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation failing with -lOSMesa

henryclever opened this issue · comments

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.

The same is happening here today.
Any ideas?

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

H

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

-n8

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.

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

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.

commented

same problem

commented

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?

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.

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.

commented

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.

@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

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. :)

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.

@bylowerik it is indeed magic. Thanks :)

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

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

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

commented

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

It works for me, too!

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
—————