Skip to content
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

Qt Quick Compiler #6

Closed
wants to merge 8 commits into from
Closed

Qt Quick Compiler #6

wants to merge 8 commits into from

Conversation

RaymiiOrg
Copy link
Owner

@RaymiiOrg RaymiiOrg commented Jan 4, 2024

Fails:

In file included from /usr/include/x86_64-linux-gnu/qt5/QtQml/qtqmlglobal.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQml/qqmlprivate.h:57,
                 from qmlcache_loader.cpp:1:
qmlcache_loader.cpp:89:25: error: redefinition of ‘int qInitResources_qt5()’
   89 | int QT_MANGLE_NAMESPACE(qInitResources_qt5)() {
      |                         ^~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’
  160 | # define QT_MANGLE_NAMESPACE(name) name
      |                                    ^~~~
qmlcache_loader.cpp:79:25: note: ‘int qInitResources_qt5()’ previously defined here
   79 | int QT_MANGLE_NAMESPACE(qInitResources_qt5)() {
      |                         ^~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’
  160 | # define QT_MANGLE_NAMESPACE(name) name
      |                                    ^~~~
qmlcache_loader.cpp:94:44: error: redefinition of ‘struct {anonymous}::qInitResources_qt5_ctor_class_’
   94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                                            ^~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:492:25: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’
  492 |     static const struct AFUNC ## _ctor_class_ { \
      |                         ^~~~~
qmlcache_loader.cpp:94:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
   94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      | ^~~~~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:94:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
   94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                        ^~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:84:44: note: previous definition of ‘struct {anonymous}::qInitResources_qt5_ctor_class_’
   84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                                            ^~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:492:25: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’
  492 |     static const struct AFUNC ## _ctor_class_ { \
      |                         ^~~~~
qmlcache_loader.cpp:84:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
   84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      | ^~~~~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:84:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
   84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                        ^~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:94:44: error: conflicting declaration ‘const int {anonymous}::qInitResources_qt5_ctor_instance_’
   94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                                            ^~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:494:7: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’
  494 |     } AFUNC ## _ctor_instance_; \
      |       ^~~~~
qmlcache_loader.cpp:94:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
   94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      | ^~~~~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:94:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
   94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                        ^~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:84:44: note: previous declaration as ‘const {anonymous}::qInitResources_qt5_ctor_class_ {anonymous}::qInitResources_qt5_ctor_instance_’
   84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                                            ^~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:494:7: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’
  494 |     } AFUNC ## _ctor_instance_; \
      |       ^~~~~
qmlcache_loader.cpp:84:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
   84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      | ^~~~~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:84:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
   84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5))
      |                        ^~~~~~~~~~~~~~~~~~~
qmlcache_loader.cpp:95:25: error: redefinition of ‘int qCleanupResources_qt5()’
   95 | int QT_MANGLE_NAMESPACE(qCleanupResources_qt5)() {
      |                         ^~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’
  160 | # define QT_MANGLE_NAMESPACE(name) name
      |                                    ^~~~
qmlcache_loader.cpp:85:25: note: ‘int qCleanupResources_qt5()’ previously defined here
   85 | int QT_MANGLE_NAMESPACE(qCleanupResources_qt5)() {
      |                         ^~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’
  160 | # define QT_MANGLE_NAMESPACE(name) name
      |                                    ^~~~
make: *** [Makefile:1193: qmlcache_loader.o] Error 1
make: *** Waiting for unfinished jobs....

@RaymiiOrg RaymiiOrg closed this Jan 4, 2024
@RaymiiOrg RaymiiOrg deleted the citest branch January 4, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant