Skip to content

Compile and release for macOS via continous integration#3

Draft
ChristianFrisson wants to merge 23 commits intomainfrom
1-compile-and-release-via-continous-integration-bis
Draft

Compile and release for macOS via continous integration#3
ChristianFrisson wants to merge 23 commits intomainfrom
1-compile-and-release-via-continous-integration-bis

Conversation

@ChristianFrisson
Copy link
Copy Markdown
Member

@ChristianFrisson ChristianFrisson commented Apr 20, 2026

Closes: #1

Changelog

Deferred to subsequent pull requests

@ChristianFrisson ChristianFrisson self-assigned this Apr 20, 2026
@ChristianFrisson ChristianFrisson changed the title README.md: replace occurrences of github profiles: `mathiasbredholt… Compile and release via continous integration Apr 20, 2026
@ChristianFrisson
Copy link
Copy Markdown
Member Author

At 38d4074 workflow .github/workflows/cmake-multi-platform.yml gets finally triggered
build (ubuntu-latest, Release, gcc) fails
at step Configure CMake
with:

CMake Error at CMakeLists.txt:10 (message):
  libmapper library not found

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At d560a63
build (ubuntu-latest, Release, gcc) fails
at step Install libmapper
with:

Run jaxxstorm/action-install-gh-release@v1.10.0
==> System reported platform: linux
==> Using platform: linux
==> System reported arch: x64
==> Using arch: x64
==> Using default file extension matching: .(tar.gz|zip)
==> Binaries will be located at: /opt/hostedtoolcache/libmapper/libmapper/v2.5.1/linux-x64
Error: Not Found

Well https://github.com/libmapper/webmapper/releases/tag/2.5.1 only releases source code!

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At
build (macos-latest, Release, clang) fails
at step Install libmapper (macOS only)
with:

Run sudo brew install libmapper
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
Error: Process completed with exit code 1.

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At fca1274
build (macos-latest, Release, clang) fails
at step Configure CMake
with:

Run cmake -B /Users/runner/work/MapperUGen/MapperUGen/build -DCMAKE_CXX_COMPILER= -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release -DSUPERNOVA=ON -S /Users/runner/work/MapperUGen/MapperUGen
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

-- Configuring incomplete, errors occurred!
  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At b9d5d15
build (macos-latest, Release, clang) failed
at step Configure CMake
with:

Run cmake -B /Users/runner/work/MapperUGen/MapperUGen/build -DCMAKE_CXX_COMPILER= -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DSUPERNOVA=ON -S /Users/runner/work/MapperUGen/MapperUGen
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Project name is Mapper
-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:6 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
Error: Process completed with exit code 1.

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At 18c8879
build (macos-latest, Release, clang) failed
at step Configure CMake
with:

CMake Error at /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at least
  version "1.73.0")
Call Stack (most recent call first):
  /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
  /opt/homebrew/share/cmake/Modules/FindBoost.cmake:2440 (find_package_handle_standard_args)
  CMakeLists.txt:13 (find_package)

…er` to `install-dependencies` to also install boost
@ChristianFrisson
Copy link
Copy Markdown
Member Author

At 9ae4d88
build (macos-latest, Release, clang) failed
at step Build


Run cmake --build /Users/runner/work/MapperUGen/MapperUGen/build --config Release
[ 25%] Building CXX object CMakeFiles/Mapper.dir/Mapper.cpp.o
/Users/runner/work/MapperUGen/MapperUGen/Mapper.cpp:22:10: fatal error: 'mapper/mapper.h' file not found
   22 | #include <mapper/mapper.h>
      |          ^~~~~~~~~~~~~~~~~
1 error generated.

…specify `-main` to avoid triggering jobs twice when pushing commits to pull requests
@ChristianFrisson
Copy link
Copy Markdown
Member Author

At b8e27a0
build (macos-latest, Release, clang) failed
at step Build
with:


Run cmake --build /Users/runner/work/MapperUGen/MapperUGen/build --config Release
[ 25%] Building CXX object CMakeFiles/Mapper.dir/Mapper.cpp.o
/Users/runner/work/MapperUGen/MapperUGen/Mapper.cpp:30:10: fatal error: 'SC_PlugIn.h' file not found
   30 | #include "SC_PlugIn.h"
      |          ^~~~~~~~~~~~~
1 error generated.

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At
build (macos-latest, Release, clang) fails
at step Build
with:

Undefined symbols for architecture arm64:
  "std::exception::what() const", referenced from:
      vtable for std::__1::bad_function_call in Mapper.cpp.o
...

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At f0beaf9
build (macos-latest, Release, cc) succeeds!

@ChristianFrisson
Copy link
Copy Markdown
Member Author

ChristianFrisson commented Apr 21, 2026

At 1cb41bd
build (macos-latest, Release, cc) succeeds
But with:

Run actions/upload-artifact@v7
  with:
    name: MapperUGen-a33d12b-macos-latest-Release-cc
    path: build/MapperUGen/
    if-no-files-found: warn
    compression-level: 6
    overwrite: false
    include-hidden-files: false
    archive: true
  env:
    SHA_SHORT: a33d12b
  
Warning: No files were found with the provided path: build/MapperUGen/. No artifacts will be uploaded.

@ChristianFrisson
Copy link
Copy Markdown
Member Author

At 9619aa1
build (macos-latest, Release, cc) succeeds
With step "Upload artifact" :

@ChristianFrisson ChristianFrisson changed the title Compile and release via continous integration Compile and release for macOS via continous integration Apr 21, 2026
@Maxw3llGM
Copy link
Copy Markdown
Member

In the CMakeList.txt:

include_directories(Boost_INCLUDE_DIRS)

Should be placed in ${} to be treated as a variable. MapperUGen was not compiling on my end because it could not find Boost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile and release via continous integration

2 participants