Hi all, i am using build command below one
$ make TARGET_PRODUCT=beagleboard TARGET_BUILD_VARIANT=tests -j8 droid frameworks/base/tools/validatekeymaps/Main.cpp frameworks/base/tools/validatekeymaps/Main.cpp:18:29: error: ui/KeyLayoutMap.h: No such file or directory frameworks/base/tools/validatekeymaps/Main.cpp:19:30: error: ui/VirtualKeyMap.h: No such file or directory frameworks/base/tools/validatekeymaps/Main.cpp:20:31: error: utils/PropertyMap.h: No such file or directory frameworks/base/tools/validatekeymaps/Main.cpp: In function ‘bool validateFile(const char*)’: frameworks/base/tools/validatekeymaps/Main.cpp:81: error: ‘KeyLayoutMap’ was not declared in this scope frameworks/base/tools/validatekeymaps/Main.cpp:81: error: ‘map’ was not declared in this scope frameworks/base/tools/validatekeymaps/Main.cpp:82: error: ‘KeyLayoutMap’ is not a class or namespace frameworks/base/tools/validatekeymaps/Main.cpp:92: error: no matching function for call to ‘KeyCharacterMap::load(android::String8, KeyCharacterMap**)’ frameworks/base/include/ui/KeyCharacterMap.h:43: note: candidates are: static KeyCharacterMap* KeyCharacterMap::load(int) frameworks/base/tools/validatekeymaps/Main.cpp:101: error: ‘PropertyMap’ was not declared in this scope frameworks/base/tools/validatekeymaps/Main.cpp:101: error: ‘map’ was not declared in this scope frameworks/base/tools/validatekeymaps/Main.cpp:102: error: ‘PropertyMap’ is not a class or namespace frameworks/base/tools/validatekeymaps/Main.cpp:111: error: ‘VirtualKeyMap’ was not declared in this scope frameworks/base/tools/validatekeymaps/Main.cpp:111: error: ‘map’ was not declared in this scope frameworks/base/tools/validatekeymaps/Main.cpp:112: error: ‘VirtualKeyMap’ is not a class or namespace make: *** [out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1 please check my attached files Main.cpp and Android.mk -- thanks&Regards k.v.raju -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <ui/KeyCharacterMap.h> #include <ui/KeyLayoutMap.h> #include <ui/VirtualKeyMap.h> #include <utils/PropertyMap.h> #include <utils/String8.h> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace android; static const char* gProgName = "validatekeymaps"; enum FileType { FILETYPE_UNKNOWN, FILETYPE_KEYLAYOUT, FILETYPE_KEYCHARACTERMAP, FILETYPE_VIRTUALKEYDEFINITION, FILETYPE_INPUTDEVICECONFIGURATION, }; static void usage() { fprintf(stderr, "Keymap Validation Tool\n\n"); fprintf(stderr, "Usage:\n"); fprintf(stderr, " %s [*.kl] [*.kcm] [*.idc] [virtualkeys.*] [...]\n" " Validates the specified key layouts, key character maps, \n" " input device configurations, or virtual key definitions.\n\n", gProgName); } static FileType getFileType(const char* filename) { const char *extension = strrchr(filename, '.'); if (extension) { if (strcmp(extension, ".kl") == 0) { return FILETYPE_KEYLAYOUT; } if (strcmp(extension, ".kcm") == 0) { return FILETYPE_KEYCHARACTERMAP; } if (strcmp(extension, ".idc") == 0) { return FILETYPE_INPUTDEVICECONFIGURATION; } } if (strstr(filename, "virtualkeys.")) { return FILETYPE_VIRTUALKEYDEFINITION; } return FILETYPE_UNKNOWN; } static bool validateFile(const char* filename) { fprintf(stdout, "Validating file '%s'...\n", filename); FileType fileType = getFileType(filename); switch (fileType) { case FILETYPE_UNKNOWN: fprintf(stderr, "Supported file types: *.kl, *.kcm, virtualkeys.*\n\n"); return false; case FILETYPE_KEYLAYOUT: { KeyLayoutMap* map; status_t status = KeyLayoutMap::load(String8(filename), &map); if (status) { fprintf(stderr, "Error %d parsing key layout file.\n\n", status); return false; } break; } case FILETYPE_KEYCHARACTERMAP: { KeyCharacterMap* map; status_t status = KeyCharacterMap::load(String8(filename), &map); if (status) { fprintf(stderr, "Error %d parsing key character map file.\n\n", status); return false; } break; } case FILETYPE_INPUTDEVICECONFIGURATION: { PropertyMap* map; status_t status = PropertyMap::load(String8(filename), &map); if (status) { fprintf(stderr, "Error %d parsing input device configuration file.\n\n", status); return false; } break; } case FILETYPE_VIRTUALKEYDEFINITION: { VirtualKeyMap* map; status_t status = VirtualKeyMap::load(String8(filename), &map); if (status) { fprintf(stderr, "Error %d parsing virtual key definition file.\n\n", status); return false; } break; } } fputs("No errors.\n\n", stdout); return true; } int main(int argc, const char** argv) { if (argc < 2) { usage(); return 1; } int result = 0; for (int i = 1; i < argc; i++) { if (!validateFile(argv[i])) { result = 1; } } if (result) { fputs("Failed!\n", stderr); } else { fputs("Success.\n", stdout); } return result; }
Android.mk
Description: Binary data