Qt6/CMake:包括 Microsoft Store 应用的崩溃符号

Qt6/CMake: Include crash symbols for Microsoft Store app

提问人:Paul Masri-Stone 提问时间:9/20/2023 更新时间:9/20/2023 访问量:26

问:

如何告诉CMake包含符号,以便崩溃报告可以符号化,对于作为Microsoft Store应用程序构建的Qt6应用程序?

我正在将 Qt6.5 与 CMake 3.24 一起使用。


如果它有帮助,这里是我当前 CMake 结构的摘要(对于最小项目):

cmake_minimum_required(VERSION 3.24)

project(MyTarget VERSION 1.0.0 LANGUAGES CXX)

find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)

qt_standard_project_setup()

qt_add_executable(MyTarget main.cpp)

qt_add_qml_module(MyTarget URI Primary VERSION 1.0 QML_FILES Main.qml)

set_target_properties(MyTarget PROPERTIES
  WIN32_EXECUTABLE TRUE
)

target_link_libraries(MyTarget PRIVATE Qt6::Quick)

install(TARGETS MyTarget
  BUNDLE_DESTINATION .
  LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}"
  RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}"
)

qt_generate_deploy_qml_app_script(
  TARGET MyTarget
  OUTPUT_SCRIPT deploy_script
)

install(SCRIPT ${deploy_script})
include(InstallRequiredSystemLibraries)

#Configure AppxManifest.xml
#Install AppxManifest.xml and assets in ${CMAKE_INSTALL_PREFIX}
#Install CODE to pack, bundle and sign the app:
#  makeappx pack ...
#  makeappx bundle ...
#  signtool sign ...

这将进行配置、生成和安装,以生成可上传到 Microsoft 合作伙伴中心的文件。.appxbundle

cmake windows-10 崩溃报告 qt6 symbolicatecrash

评论


答: 暂无答案