<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Qt6 Debug C++ in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/qt6-debug-c/m-p/12877023#M258</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2777035"&gt;@cheng_xi_li&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I can't get my 2025 Qt plugin to load debug version, `Unable to dynamically load`, which suggests it can't get to Qt .dll's, correct?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Release version works fine. Is there part of the new recipe I'm missing? I've got a nasty bug and would love to attach and debug.&lt;BR /&gt;&lt;BR /&gt;I remember a &lt;A href="https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=Maya_SDK_Working_with_Qt_Using_Qt_in_Plug_ins_html" target="_blank" rel="noopener"&gt;note about Qt debug versions from 2022&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;# CMAKE for 2025
add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00)
set( libs Core Widgets Gui )
    find_qt( "${libs}" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debug version works in 2023/2024.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;#CMAKE 2023/2024
set(Qt5Core_VERSION_MAJOR 5)
    set(Qt5Core_VERSION_MINOR 15)
    elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
        set(QT_MOC_EXECUTABLE $ENV{DEVKIT_LOCATION}/devkit/bin/moc.exe)
        set(Qt5::Widgets_PATH $ENV{DEVKIT_LOCATION}/lib/Qt5Widgets.lib)
        set(Qt5::Core_PATH $ENV{DEVKIT_LOCATION}/lib/Qt5Core.lib)
        set(Qt5::Gui_PATH $ENV{DEVKIT_LOCATION}/lib/Qt5Gui.lib)
    endif()

    # Configure Qt moc
    add_executable(Qt5::moc IMPORTED)
    set_target_properties(Qt5::moc PROPERTIES IMPORTED_LOCATION ${QT_MOC_EXECUTABLE})
    list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "MOUSEBUTTONEVENT_H")
    set(CMAKE_AUTOMOC TRUE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 19:53:34 GMT</pubDate>
    <dc:creator>ZachGray</dc:creator>
    <dc:date>2024-07-03T19:53:34Z</dc:date>
    <item>
      <title>Qt6 Debug C++</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/qt6-debug-c/m-p/12877023#M258</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2777035"&gt;@cheng_xi_li&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I can't get my 2025 Qt plugin to load debug version, `Unable to dynamically load`, which suggests it can't get to Qt .dll's, correct?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Release version works fine. Is there part of the new recipe I'm missing? I've got a nasty bug and would love to attach and debug.&lt;BR /&gt;&lt;BR /&gt;I remember a &lt;A href="https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=Maya_SDK_Working_with_Qt_Using_Qt_in_Plug_ins_html" target="_blank" rel="noopener"&gt;note about Qt debug versions from 2022&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;# CMAKE for 2025
add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00)
set( libs Core Widgets Gui )
    find_qt( "${libs}" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debug version works in 2023/2024.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;#CMAKE 2023/2024
set(Qt5Core_VERSION_MAJOR 5)
    set(Qt5Core_VERSION_MINOR 15)
    elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
        set(QT_MOC_EXECUTABLE $ENV{DEVKIT_LOCATION}/devkit/bin/moc.exe)
        set(Qt5::Widgets_PATH $ENV{DEVKIT_LOCATION}/lib/Qt5Widgets.lib)
        set(Qt5::Core_PATH $ENV{DEVKIT_LOCATION}/lib/Qt5Core.lib)
        set(Qt5::Gui_PATH $ENV{DEVKIT_LOCATION}/lib/Qt5Gui.lib)
    endif()

    # Configure Qt moc
    add_executable(Qt5::moc IMPORTED)
    set_target_properties(Qt5::moc PROPERTIES IMPORTED_LOCATION ${QT_MOC_EXECUTABLE})
    list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "MOUSEBUTTONEVENT_H")
    set(CMAKE_AUTOMOC TRUE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 19:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/qt6-debug-c/m-p/12877023#M258</guid>
      <dc:creator>ZachGray</dc:creator>
      <dc:date>2024-07-03T19:53:34Z</dc:date>
    </item>
  </channel>
</rss>

