简体   繁体   中英

How to add ICU library to Qt project for ARM?

I've been trying to compile a Qt project with both the ICU ( International Components for Unicode ) libraries for x86 and ARM, but it gives the following error:

"libicudata.so: file not recognized: file format not recognized"

Make is configured with CXX="arm-oe-linux-gnueabi-g++ -march=armv5e -marm -mthumb-interwork"

Any solutions to how to solve this problem? Any help and/or opinion is greatly appreciated!

Side-note: if there is more information to be provided, please tell me what to specify!

From the looks of it, you are trying to use your x86 version of ICU to build your ARM version of Qt.

You first need to get ICU for ARM.

Problem solved.

It was a linking problem, I had to add libicuuc and libicudata.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM