Skip to content

How to generate under Qt 5.15.2 and 6? #68

Description

@Sepera-okeq

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?

Activity

  1. iakov commented on Jan 21, 2023

    @iakov
    Contributor
    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
  2. locked and limited conversation to collaborators on Dec 15, 2023
  3. converted this issue into a discussion #170 on Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions