当前位置:网站首页>[error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)
[error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)
2022-07-04 00:23:00 【Programmer community】
List of articles
- One 、 Error message
- Two 、 Solution
- 1、NDK Three header file paths
- 2、 And CPU Architecture related asm Header file path selection
One 、 Error message
Reference resources 【Android reverse 】Android Process injection tool development ( Visual Studio Development Android NDK application | Use Makefile structure Android platform NDK application ) Blog , It's about Open one " Makefile project " ;
After opening , Because there is no header file dependency , Can't compile ;
Two 、 Solution
Right click on solutions , Select Properties ,
stay NMake Of Contains the search path in , Configure the corresponding
stay 【 Error log 】Visual Studio Middle configuration NDK Header file path The blog is only configured for one situation , Simply solve the error reporting information , The following method is the current general solution ;
1、NDK Three header file paths
commonly NDK The location of the header file is as follows
3
3
3 individual : NDKRoot refer to NDK root directory ;
NDKRoot\sources\android\support\include
NDKRoot\sysroot\usr\include
NDKRoot\sysroot\usr\include\x86_64-linux-android
among NDKRoot refer to NDK root directory ;
2、 And CPU Architecture related asm Header file path selection
Be careful NDKRoot\sysroot\usr\include\x86_64-linux-android
In the path x86_64-linux-android
Directory is asm Related path , asm Related header files and dependent libraries are related to CPU Architecture related , Such as register related operations , System call related operations , Different CPU The content corresponding to the architecture is different ;
stay D:\Microsoft\AndroidNDK64\android-ndk-r16b\sysroot\usr\include
Directory , With the following Architecture asm Catalog :
- aarch64-linux-android
- arm-linux-androideabi
- i686-linux-android
- mips64el-linux-android
- mipsel-linux-android
- x86_64-linux-android
Every CPU There is a directory corresponding to the schema asm Catalog ;
Where is the development CPU Programs running on the architecture , Just choose which path to import ;
Such as : Currently to be developed in x86 Architecturally Conduct ptrace Application of process debugging , What needs to be imported is D:\Microsoft\AndroidNDK64\android-ndk-r16b\sysroot\usr\include\x86_64-linux-android
The header file ;
This is PC On Android The header file that needs to be imported for reverse operation in the simulator ;
If you want to in arm Reverse debugging on the real machine , You need to import D:\Microsoft\AndroidNDK64\android-ndk-r16b\sysroot\usr\include\arm-linux-androideabi
The header file ;
Because the register information needs to be read and modified in reverse , So here's what's involved for different CPU Architecture to develop different programs ; Imported asm Header files are also different ;
边栏推荐
- Tencent interview: can you find the number of 1 in binary?
- Optimization of for loop
- [PHP basics] session basic knowledge, application case code and attack and defense
- SQL data update
- No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
- Detailed explanation of the relationship between Zhongtai, wechat and DDD
- Test the influence of influent swacth on the electromagnetic coil of quartz meter
- What does redis do? Redis often practices grammar every day
- [about text classification trick] things you don't know
- Docking Alipay process [pay in person, QR code Payment]
猜你喜欢
URL (data:image/png; Base64, ivborw0k... Use case
The difference between objects and objects
[source code] VB6 chat robot
Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders
MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
The interviewer's biggest lie to deceive you, bypassing three years of less struggle
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Regular expressions and text processors for shell programming
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
随机推荐
How to be a professional software testing engineer? Listen to the byte five year old test
Zipper table in data warehouse (compressed storage)
On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it
After the Lunar New Year and a half
NLP pre training technology development
Selenium library 4.5.0 keyword explanation (4)
Tencent interview: can you pour water?
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Att & CK actual combat series - red team actual combat - V
Briefly understand the operation mode of developing NFT platform
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
BBS forum recommendation
STM32 key light
[about text classification trick] things you don't know
Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
P1656 bombing Railway
Analysis on the scale of China's smart health industry and prediction report on the investment trend of the 14th five year plan 2022-2028 Edition
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
[Mongodb] 2. Use mongodb --------- use compass
Recommendation of knowledge base management system