当前位置:网站首页>Pupanvr create project and management script (2)
Pupanvr create project and management script (2)
2022-06-12 04:56:00 【hi_ LeTian】
Introduce
PUPANVR Is an open source embedded system NVR System , Designed to create a multi platform , Easy to use , The stability of the NVR System .
NVR Project description
Configuration of the project , Compilation is a reference Live555 Written in an open source way , It is mainly reflected in the root directory config Folder . But some scripts are from other chip manufacturers BSP You can take it in , For example, some scripts in Hisilicon security chip . Pay attention to the environment bash Used for debugging , Other environments have not been tested and used .
Purpose of the project
Implement different hardware in the same project , chip , Product function , Try to maintain a set of code .
Directory description
├── app Main application source code directory
├── config Product configuration catalog of different models
├── doc Document directory
├── hardware Some documents corresponding to different hardware
├── product Some documents corresponding to different products
└── tool Some tools will be packed when packaging , Put it here
Compile the way
1. For different products , For example, the hardware is different or the business is different , stay config Write a configuration file in the directory ; 2. Execute in the project directory ./config/genMakefiles P30 (P30 Is the corresponding product configuration file name ,config Under the table of contents ), This step will generate buildout Catalog , And generate... In the directory Makefile; 3. Execute directly under the project directory make app Compile application ;
stay buildout In the directory Makefile How is it generated , Please check out config Inside genMakefiles Related scripts .
In the past product development practice , Will face different hardware , Different product definitions , Function and other changes . In the project directory, a hardware The catalog of , Use this directory to isolate hardware related differences between different products .
stay product Directory , This directory can be used to isolate the differences between different products ,
also tool The subdirectories of the directory are used to distinguish and place files by chip , It is also convenient to distinguish different products , Different chip hardware , There may be some duplicate files .
app The directory stores the application engineering code , Use CMake To manage code scripts .
Product configuration example
Such as config In the directory P30 file , Content :
# Define the cross compilation tool chain
export PROJECT_CROSS_COMPILE=arm-hisiv600-linux
# Define the chip model
export DEV_CHIP=hi3536c
export DEV_OS=LINUX
export DEV_SDK=hi3536c
# Define the product model
export PRODUCT_SCRIPT=normal
# Product model
export PRODUCT_MODEL=P30
export PRODUCT_BOARD=P30
export PRODUCT_MODEL_NUMBER=PUPANVR
export PROJECT_CFLAGS=""
export PROJECT_CPPFLAGS=""Tool chains are defined respectively , Chip model , Product model , Hardware board end model , These macros will be imported into a header file through scripts , These macros can also be used in applications to distinguish different products !
边栏推荐
- Find missing sequence numbers - SQL query to find missing sequence numbers
- C asynchronous programming (async and await) and asynchronous method synchronous invocation
- Please calculate the value of the following function recursively: PX (x, n) =x-x^2 +x^3- x^4+... (-1) n-1) (xn) n > 0 * * input format requirements: "%lf%d" prompt: "enter X and n:"
- Link: fatal error lnk1168: cannot open debug/test Solution of exe for writing
- From science to startup
- [backtracking method] queen n problem
- JWT學習與使用
- These programming languages are worth learning
- Bearpi IOT lighting LED
- National land use data of 30m precision secondary classification
猜你喜欢

Some problems of Qinglong panel

National land use data of 30m precision secondary classification

How Bi makes SaaS products have a "sense of security" and "sensitivity" (Part I)

Ubunt 20.04 uses CDROM or ISO as the installation source

In the era of smart retail, Weimeng reshapes the value of "shopping guide"

Harris corner detection principle-
![[wechat applet] the mobile terminal selects and publishes pictures](/img/9a/46bc4a7bf9b70d26b0e24fe02f747d.jpg)
[wechat applet] the mobile terminal selects and publishes pictures

Based on Visual Studio code Net Maui cross platform mobile application development

1008 color classification

Longest palindrome string
随机推荐
Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days
Operation of simulated examination platform for theoretical question bank of G2 utility boiler stoker in 2022
2022 self study materials for Zhejiang computer level III network and security technology examination (1) (updated on 2.28)
[backtracking] backtracking method to solve combinatorial problems
Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data
JS to determine whether it is the first time to browse the web page
2022 low voltage electrician test questions and simulation test
Based on Visual Studio code Net Maui cross platform mobile application development
kali_ Nat mode, bridging Internet / host only_ detailed
Chapter 1
Bearpi IOT serial port transceiver 1- normal mode
2022 fusion welding and thermal cutting recurrent training question bank and simulation examination
SQL injection upload one sentence Trojan horse (turn)
LabVIEW about TDMS and Binary Storage Speed
When the build When gradle does not load the dependencies, and you need to add a download path in libraries, the path in gradle is not a direct downloadable path
Force/release learning and sorting in IC Verification (6) research on the influence of wire type signals
Ubunt 20.04 uses CDROM or ISO as the installation source
A complete set of installation procedures (for learning and communication only)
Sword finger offer30 days re brush
Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future