Using CEF x32 alongside CEF x64. Release naming problems.

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Using CEF x32 alongside CEF x64. Release naming problems.

Postby akaltar » Wed Jun 22, 2016 7:54 am

I have a program which has an x64 and x32 binary in the same folder. Both the Debug and Release x32 and x64 versions of the CEF project have the same DLL name: libcef.dll

How am I supposed to be able to launch my program from the same folder for both x64 and x32?(Prefereably both Debug and Release)
akaltar
Techie
 
Posts: 11
Joined: Wed Jun 22, 2016 7:48 am

Re: Using CEF x32 alongside CEF x64. Release naming problems

Postby magreenblatt » Wed Jun 22, 2016 10:22 am

You can't mix x86/x64 or Debug/Release binaries in the same directory.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Using CEF x32 alongside CEF x64. Release naming problems

Postby akaltar » Thu Jun 23, 2016 3:47 am

And what is the official way of doing this? Separate folders?

I have checked other programs that seem to use libcef from both x64 and x32. (Steam), they too only have 1 libcef.dll, so I assume they use only x32 version from x64 apps too. How would this be possible?
akaltar
Techie
 
Posts: 11
Joined: Wed Jun 22, 2016 7:48 am

Re: Using CEF x32 alongside CEF x64. Release naming problems

Postby amaitland » Thu Jun 23, 2016 6:25 am

You cannot load a 32bit dll into a 64bit app and vice versa.

Usually you'd use a directory structure to represent such a scenario

x86\debug
x86\release
x64\debug
x64\release

In visual studio at least you'd set your output folder to `bin\$(Configuration)\$(Platform)`. Use a post build task to copy the appropriate dependencies into those folders.

I'm sure other development environments have something similar.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 59 guests