当前位置:网站首页>[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 ;
边栏推荐
- Docking Alipay process [pay in person, QR code Payment]
- Idea integrates Microsoft TFs plug-in
- 挖财帮个人开的证券账户安全吗?是不是有套路
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Several ways to set up a blog locally [attach relevant software download links]
- Global and Chinese market of breast cancer imaging 2022-2028: Research Report on technology, participants, trends, market size and share
- Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
- Gossip about redis source code 78
- Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
猜你喜欢

Eight year test old bird, some suggestions for 1-3 year programmers
![[Mongodb] 2. Use mongodb --------- use compass](/img/d5/0eb7dd4c407fbf2e9ba1b175f5424d.jpg)
[Mongodb] 2. Use mongodb --------- use compass
![[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections](/img/c6/3dc7d01600f6713afdbb4cf3df5238.jpg)
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections

Reading notes on how programs run

MySQL is installed as a Windows Service

Interview script of Software Test Engineer

China standard gas market prospect investment and development feasibility study report 2022-2028

Struct in linked list

Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028

Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
随机推荐
What does redis do? Redis often practices grammar every day
Regular expressions and text processors for shell programming
Why use get/set instead of exposing properties
Generic
[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-
Generic tips
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Makefile judge custom variables
Selenium library 4.5.0 keyword explanation (4)
Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders
Similarities and differences of text similarity between Jaccard and cosine
The difference between objects and objects
Qtcharts notes (V) scatter diagram qscatterseries
What is the potential of pocket network, which is favored by well-known investors?
想请教一下,十大劵商如何开户?在线开户是安全么?
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)
Joint examination of six provinces 2017
Optimization of for loop
Is the low commission link on the internet safe? How to open an account for China Merchants Securities?
Alibaba cloud container service differentiation SLO hybrid technology practice