@@ -313,19 +313,26 @@ Cortex.cpp is available with a Network Installer, which is a smaller installer b
313
313
314
314
### Build from Source
315
315
316
+ Firstly, clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) and initialize the submodules:
317
+
318
+ ``` bash
319
+ git clone https://github.com/janhq/cortex.cpp
320
+ cd cortex.cpp
321
+ git submodule update --init --recursive
322
+ ```
323
+
316
324
#### Windows
317
325
318
- 1 . Clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) .
319
- 2 . Navigate to the ` engine ` folder.
320
- 3 . Configure the vpkg:
326
+ 1 . Navigate to the ` engine ` folder.
327
+ 2 . Configure the vpkg:
321
328
322
329
``` bash
323
330
cd vcpkg
324
331
./bootstrap-vcpkg.bat
325
332
vcpkg install
326
333
```
327
334
328
- 4 . Build the Cortex.cpp inside the ` engine/build ` folder:
335
+ 3 . Build the Cortex.cpp inside the ` engine/build ` folder:
329
336
330
337
``` bash
331
338
mkdir build
@@ -334,25 +341,24 @@ cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_
334
341
cmake --build . --config Release
335
342
```
336
343
337
- 5 . Verify that Cortex.cpp is installed correctly by getting help information.
344
+ 4 . Verify that Cortex.cpp is installed correctly by getting help information.
338
345
339
346
``` sh
340
347
cortex -h
341
348
```
342
349
343
350
#### MacOS
344
351
345
- 1 . Clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) .
346
- 2 . Navigate to the ` engine ` folder.
347
- 3 . Configure the vpkg:
352
+ 1 . Navigate to the ` engine ` folder.
353
+ 2 . Configure the vpkg:
348
354
349
355
``` bash
350
356
cd vcpkg
351
357
./bootstrap-vcpkg.sh
352
358
vcpkg install
353
359
```
354
360
355
- 4 . Build the Cortex.cpp inside the ` engine/build ` folder:
361
+ 3 . Build the Cortex.cpp inside the ` engine/build ` folder:
356
362
357
363
``` bash
358
364
mkdir build
@@ -361,25 +367,24 @@ cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo/vcpkg/script
361
367
make -j4
362
368
```
363
369
364
- 5 . Verify that Cortex.cpp is installed correctly by getting help information.
370
+ 4 . Verify that Cortex.cpp is installed correctly by getting help information.
365
371
366
372
``` sh
367
- cortex -h
373
+ ./ cortex -h
368
374
```
369
375
370
376
#### Linux
371
377
372
- 1 . Clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) .
373
- 2 . Navigate to the ` engine ` folder.
374
- 3 . Configure the vpkg:
378
+ 1 . Navigate to the ` engine ` folder.
379
+ 2 . Configure the vpkg:
375
380
376
381
``` bash
377
382
cd vcpkg
378
383
./bootstrap-vcpkg.sh
379
384
vcpkg install
380
385
```
381
386
382
- 4 . Build the Cortex.cpp inside the ` engine/build ` folder:
387
+ 3 . Build the Cortex.cpp inside the ` engine/build ` folder:
383
388
384
389
``` bash
385
390
mkdir build
@@ -388,10 +393,10 @@ cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo/vcpkg/script
388
393
make -j4
389
394
```
390
395
391
- 5 . Verify that Cortex.cpp is installed correctly by getting help information.
396
+ 4 . Verify that Cortex.cpp is installed correctly by getting help information.
392
397
393
398
``` sh
394
- cortex -h
399
+ ./ cortex -h
395
400
```
396
401
397
402
#### Devcontainer / Codespaces
0 commit comments