
May I know how to use them? How to integrate them into the Android x86 ROM?
Thanks.
I have "git remote add https://github.com/mesa3d/mesa.git" in here:android-x86/external/mesa/and switched to 18.3.5afterwards. can I switch back to android-x86 and build again?
Or do I need to make anything in mesa directory?
AOSP build environment
----------------------
sudo apt-get -y install git git-email repo
sudo apt-get -y install bison g++-multilib git gperf libxml2-utils make zlib1g-dev:i386 zip
sudo apt-get -y install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
sudo apt-get -y install yasm squashfs-tools syslinux-utils
sudo apt-get -y install python-mako
sudo apt install libssl-dev libelf-devrepo sync --no-tags --no-clone-bundle external/mesa
cd external/mesa
git remote add freedesktop https://gitlab.freedesktop.org/mesa/mesa
git fetch freedesktop 18.3
git merge freedesktop/18.31 warning generated.[ 82% 84365/102783] target C: libmesa_radv_common <= out/target/product/x86_64/obj/STATIC_LIBRARIES/libmesa_radv_common_intermediates/radv_entrypoints.cIn file included from out/target/product/x86_64/obj/STATIC_LIBRARIES/libmesa_radv_common_intermediates/radv_entrypoints.c:26:In file included from external/mesa/src/amd/vulkan/radv_private.h:58:external/mesa/src/amd/common/ac_gpu_info.h:39:31: warning: redefinition of typedef 'amdgpu_device_handle' is a C11 feature [-Wtypedef-redefinition]typedef struct amdgpu_device *amdgpu_device_handle; ^external/libdrm/amdgpu/amdgpu.h:116:31: note: previous definition is heretypedef struct amdgpu_device *amdgpu_device_handle; ^1 warning generated.[ 82% 84418/102783] //external/llvm70/lib/Target/AArch64/InstPrinter:libLLVM70AArch64AsmPrinter clang++ AArch64InstPrinter.cpp [x86]FAILED: out/soong/.intermediates/external/llvm70/lib/Target/AArch64/InstPrinter/libLLVM70AArch64AsmPrinter/android_x86_x86_64_static_core/obj/external/llvm70/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.o PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -c -Iexternal/llvm70/lib/Target/AArch64/InstPrinter -fno-exceptions -Wno-multichar -O2 -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing -funwind-tables -fstack-protector-strong -no-canonical-prefixes -O2 -g -fno-strict-aliasing -msse3 -mstackrealign -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -m32 -march=prescott -DUSE_SSSE3 -mssse3 -msse4 -msse4.1 -msse4.2 -Iexternal/llvm70/include -Iexternal/llvm70/device/include -Iout/soong/.intermediates/external/llvm70/llvm70-gen-attributes/gen -Iout/soong/.intermediates/external/llvm70/llvm70-gen-intrinsics/gen -Iout/soong/.intermediates/external/llvm70/llvm70-gen-revision/gen -Iexternal/llvm70/lib/Target/AArch64 -Iexternal/libcxx/include -Iexternal/libcxxabi/include -Iout/soong/.intermediates/external/llvm70/lib/Target/AArch64/llvm70-gen-aarch64/gen -Isystem/core/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Ilibnativehelper/include -Iframeworks/native/include -Iframeworks/native/opengl/include -Iframeworks/av/include -isystem bionic/libc/arch-x86/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -Ilibnativehelper/include_deprecated -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fomit-frame-pointer -Wall -W -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wwrite-strings -Werror -Dsprintf=sprintf -Wno-error=unused-lambda-capture -Wno-error=user-defined-warnings -target i686-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -fPIC -D_USING_LIBCXX -std=gnu++14 -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-sign-promo -std=c++11 -Woverloaded-virtual -fno-rtti -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/soong/.intermediates/external/llvm70/lib/Target/AArch64/InstPrinter/libLLVM70AArch64AsmPrinter/android_x86_x86_64_static_core/obj/external/llvm70/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.o.d -o out/soong/.intermediates/external/llvm70/lib/Target/AArch64/InstPrinter/libLLVM70AArch64AsmPrinter/android_x86_x86_64_static_core/obj/external/llvm70/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.o external/llvm70/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cppterminating with uncaught exception of type std::bad_alloc: std::bad_allocclang++.real: error: unable to execute command: Aborted (core dumped)clang++.real: error: clang frontend command failed due to signal (use -v to see invocation)Android clang version 5.0.300080 (based on LLVM 5.0.300080)Target: i686--linux-androidThread model: posixInstalledDir: prebuilts/clang/host/linux-x86/clang-4053586/binclang++.real: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.clang++.real: note: diagnostic msg: ********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:Preprocessed source(s) and associated run script(s) are located at:clang++.real: note: diagnostic msg: /tmp/AArch64InstPrinter-66e851.cppclang++.real: note: diagnostic msg: /tmp/AArch64InstPrinter-66e851.shclang++.real: note: diagnostic msg:
********************[ 82% 84425/102783] //external/llvm70/lib/Target/AArch64:libLLVM70AArch64CodeGen clang++ AArch64TargetMachine.cppninja: build stopped: subcommand failed.14:10:06 ninja failed with: exit status 1
#### failed to build some targets (02:47:02 (hh:mm:ss)) ####JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -Xmx4096m -cp $LAUNCHER_JAR $LAUNCHER_NAME./prebuilts/sdk/tools/jack-admin stop-server
./prebuilts/sdk/tools/jack-admin start-server