Android and ICU 5.0, androidicu5.0
I recently used ICU4J in my android project. When I deploy it on my mobile phone, an error occurs after it is started. The information is as follows:
Fatal exception: main
12345678910111213141516171819202122232425262728293031323334
java.lang.ExceptionInInitializerError at com.ibm.icu.text.SimpleDateFormat.849) at com.ibm.icu.text.DateFormat.get(DateFormat.java:1492) at com.ibm.icu.text.DateFormat.getDateI
the NO-ASM option)
Ms\do_nasm (if the second step is omitted, execute: Ms\do_ms)
Manually edit Ms/ntdll.mak, add option/mp-d_using_v110_sdk71_ in 21 rows of cflag (means to have CL compile and use Windows SDK 7.1A with multithreading)
Modify the mlflags of line 35 lflags and 52, change the/subsystem:console to/subsystem:console ", 5.01" (Support WinXP)
Save, back to CMD, execute: nmake-f Ms/ntdll.mak
When the compilation is complete, execute: nmake-f ms/ntdll.mak install to
SOURCE download
ICU Project Address
Install Cygwin, install at least the following tools
Make
Dos2unix
Binutils
Compiling the project
Open the command line and go to the root directory of the source folder
Configure the VC compilation environment, execute the command "C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
Set the environment variable, add the Cygwin bin directo
First, I use vc9.0, which corresponds to icuc4c 4.4.2. To download icu4c 4.4.2 from the ICU homepage, just download the compiled package.
32 http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-Win32-msvc9.zip
64-bit http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-Win64-msvc9.zip
Assume that the unzipped ICU folder is placed in D: \ Dev \ ICU
Original stickers http://topic.csdn.net/u/20101022/16/1b2e0cec-b9d2-42ea-8d9c-4f1bb8320a54.html? R = 70149216, read and implement it, and record it for reuse.
For the java layer, the String class can be used to convert various encodings. There are no open tools available under the ndk, but icu4c can be used.
ICU4C is the C language implementation version of IBM's International Development component ICU. It is also implemented in the android system. No
Early adopters Qt5.9.0 full version dynamic compilation (VS2017) supports Webengine, ICU, OpenSSL moduleThis version has only the release library;haveDevelopmentdocumentation;qtlib_vc-x86-shared.7z:Http://pan.baidu.com/s/1o8pzeZ4qtlib_vc-x64-shared.7z:Http://pan.baidu.com/s/1miHT0kKrelease and debug;32-bit:Http://pan.baidu.com/s/1bpxnem764-bit:Http://pan.baidu.com/s/1cCimfWThe above does not support, the official description has removed XP support. If
2.7 and 3.3 on my machine, but it was compiled with 2.7.2.Ruby, I installed is 2.2.1, official online said need Ruby, but in the process of compiling I did not find where to use this thing, and in Windows to put a Ruby is not too useful, you can not install him, and so on when the compilation of problems to install also not later, I'm not going to try and need it.The compilation scripts for 3.perl,webkit and OpenSSL are written by Perl, which is definitely going to be used.4.OpenGL ES SDK, I do
Because Regexkitlite uses the ICU library, you need to dynamically link to the/usr/lib/libicucore.dylib library, or you will get an error. Specific dynamically linked To/usr/lib/libicucore.dylib methods are as follows1. Go to menu Project->edit Project Settings2. Enter Linker search in the search box to find the "other Linker Flags" option.3. Add a new label named-licucore.Add:The ICU (International Compone
1. Modify the productconfig. mk file.
Find the macro mtk_product_locales in the mediatek/config/$ {project}/projectconfig. mk file and add the language code to be added. For example, the Burmese language is my_mm;2. Add ICU resource 2.1. Copy the TXT file of the ICU resource to the corresponding folder.
Because the ICU resources of my_mm are not available in vers
have to be converted into pinyin with a massive dictionary mindset?What is the association between Chinese characters and pinyin? For example, in the Chinese character range \ u4E00-\ u9FFF, the first one may be ha, and the last one may be ze, there is no way to associate the unicode of Chinese characters with pinyin, so there is only one huge dictionary to record the Pinyin of each Chinese character (or commonly used Chinese character.However, we can sort all Chinese Characters in pinyin order
Original article: boost installation and usage record
Other references: how to install and use boost in windows?
Http://www.cnblogs.com/finallyliuyu/archive/2010/08/23/1806811.html
Http://www.boostpro.com/download/
Install
Ubuntu:
1) Search for Boost installation in synaptic.
2) if you need to use the boost lib file during compilation, use-L to specify it.
Windows:
1) download the ICU beforehand. Assume that the decompressed path is c: \
This article focuses on the problem of Android customization in multiple languages, and summarizes its Customization Mechanism and implementation methods. If you want to learn more about the Customization Mechanism, read the first part of this article. If you only want to know How to customize it, refer to the second part.Part 1 multi-language Customization Mechanism1. icu4c Introduction
Icu4c (ICU for C, http://site.icu-project.org /)It is the versio
The default language of the Android system is English, and the customized system may need to be simplified Chinese when the user is on the machine.We can modify system attributes to implement the default language.There are two methods, which can be used for reference:1. Add the following code to init. RC or other boot initialization files, such as default. Prop:
[persist.sys.language]: [zh][persist.sys.country]: [CN][persist.sys.localevar]: [][persist.sys.timezone]: [Asia/Shanghai][ro.product.lo
following code to init. RC or other boot initialization files, such as default. Prop:[Persist. SYS. Language]: [zh][Persist. SYS. Country]: [CN][Persist. SYS. localevar]: [][Persist. SYS. timezone]: [Asia/Shanghai][Ro. Product. locale. Language]: [zh][Ro. Product. locale. region]: [CN]
2. During compilation, you can specify the compilation parameters to be simplified Chinese. In this way, the system property files compiled by Traditional compilation are displayed inDuring system initialization,
]: [CN]
[Persist. SYS. localevar]: []
[Persist. SYS. timezone]: [Asia/Shanghai]
[Ro. Product. locale. Language]: [zh]
[Ro. Product. locale. region]: [CN]
2. During compilation, you can specify the compilation parameters to be simplified Chinese. In this way, the system property files compiled by Traditional compilation are displayed in
During system initialization, the above attributes will be correctly initialized, for example:
Make PRODUCT-machineID-eng-zh_CN
Other related materials:1. icu4c
to build for Android, make sure you can refer to the readme of the Swift project for Linux compilation.
2. Android NDK, above or equal to 21 version, is available in the following link download:
Http://developer.android.com/ndk/downloads/index.html.
3. An Android device that can be debugged remotely. We need remote debugging to say STDLIB results are deployed to Android devices. You can debug remotely by following the Official wizard: Https://developer.chrome.com/devtools/docs/remote-debuggi
1 Language Customization1.1 icu4c1.1.1 icu4c IntroductionIcu4c (ICU for C, http://site.icu-project.org/) is the ICU version on the C/C ++ platform, ICU (international component for Unicode) is based on "IBM Public License, an open-source project that works with open-source organizations to support international software development. Icu4c provides the powerful in
First, the problem description
There is a price for each item in a store. For example, the price of a flower is 2 ICU (ICU is the unit of the Currency of the informatics contest); The price of a vase is 5 ICU. In order to attract more customers, the store offers special rates.
A special offer is a grouping of one or several commodities. and reduced sales. For ex
with blood. She finally died in the intensive care unit in less than a few hours. One patient was injured because he did not listen to the advice of the Doctor. After the patient had undergone the operation for a few days, he did not listen to the doctor's words and went to bed at night. As a result, the valve became loose and then operated again, in addition, the number of ICU visits is several times, but the IC
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.