Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during compilation in Osx 11.0 #21

Closed
soreno123 opened this issue Dec 24, 2020 · 2 comments
Closed

Error during compilation in Osx 11.0 #21

soreno123 opened this issue Dec 24, 2020 · 2 comments

Comments

@soreno123
Copy link

soreno123 commented Dec 24, 2020

Hello,
When trying to compile with MatLab r2020a and 11.0 i get this error:

Error using mex
[cboulay snipped out warnings]
/Users/soren/bci/liblsl-Matlab/bin/../mex/lsl_pull_chunk_d.c:99:13: error: implicitly declaring library function
'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
memcpy(chunkptr,(*cur)->buffer,sizeof(double)*numchannels);
^
/Users/soren/bci/liblsl-Matlab/bin/../mex/lsl_pull_chunk_d.c:99:13: note: include the header <string.h> or explicitly
provide a declaration for 'memcpy'
5 warnings and 1 error generated.

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

I'm using latest version of Xcode (12.3) and the lib-lsl is liblsl.1.14.0.dylib compiled by myself.
Any Hint?
Thanks!

@soreno123
Copy link
Author

Resolved after adding
#include <strings.h> in following files
lsl_push_sample.c
lsl_pull_sample_d.c
lsl_pull_sample_buf.c
lsl_pull_chunk_d.c

@cboulay
Copy link
Contributor

cboulay commented Dec 24, 2020

Thanks very much for your report and solution. I'm going to reopen this until we've had a chance to update the source.

@cboulay cboulay reopened this Dec 24, 2020
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

No branches or pull requests

2 participants