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

Building from source for Max 7 - compile tweaks #2

Open
thely opened this issue Apr 13, 2016 · 0 comments
Open

Building from source for Max 7 - compile tweaks #2

thely opened this issue Apr 13, 2016 · 0 comments

Comments

@thely
Copy link

thely commented Apr 13, 2016

I'm working on a Max 7 patch that I hope to use [py] in. After building from source the first time, I encountered the following:

source/pybase.cpp:490:16: error: no matching function for call to 'locatefile_extended'
    bool ok = !locatefile_extended(smod,&path,&type,&type,0);
               ^~~~~~~~~~~~~~~~~~~
/Users/Shared/Max 7/Packages/max-sdk/source/c74support/max-includes/ext_path.h:310:7: note: 
      candidate function not viable: no known conversion from 'long *' to 't_fourcc *'
      (aka 'unsigned int *') for 3rd argument
short locatefile_extended(char *name, short *outvol, t_fourcc *outtype, C74_CONST t_f...
      ^
source/pybase.cpp:500:15: error: no matching function for call to 'locatefile_extended'
        ok = !locatefile_extended(smod,&path,&type,&type,1);
              ^~~~~~~~~~~~~~~~~~~
/Users/Shared/Max 7/Packages/max-sdk/source/c74support/max-includes/ext_path.h:310:7: note: 
      candidate function not viable: no known conversion from 'long *' to 't_fourcc *'
      (aka 'unsigned int *') for 3rd argument
short locatefile_extended(char *name, short *outvol, t_fourcc *outtype, C74_CONST t_f...
      ^

One quick change and it compiled. Suggested addendum to the Max SDK tweaks section:

In the Max 7 SDK change the file 
source\c74support\max-includes\ext_path.h, line 310

from
short locatefile_extended(char *name, short *outvol, t_fourcc *outtype, C74_CONST t_fourcc *filetypelist, short numtypes);

to
short locatefile_extended(char *name, short *outvol, long *outtype, C74_CONST long *filetypelist, short numtypes);

Running Max 7.2.1, Mac OSX 10.9.5

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

1 participant