-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Add Kinect SDK v2.x port #1414
Add Kinect SDK v2.x port #1414
Conversation
The core features of Kinect SDK v2 is no problem.
|
Ok, I've modified our existing Could you try this out (make sure to re-bootstrap vcpkg from this branch!) and confirm it all works for you? |
@ras0219-msft I tried it. The following error was displayed.
|
Add Kinect for Windows SDK v2.x port.
@ras0219-msft It has already been a long time, but I could not fix it. Thanks, Future Tasks: Add application features libraries of Kinect SDK v2. If it is possible, Please open new pull request. |
Currently, This port can't be used unless Kinect SDK v2.x is installed in users system. @ras0219-msft Which method do you think is better? # If Vcpkg contains WiX Toolset, this block is unnecessary.
# Please see this request (https://github.com/Microsoft/vcpkg/issues/1849).
set(WIX_DIR "${CURRENT_BUILDTREES_DIR}/src/wix")
vcpkg_download_distfile(WIX_ARCHIVE
URLS "https://github.com/wixtoolset/wix3/releases/download/wix311rtm/wix311-binaries.zip"
FILENAME "wix311-binaries.zip"
SHA512 74f0fa29b5991ca655e34a9d1000d47d4272e071113fada86727ee943d913177ae96dc3d435eaf494d2158f37560cd4c2c5274176946ebdb17bf2354ced1c516
)
vcpkg_extract_source_archive(${WIX_ARCHIVE} ${WIX_DIR})
# Download Kinect SDK v2.x
set(KINECTSDK20_VERSION "v2.0_1409")
vcpkg_download_distfile(KINECTSDK20_INSTALLER
URLS "https://download.microsoft.com/download/F/2/D/F2D1012E-3BC6-49C5-B8B3-5ACFF58AF7B8/KinectSDK-${KINECTSDK20_VERSION}-Setup.exe"
FILENAME "KinectSDK-${KINECTSDK20_VERSION}-Setup.exe"
SHA512 ae3b00f45282ab2ed6ea36c09e42e1b274074f41546ecfbe00facf1fffa2e5a762ffeffb9ba2194f716e8122e0fbd9a8ef63c62be68d2b50a40e4f8c5a821f5f
)
# Extract WiX Installer
set(KINECTSDK20_WIX_INSTALLER "${KINECTSDK20_INSTALLER}")
set(KINECTSDK20_WIX_EXTRACT_DIR "${CURRENT_BUILDTREES_DIR}/src/installer/wix")
vcpkg_execute_required_process(
COMMAND dark.exe -x ${KINECTSDK20_WIX_EXTRACT_DIR} ${KINECTSDK20_WIX_INSTALLER}
WORKING_DIRECTORY "${WIX_DIR}"
LOGNAME extract_wix_installer
)
# Extract MSI Installer
file(TO_NATIVE_PATH "${KINECTSDK20_WIX_EXTRACT_DIR}/AttachedContainer/KinectSDK-${KINECTSDK20_VERSION}-x64.msi" KINECTSDK20_MSI_INSTALLER)
file(TO_NATIVE_PATH "${CURRENT_BUILDTREES_DIR}/src/installer/msi" KINECTSDK20_MSI_EXTRACT_DIR)
file(TO_NATIVE_PATH "${CURRENT_BUILDTREES_DIR}/msiexec.log" MSIEXEC_LOG_PATH)
set(BATCH_FILE ${CURRENT_BUILDTREES_DIR}/msiextract-msmpi.bat)
file(WRITE ${BATCH_FILE} "msiexec.exe /a \"${KINECTSDK20_MSI_INSTALLER}\" /qn /log \"${MSIEXEC_LOG_PATH}\" TARGETDIR=\"${KINECTSDK20_MSI_EXTRACT_DIR}\"")
vcpkg_execute_required_process(
COMMAND ${BATCH_FILE}
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}
LOGNAME extract_msi_installer
)
# Set Kinect SDK v2.x Directory
set(KINECTSDK20_DIR "${CURRENT_BUILDTREES_DIR}/src/installer/msi/Microsoft SDKs/Kinect/${KINECTSDK20_VERSION}")
# Install Kinect SDK v2.x ... |
Could you comment for this proposal? Thanks, |
Related: #1904 (was merged). |
Extract WiX installer using Dark. It will be standalone extract files from installer of Kinect SDK 2.x even if Kinect SDK 2.x is not installed in user system.
@alexkaratarakis @ras0219-msft Fixed to extract Kinect SDK 2.x installer using Dark. |
Thanks a ton! |
Add Kinect for Windows SDK v2.x port.