Skip to content

Issue with building mex Mac M1 #40

@gkumar2021

Description

@gkumar2021

Hi,

I am getting the following error while running the build mex file on Mac M1. I will appreciate if you could help with this.

build_mex
Building mex files. This may take a few minutes.
lsl_append_child.mexmaca64 up to date
lsl_append_child_value.mexmaca64 up to date
lsl_append_copy.mexmaca64 up to date
lsl_child.mexmaca64 up to date
lsl_child_value.mexmaca64 up to date
lsl_child_value_n.mexmaca64 up to date
Building with 'Xcode with Clang'.
Error using mex
/Users/gautamkumar/Downloads/liblsl-Matlab/bin/../mex/lsl_close_stream.c:29:10: warning:
incompatible pointer types assigning to 'lsl_close_stream_t' (aka 'void (*)(void *)') from
'lsl_close_stream_t *' (aka 'void (**)(void )'); dereference with *
[-Wincompatible-pointer-types]
func = (lsl_close_stream_t
)*pTmp;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
*
/Users/gautamkumar/Downloads/liblsl-Matlab/bin/../mex/lsl_close_stream.c:35:10: error:
incompatible integer to pointer conversion passing 'uint64_T' (aka 'unsigned long long') to
parameter of type 'inlet' (aka 'void *') [-Wint-conversion]
func(out);
^~~
1 warning and 1 error generated.

Error in build_mex (line 35)
mex(['-I', lsl_include_dir], '-L.', libs{:}, ['../mex/', f.name]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions