11# Building C/C++ Barcode Reader with CMake
22
3- Version 7.5
3+ Version 8.0
44
55## License
66Get the [ trial license] ( https://www.dynamsoft.com/CustomerPortal/Portal/Triallicense.aspx ) .
@@ -31,23 +31,21 @@ https://www.dynamsoft.com/Company/Contact.aspx
3131 ```
3232 set(CMAKE_INSTALL_PREFIX "e:/${PROJECT_NAME}")
3333 ```
34- 4. Generate project configuration files for win32 :
34+ 4. Generate project configuration files:
3535 ```bash
36- cmake ..
37- ```
36+ // x86
37+ cmake -DCMAKE_GENERATOR_PLATFORM=x86 ..
3838
39- For win64:
40- ```bash
41- cmake -G"Visual Studio 14 2015 Win64" ..
39+ // x64
40+ cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
4241 ```
43- 5. Build and install the project:
42+ 5. Build the project:
4443 ```
45- cmake --build . --target install
44+ cmake --build . --config release
4645 ```
47466. Run the app:
4847 ```
49- cd e:\BarcodeReader\bin
50- BarcodeReader [image-file] [optional: license-file] [optional: template-file]
48+ Release\BarcodeReader [image-file] [optional: license-file] [optional: template-file]
5149 ```
5250
5351## Linux
@@ -61,13 +59,13 @@ https://www.dynamsoft.com/Company/Contact.aspx
6159 mkdir build
6260 cd build
6361 ```
64- 4. Build and install the project:
62+ 4. Build the project:
6563 ```bash
66- sudo cmake --build . --target install
64+ cmake --build . --config release
6765 ```
68665. Run the app:
6967 ```
70- BarcodeReader [image-file] [optional: license-file] [optional: template-file]
68+ ./ BarcodeReader [image-file] [optional: license-file] [optional: template-file]
7169 ```
7270
7371## macOS
@@ -83,16 +81,16 @@ https://www.dynamsoft.com/Company/Contact.aspx
8381 cd build
8482 ```
8583
86- 4. Build and install the project:
84+ 4. Build the project:
8785
8886 ```bash
89- cmake --build . --target install
87+ cmake --build . --config release
9088 ```
9189
92905. Run the app:
9391
9492 ```
95- BarcodeReader [image-file] [optional: license-file] [optional: template-file]
93+ ./ BarcodeReader [image-file] [optional: license-file] [optional: template-file]
9694 ```
9795
9896## Screenshot
0 commit comments