22
33Version 8.0
44
5- ## License
6- Get the [ trial license] ( https://www.dynamsoft.com/CustomerPortal/Portal/Triallicense.aspx ) .
5+ ## Requirements
6+ - [ Visual Studio] ( https://www.visualstudio.com/downloads/ )
7+ - [ CMake] ( https://cmake.org/download/ )
8+ - [ Dynamsoft Barcode Reader v8.0] ( https://www.dynamsoft.com/barcode-reader/downloads ) (Windows x86/x64, Linux x64, macOS x64 and Raspberry Pi ARMv7)
79
8- Set the license key in ` BarcodeReader.cxx ` :
10+ ## License
11+ Get a [ trial license] ( https://www.dynamsoft.com/customer/license/trialLicense ) and set the license key in ` BarcodeReader.cxx ` :
912
10- ```
13+ ``` cpp
1114reader.InitLicense(" LICENSE-KEY" );
1215```
1316
1417## Contact Us
1518https://www.dynamsoft.com/Company/Contact.aspx
1619
1720## Windows
18- ### Installation
19- * [ Visual Studio Community] ( https://www.visualstudio.com/downloads/ )
20- * [ cmake-3.9.5-win64-x64.msi] ( https://cmake.org/files/v3.9/cmake-3.9.5-win64-x64.msi )
21- * [ Dynamsoft Barcode Reader v7.5] ( https://www.dynamsoft.com/Downloads/Downloads.aspx ) (Windows x86/x64, Linux x64, macOS x64 and Raspberry Pi ARMv7)
22-
23- ### Steps
24211 . Copy ` DBRx86.lib/DBRx64.lib ` to ` platforms\win\lib ` and copy ` DynamsoftBarcodeReaderx86.dll/DynamsoftBarcodeReaderx64.dll ` to ` platforms\win\bin ` folder.
25222 . Create a ** build** folder:
2623 ```
2724 mkdir build
2825 cd build
2926 ```
30- 3. Edit **CMakeLists.txt** to replace the installation path with yours:
31- ```
32- set(CMAKE_INSTALL_PREFIX "e:/${PROJECT_NAME}")
33- ```
34- 4. Generate project configuration files:
27+ 3. Configure and build the project:
3528 ```bash
3629 // x86
3730 cmake -DCMAKE_GENERATOR_PLATFORM=x86 ..
3831
3932 // x64
4033 cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
41- ```
42- 5. Build the project:
43- ```
34+
4435 cmake --build . --config release
4536 ```
46376. Run the app:
4738 ```
4839 Release\BarcodeReader [image-file] [optional: license-file] [optional: template-file]
4940 ```
5041
51- ## Linux
42+ ## Linux and Raspberry Pi OS
52431. Install **CMake**:
5344 ```bash
5445 sudo apt-get install cmake
5546 ```
56- 2. Download [Dynamsoft Barcode Reader for Linux](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-for-Linux-Download.aspx). Copy **libDynamsoftBarcodeReader.so** to **platforms\linux**.
47+ 2. Copy **libDynamsoftBarcodeReader.so** to **platforms\linux**.
57483. Create a **build** folder:
5849 ```
5950 mkdir build
6051 cd build
6152 ```
62- 4. Build the project:
53+ 4. Configure and build the project:
6354 ```bash
55+ cmake ..
6456 cmake --build . --config release
6557 ```
66585. Run the app:
@@ -73,17 +65,18 @@ https://www.dynamsoft.com/Company/Contact.aspx
7365 ```bash
7466 brew install cmake
7567 ```
76- 2. Download [Dynamsoft Barcode Reader for macOS](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=macos&version=5.2). Copy **libDynamsoftBarcodeReader.dylib** to **platforms\macos**.
68+ 2. Copy **libDynamsoftBarcodeReader.dylib** to **platforms\macos**.
77693. Create a **build** folder:
7870
7971 ```
8072 mkdir build
8173 cd build
8274 ```
8375
84- 4. Build the project:
76+ 4. Configure and build the project:
8577
8678 ```bash
79+ cmake ..
8780 cmake --build . --config release
8881 ```
8982
0 commit comments