Compiling for Windows x86 error "Please add support for your

Having problems with building or using the JCEF Java binding? Ask your questions here.

Compiling for Windows x86 error "Please add support for your

Postby DanielGreka » Mon Apr 13, 2020 5:18 am

I tried to compile JCEF for Windows x86 using Win 7 32bit but i have this problem.
I cant understand, what i must add in cef_build.h to compile it for support x86.
I tried change

Code: Select all
#else
#error Please add support for your architecture in cef_build.h
#endif


to (the copy of exist part of code for __i386__)

Code: Select all
#else
#define __i386__ 1
#define ARCH_CPU_X86_FAMILY 1
#define ARCH_CPU_X86 1
#define ARCH_CPU_32_BITS 1
#define ARCH_CPU_LITTLE_ENDIAN 1
#endif


But i have a 892 other errors like:
Image
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am

Re: Compiling for Windows x86 error "Please add support for

Postby magreenblatt » Mon Apr 13, 2020 10:53 am

What compiler are you trying to use? MSVC (Visual Studio) is required.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compiling for Windows x86 error "Please add support for

Postby ndesktop » Mon Apr 13, 2020 11:06 am

"using Win 7 32bit"
You need an x64 machine to build, even if you target x86.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Compiling for Windows x86 error "Please add support for

Postby DanielGreka » Mon Apr 13, 2020 11:17 am

magreenblatt wrote:What compiler are you trying to use? MSVC (Visual Studio) is required.

I used Visual Studio 2015.

ndesktop wrote:"using Win 7 32bit"
You need an x64 machine to build, even if you target x86.

I tried to build it on Win 10 x64 too.
I had the same result, same error.

But x64 binary builds fine....

P. S: my steps for compilation x86 binary:
Code: Select all
git clone https://bitbucket.org/chromiumembedded/java-cef.git JCEF
cd D:\JCEF
mkdir jcef_build
cd jcef_build
cmake .. -G "Visual Studio 14 2015 ARM"
# Open jcef.sln in Visual Studio
# - Select Build > Configuration Manager and change the "Active solution configuration" to "Release"
# - Select Build > Build Solution.

#I can't build this in VS 2015 -Please add support for your architecture in cef_build.h




cd ..\tools
compile.bat win32
run.bat win32 Release detailed
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am

Re: Compiling for Windows x86 error "Please add support for

Postby magreenblatt » Mon Apr 13, 2020 3:12 pm

ARM 32-bit is not supported on Windows, and ARM 64-bit binaries are not available for Windows currently.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compiling for Windows x86 error "Please add support for

Postby DanielGreka » Mon Apr 13, 2020 10:42 pm

magreenblatt wrote:ARM 32-bit is not supported on Windows, and ARM 64-bit binaries are not available for Windows currently.


So, is any way to build JCEF to x32 ?
I have only ARM and Win64 arch in the cmake (last version).
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am

Re: Compiling for Windows x86 error "Please add support for

Postby magreenblatt » Tue Apr 14, 2020 11:47 am

Use just:
Code: Select all
cmake -G "Visual Studio 14" ..
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compiling for Windows x86 error "Please add support for

Postby DanielGreka » Tue Apr 14, 2020 12:16 pm

magreenblatt wrote:Use just:
Code: Select all
cmake -G "Visual Studio 14" ..


I tried it too... but i don't have this generator.
Image

What version of Cmake do you use?
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am

Re: Compiling for Windows x86 error "Please add support for

Postby magreenblatt » Tue Apr 14, 2020 2:57 pm

The [arch] parameter is optional. If you leave it off you should get an x86 build by default.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compiling for Windows x86 error "Please add support for

Postby DanielGreka » Wed Apr 15, 2020 5:25 am

magreenblatt wrote:The [arch] parameter is optional. If you leave it off you should get an x86 build by default.


Thanks, it was my blame. You are awesome!
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 15 guests