Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

How to generate under Qt 5.15.2 and 6? #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sepera-okeq opened this issue Dec 11, 2021 · 1 comment
Closed

How to generate under Qt 5.15.2 and 6? #68

Sepera-okeq opened this issue Dec 11, 2021 · 1 comment

Comments

@Sepera-okeq
Copy link

Sepera-okeq commented Dec 11, 2021

How to generate code for Qt 5.15.2 and 6?
My generator is not working properly:

Please wait while source files are being generated...
Parsing typesystem file [:/trolltech/generator/build_all.txt]
Fatal error: line=1, column=1, message=unexpected end of file

Fatal error: line=2, column=62, message=Failed to parse: 'typesystem_core.xml'

Cannot parse file: ':/trolltech/generator/build_all.txt'

How to fix it, is it a problem of this project? And how to create your own configuration (.xml) files?

And another question. I would like to control which functions can be used in Python.
That is, the ability to cut out functions so that they cannot be used. Is it possible with this generator?

@iakov
Copy link
Contributor

iakov commented Jan 21, 2023

  1. Set QTDIR to some dir. It is better to create a folder like qt5dir_for_generator and symlink /usr/include/x86_64-linux-gnu/qt5/include into it. Then export QTDIR=.....
  2. run pythonqt_generator from the generator folder, where those *.xmls are located
  3. use ../generated_cpp

@MeVisLab MeVisLab locked and limited conversation to collaborators Dec 15, 2023
@mrbean-bremen mrbean-bremen converted this issue into discussion #170 Dec 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants