re-compile cef as relocatable

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

re-compile cef as relocatable

Postby tgayet » Mon Dec 16, 2019 8:30 am

Hi,

I would have liked to know as a CEF compilation so as to make it relocatable?

Indeed when I compile CEF on a computer it works but when I move elsewhere, it does not work anymore and I have a crash.

If I recompile CEF on a second computer it works.

I think there is a way to make CEF relocatable so as to have a binary independent of the target.

Is there a flag, a method to do this?

Thanks in advance

Thierry
tgayet
Techie
 
Posts: 27
Joined: Wed Apr 24, 2019 6:53 am

Re: re-compile cef as relocatable

Postby Czarek » Mon Dec 16, 2019 9:04 am

I suggest you take a look at cefsimple / cefclient sample applications. Or do you have issues with these as well?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: re-compile cef as relocatable

Postby tgayet » Mon Dec 16, 2019 9:25 am

Hi again.

It works with cefsimple.

I do not use simplecef nor cefclient but my own binary which links with libcef.so through the wrapper.

Usually it is customary to provide the -fPIC flag to the linker (need with dynamic library) to make it independent from one computer to another.

Do you use specific flags?

Regards

Thierry
tgayet
Techie
 
Posts: 27
Joined: Wed Apr 24, 2019 6:53 am

Re: re-compile cef as relocatable

Postby Czarek » Mon Dec 16, 2019 9:30 am

Try adding linker flags: -Wl,-rpath,. -Wl,-rpath,"\$$ORIGIN". You can find these flags are used in cefsimple / cefclient apps.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 26 guests