From 637adf0387575db008c87c7d894f82e89b9de982 Mon Sep 17 00:00:00 2001 From: jfaustino Date: Fri, 10 Jul 2026 01:31:35 -0300 Subject: [PATCH 1/4] Include LibArchive in CMakeLists.txt --- example/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index c1a9e5667e0..5bbd121e302 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -25,13 +25,14 @@ else() endif() find_package(Boost REQUIRED CONFIG COMPONENTS date_time iostreams thread) +find_package(LibArchive REQUIRED) link_directories(${LibOSRM_LIBRARY_DIRS}) add_executable(osrm-example example.cpp) find_package(LibOSRM REQUIRED) -set(LibOSRM_LINKABLE_LIBRARIES ${LibOSRM_LIBRARIES} ${LibOSRM_DEPENDENT_LIBRARIES}) +set(LibOSRM_LINKABLE_LIBRARIES ${LibOSRM_LIBRARIES} ${LibOSRM_DEPENDENT_LIBRARIES} LibArchive::LibArchive) list(REMOVE_DUPLICATES LibOSRM_LINKABLE_LIBRARIES) target_link_libraries(osrm-example ${LibOSRM_LINKABLE_LIBRARIES}) include_directories(SYSTEM ${LibOSRM_INCLUDE_DIRS}) From 27af13fd5eba52b4d7e48d51d4f3879089112108 Mon Sep 17 00:00:00 2001 From: jfaustino Date: Fri, 10 Jul 2026 01:45:13 -0300 Subject: [PATCH 2/4] Fix relative path in docs --- example/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/README.md b/example/README.md index 50ef83796c1..d504d5f5409 100644 --- a/example/README.md +++ b/example/README.md @@ -23,7 +23,7 @@ cd example/ mkdir build && cd build/ cmake .. cmake --build . -./osrm-example ../test/data/mld/monaco.osrm +./osrm-example ../../test/data/mld/monaco.osrm ``` The expected output is the distance and duration of the route set in the `example.cpp`. From 3b5b92f2f91cb186b6d5eef486d2071238d296e2 Mon Sep 17 00:00:00 2001 From: jfaustino Date: Fri, 10 Jul 2026 01:46:22 -0300 Subject: [PATCH 3/4] Update text according to a change in dependency --- example/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/README.md b/example/README.md index d504d5f5409..3b14eb77e69 100644 --- a/example/README.md +++ b/example/README.md @@ -30,7 +30,7 @@ The expected output is the distance and duration of the route set in the `exampl ### `example.js` -To run this module in Node.js you need to install [node-cmake](https://www.npmjs.com/package/node-cmake) in the project's repo root level and pass the flag `-DENABLE_NODE_BINDINGS=On` when building the main project. +To run this module in Node.js you need to pass the flag `-DENABLE_NODE_BINDINGS=On` when building the main project. Refer to the sub-section on preparing test data for the application in this document. From bee36a6e185b553bcfd3c0d0ffedc6c90c4c3edb Mon Sep 17 00:00:00 2001 From: jfaustino Date: Fri, 10 Jul 2026 01:46:56 -0300 Subject: [PATCH 4/4] Update text according to the current node version in use for building --- example/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/README.md b/example/README.md index 3b14eb77e69..8199058b8a4 100644 --- a/example/README.md +++ b/example/README.md @@ -48,7 +48,7 @@ You can reliably change the thread pool size of the process by setting the `UV_T UV_THREADPOOL_SIZE=16 node example.js ``` -See https://nodejs.org/docs/latest-v18.x/api/os.html#osavailableparallelism for more info. +See https://nodejs.org/docs/latest-v20.x/api/os.html#osavailableparallelism for more info. Then you can test it with: