CefSharp x64 builds

1,905 views
Skip to first unread message

Chinmay Kulkarni

unread,
Aug 13, 2013, 7:39:05 AM8/13/13
to cefs...@googlegroups.com
I see chromium x64 bit builds on this location


Is there any plan to build libcef and cefsharp as x64 bit binaries in near future ?

per.lu...@ecraft.com

unread,
Aug 20, 2013, 3:05:48 PM8/20/13
to cefs...@googlegroups.com
Hi,

Well, not too near I would say, but it's definitely an interesting idea. CEF seems to support x64 now:

https://code.google.com/p/chromiumembedded/issues/detail?id=394 - closed issue which requested x64 in CEF (closed as in "fixed")

But remember that this is yet only in trunk and the 1547 branch (see this page for info about the CEF branches: https://code.google.com/p/chromiumembedded/wiki/BranchesAndBuilding). As far as I can tell, the 1547 branch isn't "released" yet (there's at least no binary version of it).

I think we will definitely support x64 in the future, x86 is a dead end. It's just taking far too long to kill that platform. :-)
Once CEF is available and stable for x64, I don't see any big obstacle to us supporting it. We have already started the work towards CEF3 (see https://github.com/cefsharp/CefSharp/pull/136), so I don't believe supporting x64 is so hard once we have a binary of CEF3.1547 targetting x64 which we can link towards.

Best regards,
Per

Per Lundberg

unread,
Aug 28, 2013, 4:29:05 PM8/28/13
to cefs...@googlegroups.com
We now have binary builds of CEF, so the work could (theoretically) begin of porting Cefsharp to x64, which would of course be a very welcome improvement.
I created a Github issue out of it: https://github.com/cefsharp/CefSharp/issues/160

Feel free to take up the mantle if you want to give it a try. All you need is Visual Studio (2010 and/or 2012) and a bit of spare time. :)

Best regards,
Per

Chinmay Kulkarni

unread,
Aug 28, 2013, 11:08:18 PM8/28/13
to cefs...@googlegroups.com
This is great news! let me see if I can spare some time for doing this.



--
You received this message because you are subscribed to a topic in the Google Groups "CefSharp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cefsharp/rqyG1-ieIPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cefsharp+u...@googlegroups.com.
To post to this group, send email to cefs...@googlegroups.com.
Visit this group at http://groups.google.com/group/cefsharp.
For more options, visit https://groups.google.com/groups/opt_out.



--
Regards,
Kulkarni Chin
may

jasondou...@gmail.com

unread,
Sep 7, 2013, 2:02:46 PM9/7/13
to cefs...@googlegroups.com
Hello,

  I think an issue I am having is related to this discussion. I recently moved from 1.25.0 to 1.25.3.
  1.25.3 works fine for me, but now I am getting this issue on other user's machines:

  System.BadImageFormatException: Could not load file or assembly 'CefSharp.dll' or one of its dependencies.  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) File name: 'CefSharp.dll'


  I used Dependency Walker and noticed that now CefSharp.dll is using MSVCP110.dll and MSVCR110.dll whereas 1.25.0 was using *90.DLL. I copied these locally and it still did not work.


  The setup I had which worked for 1.25.0 was copying libcef.dll and icudt.dll with CefSharp and CefSharp.Wpf locally. Then I set PackLoadingDisabled to true in my code.


  Any ideas what might have changed / any additionally dependencies I need to include in my build? I greatly appreciate your time here,


Jason

Per Lundberg

unread,
Sep 9, 2013, 1:25:47 AM9/9/13
to cefs...@googlegroups.com
Hi,

Check the hint from https://github.com/cefsharp/CefSharp/issues/163. However, I think it sounds weird if you get a BadImageFormatException because of a missing DLL. To me, it sounds more like this is the problem:

1) Your C# program is compiled using "Any" as the processor target (which is the default in Visual Studio)

2) CEF and CefSharp are compiled for x86 only. (which is currently the case)

 3) You try to run the machine then on an x64 version of Windows.

If all of these premises are true, this could be the very problem you are seeing, especially if your development machine is a 32-bit Windows (that means it works for you, but not for other people who happen to run 64-bit Windows).

The suggested workaround is to compile your program for x86 specifically. We will not have a 64-bit version of CefSharp until https://github.com/cefsharp/CefSharp/issues/160 gets resolved - probably a few months from now, to be realistic. Perhaps Santa will have something ready for us all... :-)

Best regards,
Per

Jason Sears

unread,
Sep 10, 2013, 11:39:03 PM9/10/13
to cefs...@googlegroups.com
Hello Per,

  I appreciate your quick reply to my question and other developer's questions about CefSharp.
  1.25.0 was working fine with our current process architecture setup pointed to x86 for myself and other users. We are all on x64 builds / Windows 7.
  I tried installing the VC2010 and 2012 redistributable packages on the users' machines but this didn't work.
  Mentioned below, I tried taking the *110 dlls and copying locally as well.
  I spent time with DependencyWalker and FusionLogViewer but nothing came from the research.

  I ended up taking the 1.25.0 source code and making the change I needed (the null reference exception for the AddSourceHook method). I rebuilt the solution and used the CefSharp and CefSharp.Wpf dlls. This fixed the issue for now. I wonder if you have any other ideas for why this would happen. I raised an issue for this as well. We can take the discussion over there to leave this thread for now: https://github.com/cefsharp/CefSharp/issues/163

  Thank you for your time,

Jason
Reply all
Reply to author
Forward
0 new messages