当前位置:网站首页>[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 ;
边栏推荐
- 国元证券开户是真的安全可靠吗
- Optimization of for loop
- Pair
- Recommendation of knowledge base management system
- Generic
- Why use get/set instead of exposing properties
- After the Lunar New Year and a half
- (Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
- What is the Valentine's Day gift given by the operator to the product?
- SQL data update
猜你喜欢
Is user authentication really simple
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Idea set class header comments
Interview script of Software Test Engineer
Idea a method for starting multiple instances of a service
MySQL is installed as a Windows Service
[PHP basics] cookie basics, application case code and attack and defense
Iclr2022: how does AI recognize "things I haven't seen"?
SPI based on firmware library
It is forbidden to splice SQL in code
随机推荐
CSP window
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Gossip about redis source code 81
A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
P1339 [USACO09OCT]Heat Wave G
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Reading notes on how programs run
Analysis: misunderstanding of choosing WMS warehouse management system
挖财帮个人开的证券账户安全吗?是不是有套路
Gossip about redis source code 73
The frost peel off the purple dragon scale, and the xiariba people will talk about database SQL optimization and the principle of indexing (primary / secondary / clustered / non clustered)
Recommendation of knowledge base management system
The difference between objects and objects
UTS | causal reasoning random intervention based on Reinforcement Learning
STM32 key light
Idea a method for starting multiple instances of a service
(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
Social network analysis -social network analysis
Selenium library 4.5.0 keyword explanation (4)