[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2874: QT4 compilation error with last Gambas DEV sources


http://gambaswiki.org/bugtracker/edit?object=BUG.2874&from=L21haW4-

Olivier CRUILLES reported a new bug.

Summary
-------

QT4 compilation error with last Gambas DEV sources

Type             : Bug
Priority         : High
Gambas version   : Master
Product          : Development Environment


Description
-----------

Hello,

Compilation failed with the last Gambas DEV commit, today.

Fedora 38


Making install in gb.qt4
Making install in src
Making install in .
  CXX      gb_qt4_la-main_moc.lo
  CXX      gb_qt4_la-CWidget_moc.lo
  CXX      gb_qt4_la-CWindow_moc.lo
  CXX      gb_qt4_la-CWindow.lo
CWindow.cpp: In function 'int get_screen_number(QWidget*)':
CWindow.cpp:399:30: error: 'screens' is not a member of 'QApplication'
  399 |         return QApplication::screens().indexOf(widget->screen());
      |                              ^~~~~~~
CWindow.cpp:399:56: error: 'class QWidget' has no member named 'screen'
  399 |         return QApplication::screens().indexOf(widget->screen());
      |                                                        ^~~~~~
make[3]: *** [Makefile:881: gb_qt4_la-CWindow.lo] Error 1
make[2]: *** [Makefile:1313: install-recursive] Error 1
make[1]: *** [Makefile:471: install-recursive] Error 1
make: *** [Makefile:448: install-recursive] Error 1


Olivier


System information
------------------

[main] bcc45afda686ab92120fadc95484e143bae0d4d2 - commit 1 of 11765                                                                                        0%
commit bcc45afda686ab92120fadc95484e143bae0d4d2
Refs: [master], {origin/master}, {origin/HEAD}, 3.18.0-862-gbcc45afda
Author:     Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
AuthorDate: Sat Mar 9 00:22:43 2024 +0100
Commit:     Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
CommitDate: Sat Mar 9 00:22:43 2024 +0100

    [CONFIGURATION]
    * NEW: Update 'lunar' compilation in '.gitlab-ci.yml' so that it compiles the new 'gb.qt6' component.
    * NEW: New components based on Qt6.

    [DEVELOPMENT ENVIRONMENT]
    * NEW: Support for new GUI component 'gb.qt6'.

    [GB.QT4]
    * NEW: Update source code for 'gb.qt6'.

    [GB.QT5]
    * NEW: Update source code for 'gb.qt6'.

    [GB.QT6]
    * NEW: New component based on Qt6.

    [GB.QT6.EXT]
    * NEW: New component based on Qt6.

    [GB.QT6.OPENGL]
    * NEW: New component based on Qt6.

    [GB.QT6.WEBVIEW]
    * NEW: New component based on Qt6.

    [GB.QT6.WAYLAND]
    * NEW: New component based on Qt6.

    [GB.QT6.X11]
    * NEW: New component based on Qt6.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----