@@ -285,7 +285,7 @@ Cortex releases 2 preview versions for advanced users to try new features early
285285#### Windows
286286
2872871 . Clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) .
288- 2 . Navigate to the ` engine > vcpkg ` folder.
288+ 2 . Navigate to the ` engine ` folder.
2892893 . Configure the vpkg:
290290
291291``` bash
@@ -294,16 +294,16 @@ cd vcpkg
294294vcpkg install
295295```
296296
297- 4 . Build the Cortex.cpp inside the ` build ` folder:
297+ 4 . Build the Cortex.cpp inside the ` engine/ build` folder:
298298
299299``` bash
300300mkdir build
301301cd build
302- cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
302+ 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
303+ cmake --build . --config Release
303304```
304305
305- 5 . Use Visual Studio with the C++ development kit to build the project using the files generated in the ` build ` folder.
306- 6 . Verify that Cortex.cpp is installed correctly by getting help information.
306+ 5 . Verify that Cortex.cpp is installed correctly by getting help information.
307307
308308``` sh
309309cortex -h
@@ -312,7 +312,7 @@ cortex -h
312312#### MacOS
313313
3143141 . Clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) .
315- 2 . Navigate to the ` engine > vcpkg ` folder.
315+ 2 . Navigate to the ` engine ` folder.
3163163 . Configure the vpkg:
317317
318318``` bash
@@ -321,17 +321,16 @@ cd vcpkg
321321vcpkg install
322322```
323323
324- 4 . Build the Cortex.cpp inside the ` build ` folder:
324+ 4 . Build the Cortex.cpp inside the ` engine/ build` folder:
325325
326326``` bash
327327mkdir build
328328cd build
329- cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder /vcpkg/scripts/buildsystems/vcpkg.cmake
329+ cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo /vcpkg/scripts/buildsystems/vcpkg.cmake
330330make -j4
331331```
332332
333- 5 . Use Visual Studio with the C++ development kit to build the project using the files generated in the ` build ` folder.
334- 6 . Verify that Cortex.cpp is installed correctly by getting help information.
333+ 5 . Verify that Cortex.cpp is installed correctly by getting help information.
335334
336335``` sh
337336cortex -h
@@ -340,7 +339,7 @@ cortex -h
340339#### Linux
341340
3423411 . Clone the Cortex.cpp repository [ here] ( https://github.com/janhq/cortex.cpp ) .
343- 2 . Navigate to the ` engine > vcpkg ` folder.
342+ 2 . Navigate to the ` engine ` folder.
3443433 . Configure the vpkg:
345344
346345``` bash
@@ -349,17 +348,16 @@ cd vcpkg
349348vcpkg install
350349```
351350
352- 4 . Build the Cortex.cpp inside the ` build ` folder:
351+ 4 . Build the Cortex.cpp inside the ` engine/ build` folder:
353352
354353``` bash
355354mkdir build
356355cd build
357- cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder /vcpkg/scripts/buildsystems/vcpkg.cmake
356+ cmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder_in_cortex_repo /vcpkg/scripts/buildsystems/vcpkg.cmake
358357make -j4
359358```
360359
361- 5 . Use Visual Studio with the C++ development kit to build the project using the files generated in the ` build ` folder.
362- 6 . Verify that Cortex.cpp is installed correctly by getting help information.
360+ 5 . Verify that Cortex.cpp is installed correctly by getting help information.
363361
364362``` sh
365363cortex -h
0 commit comments