当前位置:网站首页>[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\includeNDKRoot\sysroot\usr\includeNDKRoot\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 ;
边栏推荐
- MySQL winter vacation self-study 2022 12 (1)
- Gossip about redis source code 77
- system. Exit (0) and system exit(1)
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- NLP Chinese corpus project: large scale Chinese natural language processing corpus
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- Generic
- Entropy and full connection layer
- Gossip about redis source code 76
- I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
猜你喜欢

Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method

Test the influence of influent swacth on the electromagnetic coil of quartz meter

A method to solve Bert long text matching
![P3371 [template] single source shortest path (weakened version)](/img/c5/bcb22e1ea573253005e56ebbd73bb7.jpg)
P3371 [template] single source shortest path (weakened version)

JDBC Technology

Data mining vs Machine Learning: what is the difference between them? Which is more suitable for you to learn

Idea set class header comments
![[GNN] hard core! This paper combs the classical graph network model](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[GNN] hard core! This paper combs the classical graph network model

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

What is the Valentine's Day gift given by the operator to the product?
随机推荐
Speed up the energy Internet of things. What can low-power Internet of things technology represented by Zeta do?
What does redis do? Redis often practices grammar every day
2020.2.14
Enter MySQL in docker container by command under Linux
P1656 bombing Railway
Smart fan system based on stm32f407
Is user authentication really simple
A method to solve Bert long text matching
P3371 [template] single source shortest path (weakened version)
Make small tip
[GNN] hard core! This paper combs the classical graph network model
Selenium library 4.5.0 keyword explanation (I)
Stock price forecast
On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
AI Challenger 2018 text mining competition related solutions and code summary
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Five high-frequency questions were selected from the 200 questions raised by 3000 test engineers
MySQL winter vacation self-study 2022 12 (1)
Solution to the impact of Remote Code Execution Vulnerability of log4j2 component on December 9, 2021