Page 1 of 1

CEF compile at aarch64 cpu error

PostPosted: Thu Sep 10, 2020 12:14 am
by kernelz
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

Re: CEF compile at aarch64 cpu error

PostPosted: Thu Sep 10, 2020 9:21 am
by magreenblatt
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.

Re: CEF compile at aarch64 cpu error

PostPosted: Tue Mar 30, 2021 2:39 am
by Ellan
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

Re: CEF compile at aarch64 cpu error

PostPosted: Tue Mar 30, 2021 4:39 am
by Ellan
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