From de9301ed87f1f5a19b0db85354268d7eea75f1ba Mon Sep 17 00:00:00 2001 From: TdSch Date: Fri, 6 Nov 2020 20:51:03 -0500 Subject: [PATCH 1/3] Updates Build from sources instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e8bc1b..2a07da2 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,20 @@ Installer packages for older releases are available from the [Releases page](htt ### Building from Source -If you want to build from source, you need Xcode. You can build the project and the plugin should be automatically copied into `/Library/CoreMediaIO/Plug-Ins/DAL` to be available to the system. However, apps with _Library Validation_ enabled will need to have codesigning disabled to be able to access the plugin, see the **Known Issues** section below. +If you want to build from source, you need Xcode. For each target you need to manually change the TeamId to match your developer certificate. + +The build process will automatically copy the plugin into `/Library/CoreMediaIO/Plug-Ins/DAL` to be available to the system. +Therefore you need to grant your user read-write to the following folders +- `/Library/CoreMediaIO/Plug-Ins/DAL/` +- `/Library/LaunchAgents/` +- `/Library/LaunchDaemons/` + +Two build phases require to sudo commands, therefore you will need to setup your KeyChain with an `xcode_bash` password. You can follow instructions [here](https://forum.juce.com/t/build-script-for-automatically-moving-built-aus-into-components-folder-xcode/13112). +You also need to replace `dog` by your username in two places +- `askpass.sh` +- Build Phase _load launchd_ for `org.ptpwebcam.ptpwebcamdalplugin` + +However, apps with _Library Validation_ enabled will need to have codesigning disabled to be able to access the plugin, see the **Known Issues** section below. ### Testing the Installation From 8399085fab3312dbee6a2257b3f6625439f9a379 Mon Sep 17 00:00:00 2001 From: TdSch Date: Fri, 6 Nov 2020 20:55:49 -0500 Subject: [PATCH 2/3] Adds RX100 Mark 7 to the list of supported Cameras Also keeps track of the Alpha 99 Id as it is not supported for Live Preview --- PtpWebcamDalPlugin/PtpCameraSony.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PtpWebcamDalPlugin/PtpCameraSony.m b/PtpWebcamDalPlugin/PtpCameraSony.m index 885f8c3..c7296a6 100644 --- a/PtpWebcamDalPlugin/PtpCameraSony.m +++ b/PtpWebcamDalPlugin/PtpCameraSony.m @@ -57,6 +57,7 @@ + (void) initialize @(0x054C) : @{ @(0x079B) : @[@"Sony", @"A68"], @(0x079C) : @[@"Sony", @"A6300"], + //@(0x0641) : @[@"Sony", @"SLT-A99V"], //PTP connection works but does not support Live Preview. Even in Sony own's software https://support.d-imaging.sony.co.jp/app/imagingedge/en/devices/#amount @(0x079E) : @[@"Sony", @"A99-II"], @(0x07A4) : @[@"Sony", @"A6500"], @(0x0953) : @[@"Sony", @"A77-II"], @@ -70,6 +71,7 @@ + (void) initialize @(0x0C34) : @[@"Sony", @"A7S-III"], // A7 III second entry @(0x0CAA) : @[@"Sony", @"A6400"], @(0x0CCC) : @[@"Sony", @"A7R-IV"], + @(0x0CAE) : @[@"Sony", @"DSC-RX100M7"], }, }; From b655ebc6960ee21e50140b275bb808f136e73f2b Mon Sep 17 00:00:00 2001 From: TdSch Date: Fri, 6 Nov 2020 21:21:16 -0500 Subject: [PATCH 3/3] Adds log message with camera information if model is not supported --- PtpWebcamLaunchAgent/PtpWebcamLaunchAgentAppDelegate.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PtpWebcamLaunchAgent/PtpWebcamLaunchAgentAppDelegate.m b/PtpWebcamLaunchAgent/PtpWebcamLaunchAgentAppDelegate.m index 7f513ff..838f184 100644 --- a/PtpWebcamLaunchAgent/PtpWebcamLaunchAgentAppDelegate.m +++ b/PtpWebcamLaunchAgent/PtpWebcamLaunchAgentAppDelegate.m @@ -354,6 +354,8 @@ - (void)deviceBrowser:(ICDeviceBrowser*)browser didAddDevice:(ICDevice*)camera m camera.delegate = self; [camera requestOpenSession]; + } else { + PtpLog(@"Not supported camera detected. Brand = 0x%x; Model = 0x%x", camera.usbVendorID, camera.usbProductID); } }