libcef_dll_wrapper.a only in the Release arm64 configuration

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.

libcef_dll_wrapper.a only in the Release arm64 configuration

Postby Elviin » Wed Oct 23, 2024 12:59 am

Hi, I have built Chromium Framework in these versions:

    Debug_GN_arm64
    Release_GN_arm64
    Debug_GN_x64
    Release_GN_x64

Why is libcef_dll_wrapper.a available only from Release_GN_arm64?

And second question. How can I explicitly compile the libcef_dll_wrapper.a in all above versions?

Thank you.

My configuration

    computer: macosx 15.1 Beta (24B5077a), Apple M3 Max, 64 GB

    Code: Select all
    export CEF_ENABLE_ARM64=1


    clang version 20.0.0git (https://chromium.googlesource.com/a/ext ... vm-project 7088a5ed880f29129ec844c66068e8cb61ca98bf)
    Target: arm64-apple-darwin24.1.0
    Thread model: posix

    update.sh: (the --x64-build and --arm64-build seems to have no effect on the creation of the src/out/ folders as all versions x64, arm64 are created )
    - x64

    Code: Select all
    #!/bin/bash
    python ../automate/automate-git.py --download-dir=~/code/chromium_git --depot-tools-dir=~/code/depot_tools --no-distrib --no-build --x64-build --branch=6668

    - arm64

    Code: Select all
    #!/bin/bash
    python ../automate/automate-git.py --download-dir=~/code/chromium_git --depot-tools-dir=~/code/depot_tools --no-distrib --no-build --arm64-build --branch=6668


    Code: Select all
    export GN_DEFINES="proprietary_codecs=true ffmpeg_branding=Chrome"


Elviin
Techie
 
Posts: 23
Joined: Tue Oct 22, 2024 3:06 am

Re: libcef_dll_wrapper.a only in the Release arm64 configura

Postby Elviin » Wed Oct 23, 2024 5:47 am

Actually the solution was quite simple: in the arm64 distritbution i can build both

Code: Select all
cmake -G "Ninja" -DPROJECT_ARCH="arm64" -DCMAKE_BUILD_TYPE=Debug 
ninja cefclient cefsimple


I guess I can build both versions x64 and arm64 in the same distribution package. Or should I download also x64 for the mac and build x64 version there?

Code: Select all
cmake -G "Ninja" -DPROJECT_ARCH="x86_64" -DCMAKE_BUILD_TYPE=Debug ..
ninja cefclient cefsimple
Elviin
Techie
 
Posts: 23
Joined: Tue Oct 22, 2024 3:06 am

Re: libcef_dll_wrapper.a only in the Release arm64 configura

Postby magreenblatt » Wed Oct 23, 2024 7:20 am

You need a separate distribution for each architecture as the binaries are different.
magreenblatt
Site Admin
 
Posts: 12947
Joined: Fri May 29, 2009 6:57 pm

Re: libcef_dll_wrapper.a only in the Release arm64 configura

Postby Elviin » Wed Oct 23, 2024 1:23 pm

Thank you @magreenblatt. I know the framework binaries are different, but I can still build libcef_dll_wrapper.a for the both architectures in both distributions, or not?

You need a separate distribution for each architecture as the binaries are different.


In the CMakeLists.txt in the BUILD EXAMPLES section there are instructions for both architectures (x64, arm64):
cmake -G "Ninja" -DPROJECT_ARCH="x86_64" -DCMAKE_BUILD_TYPE=Debug ..
and
cmake -G "Ninja" -DPROJECT_ARCH="arm64" -DCMAKE_BUILD_TYPE=Debug ..
Elviin
Techie
 
Posts: 23
Joined: Tue Oct 22, 2024 3:06 am

Re: libcef_dll_wrapper.a only in the Release arm64 configura

Postby magreenblatt » Wed Oct 23, 2024 1:45 pm

I can still build libcef_dll_wrapper.a for the both architectures in both distributions, or not?

If you are only building libcef_dll_wrapper then it should be fine.
magreenblatt
Site Admin
 
Posts: 12947
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 44 guests