Is UOS compatible with new Mac OS 64 bits systems

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Al
Reply | Threaded
Open this post in threaded view
|

Is UOS compatible with new Mac OS 64 bits systems

Al
I am considering using PortAudio for Mic input in Mac OS.  Is PortAudio still developped for the new 64 bits systems like Mojave, Catalina, etc.
If not can you suggest another mean?
This is in  Lazarus.
Thanks for putting UOS together and maintaining this forum.

In the mean time I will download UOS and start experimenting.

Al
Reply | Threaded
Open this post in threaded view
|

Re: Is UOS compatible with new Mac OS 64 bits systems

fredvs
Administrator
Hello and welcome to uos forum!

> Is PortAudio still developped for the new 64 bits systems like Mojave, Catalina, etc.

Afaik, yes, see:
http://portaudio.com/docs/v19-doxydocs/compile_mac_coreaudio.html

uos provides binaries of PortAudio for Mac 32 and 64 bit.
They are in /uos/examples/lib/Mac/64bit and /32bit.

I dont have a Mac but many users have good luck with uos and a Mac.

Fre;D
Al
Reply | Threaded
Open this post in threaded view
|

Re: Is UOS compatible with new Mac OS 64 bits systems

Al
Good I'll give it a try.
Thank you
Al
Reply | Threaded
Open this post in threaded view
|

Re: Is UOS compatible with new Mac OS 64 bits systems

Al
UOS does a dynamic load of the library.  This means this is loaded at run time Yes ?
Is there a way to have the library included in the exe, so I do not have to distribute the lib file with the exec?
Reply | Threaded
Open this post in threaded view
|

Re: Is UOS compatible with new Mac OS 64 bits systems

fredvs
Administrator
Mac OSX uses bundle for application.

https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1

I am not Apple pro but you just have to add the uos libraries in the Ressource-files directory of the bundle.
Those Apple Ressource files can only be loaded by dynamic loading and so does uos.

Maybe you should ask in Apple forum how to create a bundle-application.
In the uos examples, the libraries in the bundle must be in  /UOS/lib (but you may choose a other name for the directory):

{$IFDEF Darwin}
    opath := ExtractFilePath(ParamStr(0));
    opath := copy(opath, 1, Pos('/UOS', opath) - 1);
    PA_FileName := opath + '/lib/Mac/32bit/LibPortaudio-32.dylib';
    SF_FileName := opath + '/lib/Mac/32bit/LibSndFile-32.dylib';
 {$ENDIF}

Fre;D


Fre;D
Al
Reply | Threaded
Open this post in threaded view
|

Re: Is UOS compatible with new Mac OS 64 bits systems

Al
OK thank you, I am familiar with the bundle concept.