Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Qt6 Debug C++

0 REPLIES 0
Reply
Message 1 of 1
ZachGray
140 Views, 0 Replies

Qt6 Debug C++

@cheng_xi_li 
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?


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.

I remember a note about Qt debug versions from 2022

# CMAKE for 2025
add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00)
set( libs Core Widgets Gui )
    find_qt( "${libs}" )

 

Debug version works in 2023/2024.

#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)

 

Zach

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report