Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

max 2018 SDK+Qt \howto\ui\cuitest CUITest.dlu failed to initialize Error 126...

max 2018 SDK+Qt \howto\ui\cuitest CUITest.dlu failed to initialize Error 126...

Anonymous
Not applicable
2,542 Views
9 Replies
Message 1 of 10

max 2018 SDK+Qt \howto\ui\cuitest CUITest.dlu failed to initialize Error 126...

Anonymous
Not applicable

Hi, i`m using 3ds Max 2018 SDK\maxsdk\howto\ui\cuitest

OS: Windows 10

VS 2015 update 3 + Qt VS tools + windows SDk 10.0.10586.0

Qt - Qt\Qt5.6.2\5.6\msvc2015_64\

compiling CUITest.dlu to \3ds Max 2018\stdplugs\

And get msg "CUITest.dlu failed to initialize Error 126."

 

0 Likes
Accepted solutions (2)
2,543 Views
9 Replies
Replies (9)
Message 2 of 10

drew_avis
Autodesk
Autodesk
Hi there, I tried out the sample and am seeing the same thing in 3ds Max 2018, and it looks like it's an issue in 2019 as well. I'm opening a defect to have this looked at. Thank you for reporting it - I'll post an update when I find out more about why it's failing. Drew


Drew Avis
Content Experience Designer
0 Likes
Message 3 of 10

Anonymous
Not applicable
Thank You! I think it is not working because 2018 and 2019 3ds max using Qt , In 3ds max 2016 and 2017 cuitest work perfect without Qt. But using Qt is a good thing.
0 Likes
Message 4 of 10

drew_avis
Autodesk
Autodesk
Hi there, so the issue is that the wrong QtWidgets.lib is specified in the project settings. In the project properties, for your active config (release or hybrid), under Configuration Properties > Linker > Input, change the Qt5Widgetsd.lib to Qt5Widgets.lib (no "d" for debug). I'm not seeing the icons though. We will have to update this sample to use the Qt way of loading multi-res icons. Hope that helps, Drew


Drew Avis
Content Experience Designer
0 Likes
Message 5 of 10

drew_avis
Autodesk
Autodesk
Can't seem to edit previous posts... the icons work if you copy the bitmap files to UI_Ln\IconsDark (not Icons, as indicated in the demo comments) if you are using the default Dark theme. Drew


Drew Avis
Content Experience Designer
0 Likes
Message 6 of 10

Anonymous
Not applicable
i have Debug x64 my C/C++ -> General -> Additional Include Directories : D:\soft\3ds Max 2018 SDK\maxsdk\Qt\5.6.2\include\ D:\soft\3ds Max 2018 SDK\maxsdk\include\Qt my Linker -> General -> Additional Library Directories : D:\Soft\3ds Max 2018 SDK\maxsdk\lib\x64\Release D:\soft\3ds Max 2018 SDK\maxsdk\Qt\5.6.2\lib\ My Input: comctl32.lib; kernel32.lib; user32.lib; gdi32.lib; winspool.lib; comdlg32.lib; advapi32.lib; shell32.lib; ole32.lib; oleaut32.lib; uuid.lib; bmm.lib; core.lib; geom.lib; gfx.lib; mesh.lib; maxutil.lib; maxscrpt.lib; Qt5Cored.lib; Qt5Guid.lib; Qt5Widgetsd.lib; // for Debug ---------------------- I try Qt5Widgetsd.lib; for Debug and Qt5Widgets.lib; without d for Release but not working... CUITest.dlu failed to initialize Error 126
0 Likes
Message 7 of 10

Anonymous
Not applicable
And when i delete all string in Post-Build-Event the project is compiling without errors but plugin not load with error 126.. but when i put post-Build-Event string to command line - > "$([System.IO.Path]::GetFullPath('$(MaxSdkDir)/tools/RunMUIRCT.exe'))" -o "$([System.IO.Path]::GetFullPath('$(TargetDir)'))\" -f $(TargetFileName) -t "$([System.IO.Path]::GetFullPath('$(IntDir)'))\" i have an errors: 1) Severity Code Description Project File Line Suppression State Error MSB3075 The command ""D:\soft\3ds Max 2018 SDK\maxsdk\tools\RunMUIRCT.exe" -o "D:\soft\3ds Max 2018\stdplugs\\" -f CUITest.dlu -t "D:\soft\3ds Max 2018 SDK\maxsdk\obj\x64\Debug\ToolbarAPI\\" :VCEnd" exited with code 5. Please verify that you have sufficient rights to run this command. ToolbarAPI C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133 2) Severity Code Description Project File Line Suppression State Error MSB3075 The command ""D:\soft\3ds Max 2018 SDK\maxsdk\tools\RunMUIRCT.exe" -o "D:\soft\3ds Max 2018\stdplugs\\" -f CUITest.dlu -t "D:\soft\3ds Max 2018 SDK\maxsdk\obj\x64\Debug\ToolbarAPI\\" :VCEnd" exited with code 5. Please verify that you have sufficient rights to run this command. ToolbarAPI C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133 how to fix it?
0 Likes
Message 8 of 10

drew_avis
Autodesk
Autodesk
Accepted solution
For release config, can you change all Qt libs to release as well? Qt5Cored.lib; Qt5Guid.lib; Qt5Widgetsd.lib; Drew


Drew Avis
Content Experience Designer
0 Likes
Message 9 of 10

Anonymous
Not applicable
wow nice! Debug and Release configure using Release Qt libs!
0 Likes
Message 10 of 10

Anonymous
Not applicable
Accepted solution
Thank You!=)
0 Likes