[Gambas-user] [Gambas Bug Tracker] Bug #1059: Compilation fails with Qt 5.7

bugtracker at ...3416... bugtracker at ...3416...
Sat Jan 7 06:37:37 CET 2017


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

Eduardo SANCHEZ reported a new bug.

Summary
-------

Compilation fails with Qt 5.7

Type             : Bug
Priority         : Medium
Gambas version   : 3.9
Product          : Unknown


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

This report is valid for Gambas 3.9.2

I use Slackware64-current. I have both Qt 4 (4.8.7) and Qt 5 (5.7.0) in a dual setup.
In order to compile, I followed the steps outlined in the relevant wiki: ./reconf-all && ./configure -C && make

However, compilation fails when gambas goes to build gb_qt5. 
The problem is that Qt 5.7 requires C++11. Now, even despite I tried to set the CXXFLAGS env variable to "-std=c++11", compilation fails. It seems that gambas does not honor that variable.
I even tried to hack the Makefile *after* ./configure -C to add that CXXFLAGS variable to no avail.

This is the first error shown:

/usr/lib64/qt5/bin/moc -o main_moc.cpp main.h
  CXX      gb_qt5_la-main_moc.lo
In file included from /usr/include/qt5/QtCore/qatomic.h:46:0,
                 from /usr/include/qt5/QtCore/qglobal.h:1145,
                 from /usr/include/qt5/QtCore/qnamespace.h:43,
                 from /usr/include/qt5/QtCore/qcoreevent.h:43,
                 from /usr/include/qt5/QtCore/QEvent:1,
                 from main.h:30,
                 from main_moc.cpp:9:
/usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support"
 #  error "Qt requires C++11 support"
    ^

Thanks,

Eduardo


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

This is something I pasted with Gambas 3.9.0, which I built before the upgrade to Qt 5.7 and continues to operate normally.

[System]
Gambas=3.9
OperatingSystem=Linux
Kernel=4.4.38
Architecture=x86_64
Distribution=slackware Slackware 14.2
Desktop=KDE5
Theme=Breeze
Language=es_PY.UTF-8
Memory=11916M

[Libraries]

[Environment]
CPLUS_INCLUDE_PATH=/usr/lib64/qt/include
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-HqhA8X74HO,guid=9b0a399f4a8f1580e07f0bac58701f8d
DESKTOP_SESSION=/usr/share/xsessions/plasma
DISPLAY=:0
GB_GUI=gb.qt5
GDK_USE_XFT=1
GS_LIB=<home>/.fonts
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@...3501...
HOME=<home>
HOSTNAME=<hostname>.sombragris.org
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/lib64/java
KDEDIRS=/usr
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=es_PY.UTF-8
LANGUAGE=en_US
LC_COLLATE=C
LESS=-M
LESSOPEN=|lesspipe.sh %s
LOGNAME=<user>
LS_COLORS=
LS_OPTIONS=-F -b -T 0 --color=auto
MANPATH=/usr/local/man:/usr/man:/usr/lib64/java/man
MINICOM=-c on
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kf5:/usr/lib64/kde4/libexec:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/qt/bin:/usr/lib64/qt5/bin
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
PWD=<home>
QMLSCENE_DEVICE=
QSG_RENDER_LOOP=
QT4DIR=/usr/lib64/qt
QT5DIR=/usr/lib64/qt5
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_NO_GLIB=1
SAL_USE_VCLPLUGIN=kde4
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1382,unix/<hostname>:/tmp/.ICE-unix/1382
SHELL=/bin/bash
SHLVL=1
T1LIB_CONFIG=/usr/share/t1lib/t1lib.config
TERM=dumb
TZ=:/etc/localtime
USER=<user>
VDPAU_LOG=0
XAUTHORITY=<home>/.Xauthority
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
XDG_RUNTIME_DIR=/tmp/xdg-runtime-<user>
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_COOKIE=<hostname>-1483743117.959646-1603446457
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_=/usr/bin/kwrapper5






More information about the User mailing list