Qt installation

Qt installation

Anonymous
Not applicable
3,731 Views
31 Replies
Message 1 of 32

Qt installation

Anonymous
Not applicable

I am installing qt now.

 

I am using visual studio 2017 and 3ds max 2020.

 

under

https://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=__developer_writing_plug_ins_using_qt_with_3ds_...

It says I need install Qt 5.11.2, but there is only 5.12.2

qt install.PNG

I installed 5.12.2 and I do not know how to using the $(QTVER) and $(QTDIR) macros

 

Thanks very much!

0 Likes
3,732 Views
31 Replies
Replies (31)
Message 2 of 32

istan
Advisor
Advisor

a) a simple google returns: https://download.qt.io/archive/qt/

b) install QT Addin V2.4.0 - all newer versions dont work with VS2019 at least

c) are you familar with property sheets? The paths are described on the help page you already read:

  • By default, the SDK's $(QTDIR) is defined as <maxsdk>\Qt\<QtVersion>​. So you can copy the contents of your Qt install to this location. Or:
  • Change the definition of $(QTDIR) in <maxsdk>\ProjectSettings\​propertySheets\3dsmax.general.project.​settings.props to point to the installed version of Qt.
0 Likes
Message 3 of 32

Anonymous
Not applicable

qt install.PNG

There is no 5.11 either.

 

Capture.PNG

In the property sheet, I changed the version into 5.12.2.

Should I change the qt path in "$(MaxSdkDir)Qt\$(QTVER)\"?

Capture2.PNG

Here I copied the qt content under maxsdk.

 

Capture3.PNG

But I still get the error.

 

My qt visual studio tools version is 2.6.0.

 

Thanks very much

0 Likes
Message 4 of 32

istan
Advisor
Advisor

Hmm.. interesting!!

They aparently removed the file 'qt-opensource-windows-x86-5.11.2.exe' and 'qt-everywhere-src-5.11.2.zip' recently.

We should tell AD to make a copy on their servers.

0 Likes
Message 5 of 32

Anonymous
Not applicable

Oh..

 

I do not know how to tell them..

 

Do you know?

0 Likes
Message 6 of 32

omidt_gh
Enthusiast
Enthusiast

I alway use Qt 5.12 and it will work [erfectlly fine with 3dsmax 2020 and 2021. It's must be another issue.

Can you give me the exact problem in visual studio ?

0 Likes
Message 7 of 32

omidt_gh
Enthusiast
Enthusiast

Of course, you can try 3dsmax 2021 SDK if you are not sure, it will work with Qt 5.12.5 the version it's mostlly the minimum version not exaxt version.
But I always use qt 5.12.5 for both 3dsmax 2020 and 2021 and it's fine.

0 Likes
Message 8 of 32

Anonymous
Not applicable

OK, let me try.

 

Should I change the version in the property sheet?

 

0 Likes
Message 9 of 32

omidt_gh
Enthusiast
Enthusiast

You should edit these lines depend on the version and location of Qt you choose to install.

Around line 191....


<!-- Qt dependency -->
<!-- The Qt root directory is in capital letters because it is the default directory macro which gets automatically added
to your Qt project / custom build settings by the Qt Visual Studio AddIn. -->
<QTVER>$([MSBuild]::ValueOrDefault(`$(QTVER)`, `5.11.2`))</QTVER>
<QTDIR>$([MSBuild]::ValueOrDefault(`$(QTDIR)`, `$(MaxSdkDir)Qt\$(QTVER)\`))</QTDIR>
<QTDIR Condition="'$(IsMaxProjectInDevTree)'=='true'">$(MaxDevelDir)Qt\$(QTVER)\</QTDIR>
<QtMigrateLib>$(MaxDevelDir)QtWinMigrate\lib\</QtMigrateLib>
<QtMigrateLib Condition="'$(IsMaxProjectInDevTree)'=='false'">$(MaxSdkDir)QtWinMigrate\lib\</QtMigrateLib>
<QtMigrateInc>$(MaxDevelDir)</QtMigrateInc>
<QtMigrateInc Condition="'$(IsMaxProjectInDevTree)'=='false'">$(MaxSdkDir)</QtMigrateInc>

0 Likes
Message 10 of 32

istan
Advisor
Advisor

@omidt_gh wrote:

But I always use qt 5.12.5 for both 3dsmax 2020 and 2021 and it's fine.


A little remark: There exist differences, which forced me to use exactly 5.11.2 for Max2020-SP2. I forgot the details, but using the same DLL version fixed it (I created a non-modal QT dialog and mainly fighted with the stuff AD was overriding for using their layout colors). Qt claims being downwards but not upwards compatible. Afaik Max 2020 SP3 uses a newer QT version - but I could not get SP3 working (maybe due to my specific case).

0 Likes
Message 11 of 32

istan
Advisor
Advisor

@Anonymous wrote:

I do not know how to tell them..

Do you know?


I'll open a ticket.

0 Likes
Message 12 of 32

omidt_gh
Enthusiast
Enthusiast

If you asking me I prefer to create plugging without QT, because all dependency you need to use for 3dsmax is already too much, and use another one on top of that makes it harder and harder to upgrade and moving to the next 3dsmax.

Just use normal UI design tools, it is a little bit of pain in a... but You are going to get used to it.
in this case, it will be much easier to move to next 3dsmax SDK and next version, or you should keep many different QT version on you pc and keep tracking of each different version in addition of many things you already need to take care of just to be able to build your project for a different version of 3dsmax.
Do not go to that s... hole.

0 Likes
Message 13 of 32

istan
Advisor
Advisor
The more I use Qt, the more I like it! I also try now to get rid all these paramblk relations, where it's possible. Besides 'localization', which is much easier with Qt, I'm using the Qt ToolTip/Help system instead of writing docs. And if you need dynamically sized WinCtrls, I'd not even think about using WinApi anymore.
0 Likes
Message 14 of 32

omidt_gh
Enthusiast
Enthusiast

That's nice.
in some cases event the best solution.

Let me know about your progress.

And be careful with version and all things because you use Qt you need to store many different versions so you can compile your code in for a different versions of 3dsmax.

0 Likes
Message 15 of 32

istan
Advisor
Advisor

@omidt_gh wrote:

And be careful with version and all things because you use Qt you need to store many different versions so you can compile your code in for a different versions of 3dsmax.


I'm used to it since Max3 😉

and there are so many other different dependencies like windows-version, vc-runtime, dotnet, physx-ver,..

 

0 Likes
Message 16 of 32

istan
Advisor
Advisor
0 Likes
Message 17 of 32

attilaszabo
Alumni
Alumni

Hi everyone, for those interested to get the source code of the Qt version used by 3ds Max releases, please visit the public Autodesk forks on git: https://github.com/autodesk-forks/qtbase/releases

I hope this helps.

 

 

Attila Szabo
Product Owner, 3ds Max
Autodesk
0 Likes
Message 18 of 32

istan
Advisor
Advisor

Hi Attila,

thanks for the information!

0 Likes
Message 19 of 32

Anonymous
Not applicable

Mr attilaszabo:

 

Thanks for the file.

I think I need save them in a folder as "msvc2017_64", right?

Also, I think I need to build it as shown in 

https://doc.qt.io/archives/qt-5.11/windows-building.html

 

@istan 

Hi, istan:

 

Thanks for your resource. 

I think your file is the src. 

How can I build msvc2017_64 from src?

 

Thanks!

0 Likes
Message 20 of 32

omidt_gh
Enthusiast
Enthusiast

You do not need to build it, of course you can build from source but it's not necessarily .
just download the correct version from this address https://www.autodesk.com/company/legal-notices-trademarks/open-source-distribution and add it to your plugin source and wizard as it shown in 3dsmax SDK document.

0 Likes