zeromq / czmq

High-level C binding for ØMQ
czmq.zeromq.org
Mozilla Public License 2.0
1.18k stars 525 forks source link

Create an OSC message from a string #2288

Closed sphaero closed 3 months ago

sphaero commented 3 months ago

Problem: it's not easy to create a message simply by describing it like how a message can be printed as a string Solution: Add zosc_fromstring method enabling the creation of message from a string

Also added test code.

A message can be constructed as follows:

zosc_t* msg = zosc_fromstring("/stringmsg ihfdscF 32 64 1.100000 3.140000 hello q");
sphaero commented 3 months ago

MacOS is failing mysteriously:

travis_fold:start:dependency.libzmqInstall dependency libzmq
travis_fold:end:dependency.libzmq
travis_fold:start:dependency.uuidInstall dependency uuid
travis_fold:end:dependency.uuid
travis_fold:start:dependency.systemdInstall dependency systemd
WARNING: Can not build prerequisite 'systemd'
because neither tarball nor repository sources are known for it,
and it was not installed as a package; this may cause the test to fail!
travis_fold:end:dependency.systemd
travis_fold:start:dependency.lz4Install dependency lz4
travis_fold:end:dependency.lz4
travis_fold:start:dependency.libcurlInstall dependency libcurl
travis_fold:end:dependency.libcurl
travis_fold:start:dependency.nssInstall dependency nss
WARNING: Can not build prerequisite 'nss'
because neither tarball nor repository sources are known for it,
and it was not installed as a package; this may cause the test to fail!
travis_fold:end:dependency.nss
travis_fold:start:dependency.libmicrohttpdInstall dependency libmicrohttpd
travis_fold:end:dependency.libmicrohttpd
travis_fold:start:build.draftBuild and check this project with DRAFT APIs
Wed Jun 19 14:21:37 UTC 2024: INFO: Starting build of currently tested project with DRAFT APIs...
Error: Process completed with exit code 1.

No idea why.

Valgrind check is failing on zhttp_client?

Windows is failing on missing libsodium

- Could NOT find sodium (missing: SODIUM_LIBRARIES SODIUM_INCLUDE_DIRS) 
CMake Error at CMakeLists.txt:283 (message):
  libsodium requested but not found, you may want to install libsodium and
  run cmake again
-- Configuring incomplete, errors occurred!
sphaero commented 3 months ago

Trying to debug this. Macos has moved to macos14. Autogen is failing. No idea why

 + fold_start build.draft 'Build and check this project with DRAFT APIs'

+ set +x
+ echo ''
++ date
+ echo 'Fri Jun 21 12:30:08 UTC 2024: INFO: Starting build of currently tested project with DRAFT APIs...'
+ CCACHE_BASEDIR=/Users/runner/work/czmq/czmq/czmq
+ export CCACHE_BASEDIR
+ '[' default = default-with-docs ']'
+ '[' -n '' ']'
+ CONFIG_OPTS+=("${CONFIG_OPT_WERROR}")
+ ./autogen.sh
Fri Jun 21 12:30:08 UTC 2024: INFO: Starting build of currently tested project with DRAFT APIs...
sphaero commented 3 months ago

Ok, problem found: https://github.com/zeromq/zproject/pull/1337

Creating a separate PR to fix this

sphaero commented 3 months ago

rebased against master and regenerated from zproject as problems were fixed upstream