Closed MoritzKn closed 2 years ago
There now have been 3 PRs for this issue (the first got closed??) @jarikomppa please do something...
Gonna add another bump for fixing this, the PR https://github.com/jarikomppa/soloud/pull/302 would solve the problem
I have the same issue
Apologies, I don't compile on apple platforms myself.
@jarikomppa Thank you for merging the PR, now I get the following errors when trying to build for mac
/Users/miguel/src/prototype/bin/soloud/src/tools/lutgen/main.cpp:149:18: fatal error: use of undeclared identifier '_stricmp'; did you mean 'strcmp'?
if (parc < 2 || _stricmp(pars[1], "go") != 0)
^~~~~~~~
strcmp
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/string.h:77:6: note: 'strcmp' declared here
int strcmp(const char *__s1, const char *__s2);
^
7 warnings and 1 error generated.
make[2]: *** [CMakeFiles/common.dir/bin/soloud/src/tools/lutgen/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/Users/miguel/src/prototype/bin/soloud/src/backend/vita_homebrew/soloud_vita_homebrew.cpp:31:10: fatal error: 'psp2/audioout.h' file not found
#include <psp2/audioout.h>
^~~~~~~~~~~~~~~~~
1 error generated.
/Users/miguel/src/prototype/bin/soloud/src/tools/sanity/sanity.cpp:103:12: fatal error: member reference type 'struct timespec' is not a pointer; did you mean to use '.'?
return (ts->tv_sec * 1000) + (ts->tv_nsec / 1000000)
~~^~
.
1 error generated.
make[2]: *** [CMakeFiles/common.dir/bin/soloud/src/tools/sanity/sanity.cpp.o] Error 1
make[2]: *** [CMakeFiles/common.dir/bin/soloud/src/backend/vita_homebrew/soloud_vita_homebrew.cpp.o] Error 1
make[1]: *** [CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2
Do you think there is an easy solution for this?
First, I don't think you need to compile lutgen or sanity, and unless you're writing software for ps vita I don't think you need the vita_homebrew either..
But if you do want to compile those, I think the mac equivalent of _stricmp is strcasecmp.
Ah perfect, I removed those and it works fine now. thanks!
Sounds like this is fixed?
Build works on OSX.
On OSX:
Current master: (4d72336a8855f3f421f95ec75cda9062da3fe7eb)