diff --git a/m_files/build_mex.m b/m_files/build_mex.m index ce8daed..40b5316 100644 --- a/m_files/build_mex.m +++ b/m_files/build_mex.m @@ -91,7 +91,8 @@ build_args = {build_args{:}, ['-L', cell2mat(lib_dirs(n))]}; else %don't use -L prefix in Windows Matlab to make compatible with more versions of Matlab - build_args = {build_args{:}, ['LIB#', cell2mat(lib_dirs(n)), ';$LIB']}; + %build_args = {build_args{:}, ['LIB#', cell2mat(lib_dirs(n)), ';$LIB']}; + build_args = {build_args{:}, ['-L', cell2mat(lib_dirs(n))]}; end else print_flush('build_mex: Unable to find ''%s''\n', cell2mat(lib_dirs(n))); diff --git a/m_files/compile_playrec_func.m b/m_files/compile_playrec_func.m index 08ff31e..4c2b4b2 100644 --- a/m_files/compile_playrec_func.m +++ b/m_files/compile_playrec_func.m @@ -124,10 +124,10 @@ if ~isempty(sdk_path) api_include_dirs = [api_include_dirs,... - resolve_paths(sdk_path, {'include', 'lib'})]; + resolve_paths(sdk_path, {'Include', 'Lib/x64'})]; % Add library path, not using -L for backward compatibility, % apart from with octave that needs to use it - lib_dirs = [lib_dirs, resolve_paths(sdk_path, {'lib'})]; + lib_dirs = [lib_dirs, resolve_paths(sdk_path, {'Lib/x64'})]; end if use_asio @@ -159,10 +159,10 @@ % Add library path, not using -L for backward compatibility, % apart from with octave that needs to use it - if exist(resolve_paths(dsound_path, {'lib/x64'}),'dir') - lib_dirs = [lib_dirs, resolve_paths(dsound_path, {'lib/x64'})]; + if exist(resolve_paths(dsound_path, {'Lib/x64'}),'dir') + lib_dirs = [lib_dirs, resolve_paths(dsound_path, {'Lib/x64'})]; else - lib_dirs = [lib_dirs, resolve_paths(dsound_path, {'lib/x86'})]; + lib_dirs = [lib_dirs, resolve_paths(dsound_path, {'Lib/x86'})]; end compiler_flags = [compiler_flags, {'PA_USE_DS'}];