Forum
Sign Up

How to build QtitanSolution for Python?

1 year 2 months ago #7 by Eun-seop, Yu
I copyed xml file to rc\shared\PyQtitanFastInfoset\ folder.
After qmake and nmake, another error occurred.
LINK : fatal error LNK1181: cannot open input file 'release\chartobject_wrapper.obj'

Interestingly, the other *wrapper.obj that originally caused the link error seems to succeed.
So. I repeated qmake and nmake about 10 times.
It seemed like the build was finally complete.
However, I couldn't import the QtitanSolution module in Python.

code
from DevMachines.QtitanBase import WindowTitleBar
output
Traceback (most recent call last):
  File "c:\Qt\Developer Machines\PyQtitanComponents2022.4.0\examples\test.py", line 1, in <module>
    from DevMachines.QtitanBase import WindowTitleBar
ImportError: DLL load failed while importing QtitanBase:  %1 is not a valid Win32 application.

I don't understand why this error occurred.
I will try again after reinstalling visual studio.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #8 by Developer Machines

So. I repeated qmake and nmake about 10 times.
It seemed like the build was finally complete.


Perhaps there were some conflicts with different build options. It is better to take a clean source project.
I generated a project for the visual studio without any problems and compiled the python-bindings.
See my screenshot:

will try again after reinstalling visual studio.
%1 is not a valid Win32 application.

It is not a good idea to reinstall VS... This error means that you are trying to load 32 bit bindings into 64 bit python.
Most likely, you have not removed the 32-bit bindings that our installer installs in and the python process is trying to load these first. Please remove folder - c:\Users\{USER}\AppData\Roaming\Python\Python310\site-packages\DevMachines

Your 64bit bindings should be here - C:\Users\{USER}\AppData\Local\Programs\Python\Python310\Lib\site-packages\DevMachines\
Attachments:
The following user(s) said Thank You: Eun-seop, Yu

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #9 by Eun-seop, Yu
I apologize for the delay in responding.

The solution you gave me works fine.
On a 16GB RAM laptop, it still fails several times before succeeding.
On a 32GB RAM desktop, it succeeds once.

Thanks for the help.
And I found MSVC 64bit and Windows Python 3.10 64bit added to the download page today.
Thanks for the quick response, and I'm very happy that I don't have to build the source.

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.136 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )