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

ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. #9409

Closed
rahulsharma11 opened this issue May 4, 2018 · 17 comments

Comments

@rahulsharma11
Copy link

rahulsharma11 commented May 4, 2018

Hi, I have just upgrade to Ubuntu18. From then whenever i build the px4 firmware i got the error-
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Is this really due to Ubuntu Upgradation? How can i solve it?
Thanks

@dagar
Copy link
Member

dagar commented May 4, 2018

Yes this is likely Ubuntu updated related.

What are you running exactly? PX4 itself shouldn't be using gtk3, is that from gazebo?

@rahulsharma11
Copy link
Author

Hi, Its not from gazebo. I am building px4fmu-v2_default.

@dagar
Copy link
Member

dagar commented May 4, 2018

Exactly when do you see the error? Screenshot?

@rahulsharma11
Copy link
Author

After running make px4fmu-v2_default,
px4error

@dagar
Copy link
Member

dagar commented May 4, 2018

Weird. Did you do a fresh install of Ubuntu 18.04 or an upgrade from an older release?

@rahulsharma11
Copy link
Author

I upgraded from previous 17.10

@rahulsharma11
Copy link
Author

Hi,
Any suggestion?

@benVolatiles
Copy link

I get the same error after updating to Ubuntu 18.04 when building our firmware (completely unrelated to PX4) too, so I'd say this is a bug in Ubuntu.

The firmware build is completely unaffected by this nuisance.

@rahulsharma11
Copy link
Author

Ok. Thanks for the confirmation.

@imambungo
Copy link

I solved the same issue by adding the following line in .bashrc file in my home folder:

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0

Make sure you have libgtk3-nocsd.so.0 in /usr/lib/x86_64-linux-gnu/
If you didn't have it, try sudo apt-get install gtk3-nocsd

@worstprogrammerCN
Copy link

I solved the same issue by adding the following line in .bashrc file in my home folder:

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0

Make sure you have libgtk3-nocsd.so.0 in /usr/lib/x86_64-linux-gnu/
If you didn't have it, try sudo apt-get install gtk3-nocsd

That works for me. Besides, you can run find /usr -name libgtk3-nocsd.so.0 -print to find it.

@imambungo
Copy link

Happy to help 😊

@neokos90
Copy link

I had the same problem and this solve helped me too. Thanks!

@wizardion
Copy link

It is helped with me too! Thanks!

DictumMortuum added a commit to DictumMortuum/dotfiles that referenced this issue May 6, 2019
@SPlatten
Copy link

I was running Ubuntu 16.04 in a virtual machine on iMAC, I stupidly updated to 18.04 and now I'm getting these issues, unfortunately none of the fixes I've found so far have helped and I don't have the folder /usr/lib/x86_64-linux-gnu, could this be because I'm on an iMAC ?

@Bost
Copy link

Bost commented Jul 23, 2019

See also lutris/lutris#905 (comment)

@Syed-Mohammad-Nasir-Hussain

There are lot of .bashrc files,which one has to be selected and moreover when trying to edit and save file its saying you dont have access for writing the file

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

No branches or pull requests

10 participants