I had a static library file. How can I see whether it is compiled in i386 or in arm platform. Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Unix (and similar – say, Linux or Minix) systems, you can use the “file” utility:
(the
%indicates a shell prompt and is not part of the command)As for Windows, I don’t know if there is a built-in command already present, but if not, you can find the utility on this page: http://gnuwin32.sourceforge.net/packages.html (the
filepackage is about 1/3 down the page).EDIT: For static libraries (
.afiles), you first need to extract them and check a.ofile:WARNING:
ar -x ...will pollute the local directory, so be sure to copy the files somewhere else (say/tmp/something) first!I’m sure there is a way to directly check into these files, but this works just as well!