PBWebcam - cross-platform camera access!

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
kenmo
Addict
Addict
Posts: 2032
Joined: Tue Dec 23, 2003 3:54 am

Re: PBWebcam - cross-platform camera access!

Post by kenmo »

dibor wrote: Mon Jul 14, 2025 4:49 pm I can not to run PBWebcam example under MacOS :(
Lib., do not find :(
Have put all folders to the right place, as shown in the install.md file and set right path in the source.
Looks like I did something wrong :(
I have not tested SDL3 + PBWebcam on Mac. But it should work fine if you get SDL3 installed correctly and loaded in PB. (I did have PB + SDL2 working on Mac before, but SDL2 didn't have webcam features.)

I think you need to download the latest SDL DMG file, and inside there find SDL3.framework, and copy that to your ~/Library/Frameworks.
https://github.com/libsdl-org/SDL/releases/latest
Some discussion: https://github.com/libsdl-org/SDL/issues/12009
Try defining #SDLx_UseImport = #True at the top of your PB code too.
Post Reply