Does bazel support public.xml when build an android project - bazel

I'm migrating from gradle, and I'm using public.xml on my android project, it works fine with gradle, but when I build it with bazel, it failed with the following error:
Error: /var/folders/th/cxy34j2x0vq9zzdh8qstx5jr0000gn/T/android_resources_tmp2185237642135735709/merged_resources/values/values.xml:6772: error: Public symbol drawable/skin_at declared here is not defined.
Error: /var/folders/th/cxy34j2x0vq9zzdh8qstx5jr0000gn/T/android_resources_tmp2185237642135735709/merged_resources/values/values.xml:6774: error: Public symbol drawable/skin_at_click declared here is not defined.
Error: /var/folders/th/cxy34j2x0vq9zzdh8qstx5jr0000gn/T/android_resources_tmp2185237642135735709/merged_resources/values/values.xml:6776: error: Public symbol drawable/skin_face declared here is not defined.
Error: /var/folders/th/cxy34j2x0vq9zzdh8qstx5jr0000gn/T/android_resources_tmp2185237642135735709/merged_resources/values/values.xml:6778: error: Public symbol drawable/skin_face_click declared here is not defined.
Error: /var/folders/th/cxy34j2x0vq9zzdh8qstx5jr0000gn/T/android_resources_tmp2185237642135735709/merged_resources/values/values.xml:6780: error: Public symbol drawable/skin_keyboard declared here is not defined.
Error: /var/folders/th/cxy34j2x0vq9zzdh8qstx5jr0000gn/T/android_resources_tmp2185237642135735709/merged_resources/values/values.xml:6782: error: Public symbol drawable/skin_keyboard_click declared here is not defined.
What should I do here to solve this problem?
Thanks very much for any help!

Bazel 0.4.5 (the current version at time of writing) does not support private resources and public.xml files. This is because this functionality is implemented by Gradle, not the underlying tools (aapt). There is an open feature request for Bazel to reimplement this feature of Gradle here: https://github.com/bazelbuild/bazel/issues/2124.

Related

Unresolved external symbol WppAutoLogTrace when building a driver with Dmf Framework

I'm trying to build a driver with Microsoft Dmf Framework https://github.com/microsoft/DMF
I builded Dmf from the provided sln file in this repository. It results in DmfK.lib (I build a kernel mode driver), then I add this lib to my driver project.
But I have 27 times the same linker error "unresolved external symbol WppAutoLogTrace" from different functions of this lib, ie:
Error LNK2019 unresolved external symbol WppAutoLogTrace referenced in function "long __cdecl HashTable_ContextInitialize(struct DMFMODULE__ *)" (?HashTable_ContextInitialize##YAJPEAUDMFMODULE__###Z) Main (Main\Main) C:\Data\Development\MyDriver\Source\Main\DmfK.lib(Dmf_HashTable.obj)
I found no relevant information about this function over the internet, I can't figure out which other lib to include. Is this a problem with a missing lib or an issue with the DmfK.lib build ?
I finally found the solution:
WppAutoLogTrace is implemented in WppRecorder.lib

xbuild dafny on Linux CS0518 error

I followed the instructions in the documentation to install Dafny on Linux, but when I use xbuild dafny/Source/Dafny.sln I get the following trace:
reference:/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll /warn:4
CSC: error CS0518: The predefined type `System.Object' is not defined or imported
CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported
CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported
CSC: error CS0518: The predefined type `System.Int32' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported
I used the 64-bit version of Linux Mint 18.1. I get the same error in other Linux distributions as well (Fedora and Ubuntu).
The previous step (xbuild Source/Boogie.sln works fine)
Any help would be appreciated.
Thanks.
I added the following statement /p:TargetFrameworkVersion="v4.5" after xbuild dafny/Source/Dafny.sln and it was built successfully.

Can't build OpenCV 3.1 on Windows (using MinGW)

I need to build OpenCV from source, because I want to make modifications to it. So using pre-built binaries is not an option for me. I'm doing this on Windows 8. I do not have MS Visual Studio, and I don't want to use it.
Here is how I reproduce the build error:
I git clone https://github.com/opencv/opencv
I use CMake 3.7.1, press Configure, then press Generate. It seems to work (no errors). I named the output folder opencv/release.
I go to the opencv/release folder, and type mingw32-make.
Eventually, after compiling for a while, it displays the following error message:
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj
modules\core\src\parallel.cpp:135:43: error: operator '&&' has no right operand
modules\core\src\parallel.cpp: In function 'void cv::parallel_for_(const cv::Range&, const cv::ParallelLoopBody&, double)':
modules\core\src\parallel.cpp:311:52: error: 'parallel_for_pthreads' was not declared in this scope parallel_for_pthreads(range, body, nstripes);
^
modules\core\src\parallel.cpp: In function 'int cv::getNumThreads()':
modules\core\src\parallel.cpp:370:50: error: 'parallel_pthreads_get_threads_num' was not declared in this scope return parallel_pthreads_get_threads_num();
^
modules\core\src\parallel.cpp: In function 'void cv::setNumThreads(int)':
modules\core\src\parallel.cpp:431:46: error: 'parallel_pthreads_set_threads_num' was not declared in this scope parallel_pthreads_set_threads_num(threads);
^
modules\core\CMakeFiles\opencv_core.dir\build.make:990: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj' failed mingw32-make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj] Error 1
Note: I tried to compile both with and without TPP (in the CMake config), and I get the same error message.
Also, I read the other similar questions on StackOverflow and the answers do not help.

armv7 is successful but compile for arm64 throws Implicit Function declaration error

Have to compile security library (create static library) for IOS.
Below is the makefile snippet:
SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
#CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc
CC=llvm-gcc
TARGET=security
ARCH=arm64
Now on changing the ARCH=armv7, compilation is successful but for ARCH=arm64
Compiling the same code gives error as below:
crypto.c:580:18: error: implicit declaration of function 'aes_hardware_cbc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
The above error can be resolved on adding declaration of the function in header file
But I wanted to know how architecture changes brings on Implicit Function Declaration errors or , change warning to errors.
Machine Details:
MAC OS: 10.11 EL Captain
Iphone SDK: iPhoneOS9.0.sdk
Compiler: llvm-gcc (/usr/bin)

Trying to run ant script but getting Error: Value of annotation member type is of an unexpected type

I'm running ant script (build.xml) which specifies JDK path that is on server:
(WebLogic 10.3.6 which is using jdk 1.6.0.3.)
But facing below error:
[wlcompile] [JAM] Error: Value of annotation member type is of an unexpected type: class com.sun.tools.javadoc.ParameterizedTypeImpl [javax.xml.bind.JAXBElement]
Can someone suggest just what may be the problem?

Resources