Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit c6446f7

Browse files
committed
chore: correct build steps
1 parent 6cda3ee commit c6446f7

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Cortex.cpp is available with a Network Installer, which is a smaller installer b
266266
#### Windows
267267

268268
1. Clone the Cortex.cpp repository [here](https://github.com/janhq/cortex.cpp).
269-
2. Navigate to the `engine > vcpkg` folder.
269+
2. Navigate to the `engine` folder.
270270
3. Configure the vpkg:
271271

272272
```bash
@@ -275,16 +275,16 @@ cd vcpkg
275275
vcpkg install
276276
```
277277

278-
4. Build the Cortex.cpp inside the `build` folder:
278+
4. Build the Cortex.cpp inside the `engine/build` folder:
279279

280280
```bash
281281
mkdir build
282282
cd build
283-
cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
283+
cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
284+
cmake --build . --config Release
284285
```
285286

286-
5. Use Visual Studio with the C++ development kit to build the project using the files generated in the `build` folder.
287-
6. Verify that Cortex.cpp is installed correctly by getting help information.
287+
5. Verify that Cortex.cpp is installed correctly by getting help information.
288288

289289
```sh
290290
# Get the help information
@@ -294,7 +294,7 @@ cortex -h
294294
#### MacOS
295295

296296
1. Clone the Cortex.cpp repository [here](https://github.com/janhq/cortex.cpp).
297-
2. Navigate to the `engine > vcpkg` folder.
297+
2. Navigate to the `engine` folder.
298298
3. Configure the vpkg:
299299

300300
```bash
@@ -303,17 +303,16 @@ cd vcpkg
303303
vcpkg install
304304
```
305305

306-
4. Build the Cortex.cpp inside the `build` folder:
306+
4. Build the Cortex.cpp inside the `engine/build` folder:
307307

308308
```bash
309309
mkdir build
310310
cd build
311-
cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder/vcpkg/scripts/buildsystems/vcpkg.cmake
311+
cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo/vcpkg/scripts/buildsystems/vcpkg.cmake
312312
make -j4
313313
```
314314

315-
5. Use Visual Studio with the C++ development kit to build the project using the files generated in the `build` folder.
316-
6. Verify that Cortex.cpp is installed correctly by getting help information.
315+
5. Verify that Cortex.cpp is installed correctly by getting help information.
317316

318317
```sh
319318
# Get the help information
@@ -323,7 +322,7 @@ cortex -h
323322
#### Linux
324323

325324
1. Clone the Cortex.cpp repository [here](https://github.com/janhq/cortex.cpp).
326-
2. Navigate to the `engine > vcpkg` folder.
325+
2. Navigate to the `engine` folder.
327326
3. Configure the vpkg:
328327

329328
```bash
@@ -332,17 +331,16 @@ cd vcpkg
332331
vcpkg install
333332
```
334333

335-
4. Build the Cortex.cpp inside the `build` folder:
334+
4. Build the Cortex.cpp inside the `engine/build` folder:
336335

337336
```bash
338337
mkdir build
339338
cd build
340-
cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder/vcpkg/scripts/buildsystems/vcpkg.cmake
339+
cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo/vcpkg/scripts/buildsystems/vcpkg.cmake
341340
make -j4
342341
```
343342

344-
5. Use Visual Studio with the C++ development kit to build the project using the files generated in the `build` folder.
345-
6. Verify that Cortex.cpp is installed correctly by getting help information.
343+
5. Verify that Cortex.cpp is installed correctly by getting help information.
346344

347345
```sh
348346
# Get help

0 commit comments

Comments
 (0)