CEF compile at aarch64 cpu error

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.

CEF compile at aarch64 cpu error

Postby kernelz » Thu Sep 10, 2020 12:14 am

I compile Linux ARM64 CEF to my nvidia nx board, this board run a ubuntu 18.08(aarch64 core),toolchain is aarch64-linux-gnu-gcc.

the report:
[ 0%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o
c++: error: unrecognized command line option ‘-m64’
libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:62: recipe for target 'libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o' failed
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/all' failed
make[1]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
kernelz
Newbie
 
Posts: 2
Joined: Thu Sep 10, 2020 12:08 am

Re: CEF compile at aarch64 cpu error

Postby magreenblatt » Thu Sep 10, 2020 9:21 am

The CMake configuration needs to be updated to support ARM compiler definitions. See the use of PROJECT_ARCH in cef_variables.cmake. Please share your changes if you get it working.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: CEF compile at aarch64 cpu error

Postby Ellan » Tue Mar 30, 2021 2:39 am

magreenblatt wrote:The CMake configuration needs to be updated to support ARM compiler definitions. See the use of PROJECT_ARCH in cef_variables.cmake. Please share your changes if you get it working.

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DPROJECT_ARCH="arm64" ..
when link can not find libcef.so
Ellan
Newbie
 
Posts: 4
Joined: Thu Aug 31, 2017 2:49 am

Re: CEF compile at aarch64 cpu error

Postby Ellan » Tue Mar 30, 2021 4:39 am

Ellan wrote:
magreenblatt wrote:The CMake configuration needs to be updated to support ARM compiler definitions. See the use of PROJECT_ARCH in cef_variables.cmake. Please share your changes if you get it working.

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DPROJECT_ARCH="arm64" ..
when link can not find libcef.so


Install the dependent libraries:
apt-get -y install libnss3-dev libatk-bridge2.0-dev libdrm-dev libxkbcommon-dev libgbm-dev libasound-dev libxshmfence-dev

build was successful
Ellan
Newbie
 
Posts: 4
Joined: Thu Aug 31, 2017 2:49 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 34 guests