From b89e47cbc63a3a621203eefb1f41d7f7a27ec55c Mon Sep 17 00:00:00 2001 From: Albert Shturnev <114603993+ifYouAlbert@users.noreply.github.com> Date: Thu, 19 Mar 2026 21:31:00 +0300 Subject: [PATCH 1/5] Fixed thread linking on MacOS, include --- CMakeLists.txt | 7 ++++++- samples/vision/main.cpp | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c49ce8..9df9a83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,12 @@ function(build_indk LIBTYPE) include_directories(deps/facefull-bridge/include) find_package(Threads REQUIRED) - target_link_libraries(${PROJECT_NAME}${LIBTYPE} Threads::Threads -latomic) + target_link_libraries(${PROJECT_NAME}${LIBTYPE} Threads::Threads) + + if(UNIX AND NOT APPLE) + target_link_libraries(${PROJECT_NAME}${LIBTYPE} -latomic) + endif() + target_link_libraries(${PROJECT_NAME}${LIBTYPE} ${CMAKE_CURRENT_BINARY_DIR}/deps/facefull-bridge/libfacefull-bridge_static.a) if (WIN32) diff --git a/samples/vision/main.cpp b/samples/vision/main.cpp index b176cf8..2372747 100644 --- a/samples/vision/main.cpp +++ b/samples/vision/main.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include "bmp.hpp" From 255ec1eb1db9f36b5a5e43ecffacbe095698f1e5 Mon Sep 17 00:00:00 2001 From: NickWare Date: Thu, 19 Mar 2026 21:59:14 +0300 Subject: [PATCH 2/5] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b52f10..ee9e9e9 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ This framework is highly scalable. It is suitable for both powerful computing cl |:------------------------------:|:---:|:-------:|:--------:|:---:| | **Windows** | + | + | | | | **Linux** | + | + | + | + | +| **MacOS** | + | + | | | | **QNX** | + | | + | | ---------------------------------------------------------------- @@ -170,5 +171,5 @@ All files will be in `dist` directory. #### Windows Just run `build.cmd` script. -#### Linux +#### Linux / MacOS Just run `build.sh` script. From df58b31c5e3dfefc788218617b92bb25485c9c8f Mon Sep 17 00:00:00 2001 From: NickWare Date: Thu, 19 Mar 2026 22:11:08 +0300 Subject: [PATCH 3/5] Create cmake-macos-build.yml --- .github/workflows/cmake-macos-build.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cmake-macos-build.yml diff --git a/.github/workflows/cmake-macos-build.yml b/.github/workflows/cmake-macos-build.yml new file mode 100644 index 0000000..9ee77c8 --- /dev/null +++ b/.github/workflows/cmake-macos-build.yml @@ -0,0 +1,29 @@ +name: Interference NDK (macOS) + +on: [push, pull_request] + +jobs: + build: + # Используем актуальный образ macOS (Intel или Apple Silicon) + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Configure CMake + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release + + - name: Build project + run: cmake --build build --config Release + + - name: Install project + run: cmake --install build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: indk-macos-arm64-clang + path: dist/ From 8b76bd9843a4779cb723ebd890ed6921a1e486f6 Mon Sep 17 00:00:00 2001 From: NickWare Date: Thu, 19 Mar 2026 22:15:34 +0300 Subject: [PATCH 4/5] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ee9e9e9..1ca1d27 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ Cross-platform C++ library - universal neurobiology-based machine learning frame Version 3.1.0

+[![Interference NDK (windows)](https://github.com/nickware-group/interference/actions/workflows/cmake-windows-build.yml/badge.svg)](https://github.com/nickware-group/interference/actions/workflows/cmake-windows-build.yml) + [![Interference NDK (linux)](https://github.com/nickware-group/interference/actions/workflows/cmake-linux-build.yml/badge.svg)](https://github.com/nickware-group/interference/actions/workflows/cmake-linux-build.yml) -[![Interference NDK (windows)](https://github.com/nickware-group/interference/actions/workflows/cmake-windows-build.yml/badge.svg)](https://github.com/nickware-group/interference/actions/workflows/cmake-windows-build.yml) +[![Interference NDK (macOS)](https://github.com/nickware-group/interference/actions/workflows/cmake-macos-build.yml/badge.svg)](https://github.com/nickware-group/interference/actions/workflows/cmake-macos-build.yml) ---------------------------------------------------------------- ### WHAT IS INTERFERENCE NDK From 66a92b9ed8e29d259a1a6298b92bd7738018a52b Mon Sep 17 00:00:00 2001 From: Albert Shturnev <114603993+ifYouAlbert@users.noreply.github.com> Date: Thu, 19 Mar 2026 22:43:57 +0300 Subject: [PATCH 5/5] Fixed apple condition --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9df9a83..37ef887 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ function(build_indk LIBTYPE) find_package(Threads REQUIRED) target_link_libraries(${PROJECT_NAME}${LIBTYPE} Threads::Threads) - if(UNIX AND NOT APPLE) + if (NOT APPLE) target_link_libraries(${PROJECT_NAME}${LIBTYPE} -latomic) endif()