Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2017-03-23 22:29:54

MaBi
Contributor
Registered: 2016-11-06
Posts: 24

[Solved] Compiling issue with QT v5.8 (C++11)

I'm trying to compile Iceman fork.
As I can read in COMPILING.txt file inside his repository, I need many tools. I have installed these versions:

MinGW v5.3.0
QT SDK for Windows v5.8
MSYS v1.0.11
readline v5.0-1
DevkitPro

Then I have setted msys paths. Now when I try to compile Iceman project I get an error with c++ version:
"This file requires compiler and library support for the ISO C++ 2011"

pm3 ~$ make all
make -C client all
make[1]: Entering directory `/pm3/client'
Compiling liblua, using platform mingw
cd ../liblua && make mingw
make[2]: Entering directory `/pm3/liblua'
make "LUA_A=lua52.dll" "LUA_T=lua.exe" \
        "AR=gcc -shared -o" "RANLIB=strip --strip-unneeded" \
        "SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
make[3]: Entering directory `/pm3/liblua'
make[3]: `lua.exe' is up to date.
make[3]: Leaving directory `/pm3/liblua'
make "LUAC_T=luac.exe" luac.exe
make[3]: Entering directory `/pm3/liblua'
make[3]: `luac.exe' is up to date.
make[3]: Leaving directory `/pm3/liblua'
make[2]: Leaving directory `/pm3/liblua'
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui -I/qt/include/QtWidge
ts  -I/mingw/include -c -o obj/proxgui.o proxgui.cpp
In file included from c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\type_traits:35:
0,
                 from C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:45,
                 from C:/Qt/5.8/msvc2015/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qtwidgetsglobal.h:43,

                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\c++0x_warning.h:32:2: error: #er
ror This file requires compiler and library support for the ISO C++ 2011 standar
d. This support is currently experimental, and must be enabled with the -std=c++
11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:97:0,
                 from C:/Qt/5.8/msvc2015/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qtwidgetsglobal.h:43,

                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/msvc2015/include/QtCore/qcompilerdetection.h:562:6: error: #error Qt r
equires a C++11 compiler and yours does not seem to be that.
 #    error Qt requires a C++11 compiler and yours does not seem to be that.
      ^
In file included from C:/Qt/5.8/msvc2015/include/QtCore/qatomic.h:46:0,
                 from C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:1129,
                 from C:/Qt/5.8/msvc2015/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qtwidgetsglobal.h:43,

                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/msvc2015/include/QtCore/qbasicatomic.h:61:4: error: #error "Qt require
s C++11 support"
 #  error "Qt requires C++11 support"
    ^
In file included from C:/Qt/5.8/msvc2015/include/QtGui/qtguiglobal.h:43:0,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qtwidgetsglobal.h:43,

                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:925:25: error: expected ',' or '...'
 before '&&' token
     QForeachContainer(T &&t) : c(std::move(t)), i(c.begin()), e(c.end())  {}
                         ^
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:928:19: warning: non-static data mem
ber initializers only available with -std=c++11 or -std=gnu++11
     int control = 1;
                   ^
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h: In constructor 'QForeachContainer<T
>::QForeachContainer(T)':
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:925:34: error: 'move' is not a membe
r of 'std'
     QForeachContainer(T &&t) : c(std::move(t)), i(c.begin()), e(c.end())  {}
                                  ^
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:925:44: error: 't' was not declared
in this scope
     QForeachContainer(T &&t) : c(std::move(t)), i(c.begin()), e(c.end())  {}
                                            ^
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h: At global scope:
C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:1117:23: error: expected ',' or '...
' before '&&' token
 void qAsConst(const T &&) Q_DECL_EQ_DELETE;
                       ^
In file included from C:/Qt/5.8/msvc2015/include/QtCore/qglobal.h:1123:0,
                 from C:/Qt/5.8/msvc2015/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qtwidgetsglobal.h:43,

                 from C:/Qt/5.8/msvc2015/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/msvc2015/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:62:22: error: 'is_integral' is not
 a member of 'std'
         isIntegral = std::is_integral<T>::value,
                      ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:62:40: error: expected primary-exp
ression before '>' token
         isIntegral = std::is_integral<T>::value,
                                        ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:62:41: error: '::value' has not be
en declared
         isIntegral = std::is_integral<T>::value,
                                         ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:65:25: error: 'is_enum' is not a m
ember of 'std'
         isRelocatable = std::is_enum<T>::value,
                         ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:65:39: error: expected primary-exp
ression before '>' token
         isRelocatable = std::is_enum<T>::value,
                                       ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:65:40: error: '::value' has not be
en declared
         isRelocatable = std::is_enum<T>::value,
                                        ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:22: error: 'is_integral' is no
t a member of 'std'
         isIntegral = std::is_integral< TYPE >::value, \
                      ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:263:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:45: error: expected primary-ex
pression before '>' token
         isIntegral = std::is_integral< TYPE >::value, \
                                             ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:263:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:46: error: '::value' has not b
een declared
         isIntegral = std::is_integral< TYPE >::value, \
                                              ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:263:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:22: error: 'is_integral' is no
t a member of 'std'
         isIntegral = std::is_integral< TYPE >::value, \
                      ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:258:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS)
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:20: error: expected primary-ex
pression before 'bool'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
                    ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:40: note: in definition of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
         isIntegral = std::is_integral< TYPE >::value, \
                                        ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:20: error: expected '}' before
 'bool'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
                    ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:40: note: in definition of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
         isIntegral = std::is_integral< TYPE >::value, \
                                        ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:249:45: error: expected unqualifie
d-id before '>' token
         isIntegral = std::is_integral< TYPE >::value, \
                                             ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:258:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS)
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:254:1: error: expected declaration
 before '}' token
 }
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:258:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS)
 ^
C:/Qt/5.8/msvc2015/include/QtCore/qtypeinfo.h:293:1: note: in expansion of macro
 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
make[1]: *** [obj/proxgui.o] Error 1
make[1]: Leaving directory `/pm3/client'
make: *** [client/all] Error 2
pm3 ~$

What can I do?
Thanks

Last edited by MaBi (2017-03-30 21:15:40)

Offline

#2 2017-03-24 03:28:01

iceman
Administrator
Registered: 2013-04-25
Posts: 9,537
Website

Re: [Solved] Compiling issue with QT v5.8 (C++11)

That looks like your compilation env for QT5.8 isn't properly configured.  Can't help you there,  read up on howto set it up?
Did you set up the environment variables as COMPILING.txt says?

Offline

#3 2017-03-24 08:21:26

piwi
Contributor
Registered: 2013-06-04
Posts: 704

Re: [Solved] Compiling issue with QT v5.8 (C++11)

You have downloaded Qt for Visual Studio. You need Qt for mingw.

Offline

#4 2017-03-25 16:50:41

MaBi
Contributor
Registered: 2016-11-06
Posts: 24

Re: [Solved] Compiling issue with QT v5.8 (C++11)

piwi wrote:

You have downloaded Qt for Visual Studio. You need Qt for mingw.

Yes, I have choosen the msvc2015 32-bit version...
Today I have tried to restart from the beginning. I uninstalled all and with QT Setup utility (qt-unified-windows-x86-2.0.5-online) I have selected QT for MinGW 5.3.0 32 bit and and MinGW 5.3.0 compiler:
QT1
QT1

After a long time everything has been installed.
I have added readline and libusb files in correct MinGW folders and edited directly the msys fstab file:

#Win32_Path		Mount_Point  
C:\Qt\Tools\mingw530_32	/mingw
C:\devkitPro\devkitARM	/devkitARM 
C:\Qt\5.8\mingw53_32	/qt
C:\pm3			/pm3

I have also setted last variables as written in COMPILING.txt in the project folder.

I get the same C++2011 error:

/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfpyramid.o cmdlfpyramid.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfguard.o cmdlfguard.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfnedap.o cmdlfnedap.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfjablotron.o cmdlfjablotron.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfvisa2000.o cmdlfvisa2000.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfnoralsy.o cmdlfnoralsy.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlffdx.o cmdlffdx.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdlfcotag.o cmdlfcotag.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/pm3_binlib.o pm3_binlib.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/scripting.o scripting.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdscript.o cmdscript.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/pm3_bitlib.o pm3_bitlib.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/aes.o aes.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/protocols.o ../common/protocols.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/sha1.o ../common/sha1.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/sha256.o ../common/sha256.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/cmdcrc.o cmdcrc.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/preset.o reveng/preset.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/reveng.o reveng/reveng.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/cli.o reveng/cli.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/bmpbit.o reveng/bmpbit.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/model.o reveng/model.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/poly.o reveng/poly.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/reveng/getopt.o reveng/getopt.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/tea.o ../common/tea.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/prng.o ../common/prng.c
gcc -DHAS_512_FLASH -std=c99 -O3 -mpopcnt -march=native -g -I. -I../include -I..
/common -I../zlib -I/opt/local/include -I../liblua -Wall -I/mingw/include -D__US
E_MINGW_ANSI_STDIO=1 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
-c -o obj/bucketsort.o ../common/bucketsort.c
g++ -I/qt/include -I/qt/include/QtCore -I/qt/include/QtGui -I/qt/include/QtWidge
ts  -I/mingw/include -c -o obj/proxgui.o proxgui.cpp
In file included from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/type_
traits:35:0,
                 from C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:45,
                 from C:/Qt/5.8/mingw53_32/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qtwidgetsglobal.h:4
3,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2:
error: #error This file requires compiler and library support for the ISO C++ 20
11 standard. This support is currently experimental, and must be enabled with th
e -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:97:0,
                 from C:/Qt/5.8/mingw53_32/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qtwidgetsglobal.h:4
3,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/mingw53_32/include/QtCore/qcompilerdetection.h:562:6: error: #error Qt
 requires a C++11 compiler and yours does not seem to be that.
 #    error Qt requires a C++11 compiler and yours does not seem to be that.
      ^
In file included from C:/Qt/5.8/mingw53_32/include/QtCore/qatomic.h:46:0,
                 from C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:1129,
                 from C:/Qt/5.8/mingw53_32/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qtwidgetsglobal.h:4
3,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/mingw53_32/include/QtCore/qbasicatomic.h:61:4: error: #error "Qt requi
res C++11 support"
 #  error "Qt requires C++11 support"
    ^
In file included from C:/Qt/5.8/mingw53_32/include/QtGui/qtguiglobal.h:43:0,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qtwidgetsglobal.h:4
3,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:925:25: error: expected ',' or '..
.' before '&&' token
     QForeachContainer(T &&t) : c(std::move(t)), i(c.begin()), e(c.end())  {}
                         ^
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:928:19: warning: non-static data m
ember initializers only available with -std=c++11 or -std=gnu++11
     int control = 1;
                   ^
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h: In constructor 'QForeachContainer
<T>::QForeachContainer(T)':
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:925:34: error: 'move' is not a mem
ber of 'std'
     QForeachContainer(T &&t) : c(std::move(t)), i(c.begin()), e(c.end())  {}
                                  ^
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:925:44: error: 't' was not declare
d in this scope
     QForeachContainer(T &&t) : c(std::move(t)), i(c.begin()), e(c.end())  {}
                                            ^
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h: At global scope:
C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:1117:23: error: expected ',' or '.
..' before '&&' token
 void qAsConst(const T &&) Q_DECL_EQ_DELETE;
                       ^
In file included from C:/Qt/5.8/mingw53_32/include/QtCore/qglobal.h:1123:0,
                 from C:/Qt/5.8/mingw53_32/include/QtGui/qtguiglobal.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qtwidgetsglobal.h:4
3,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/qapplication.h:43,
                 from C:/Qt/5.8/mingw53_32/include/QtWidgets/QApplication:1,
                 from proxguiqt.h:11,
                 from proxgui.cpp:12:
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:62:22: error: 'is_integral' is n
ot a member of 'std'
         isIntegral = std::is_integral<T>::value,
                      ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:62:40: error: expected primary-e
xpression before '>' token
         isIntegral = std::is_integral<T>::value,
                                        ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:62:41: error: '::value' has not
been declared
         isIntegral = std::is_integral<T>::value,
                                         ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:65:25: error: 'is_enum' is not a
 member of 'std'
         isRelocatable = std::is_enum<T>::value,
                         ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:65:39: error: expected primary-e
xpression before '>' token
         isRelocatable = std::is_enum<T>::value,
                                       ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:65:40: error: '::value' has not
been declared
         isRelocatable = std::is_enum<T>::value,
                                        ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:22: error: 'is_integral' is
not a member of 'std'
         isIntegral = std::is_integral< TYPE >::value, \
                      ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:263:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:45: error: expected primary-
expression before '>' token
         isIntegral = std::is_integral< TYPE >::value, \
                                             ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:263:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:46: error: '::value' has not
 been declared
         isIntegral = std::is_integral< TYPE >::value, \
                                              ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:263:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:22: error: 'is_integral' is
not a member of 'std'
         isIntegral = std::is_integral< TYPE >::value, \
                      ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:258:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS)
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:20: error: expected primary-
expression before 'bool'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
                    ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:40: note: in definition of m
acro 'Q_DECLARE_TYPEINFO_BODY'
         isIntegral = std::is_integral< TYPE >::value, \
                                        ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:20: error: expected '}' befo
re 'bool'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
                    ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:40: note: in definition of m
acro 'Q_DECLARE_TYPEINFO_BODY'
         isIntegral = std::is_integral< TYPE >::value, \
                                        ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:249:45: error: expected unqualif
ied-id before '>' token
         isIntegral = std::is_integral< TYPE >::value, \
                                             ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:258:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS)
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:254:1: error: expected declarati
on before '}' token
 }
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:258:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO_BODY'
 Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS)
 ^
C:/Qt/5.8/mingw53_32/include/QtCore/qtypeinfo.h:293:1: note: in expansion of mac
ro 'Q_DECLARE_TYPEINFO'
 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
 ^
make[1]: *** [obj/proxgui.o] Error 1
make[1]: Leaving directory `/pm3/client'
make: *** [client/all] Error 2
pm3 ~$

What is wrong?

Offline

#5 2017-03-26 09:35:51

iceman
Administrator
Registered: 2013-04-25
Posts: 9,537
Website

Re: [Solved] Compiling issue with QT v5.8 (C++11)

is there a ./config   or cmake that you need to run to configure QT for mingw?

Offline

#6 2017-03-26 12:17:26

MaBi
Contributor
Registered: 2016-11-06
Posts: 24

Re: [Solved] Compiling issue with QT v5.8 (C++11)

No, there isn't a config folder. I have found a tool named Qt Creator. In Tools / Options / Build & Run - Kits:

QT 3

you can find a CMake Configuration section:

QT 4

Using Google I have found that I need to add a string in the project.

Nobody has ever used QT v5 or greater with Proxmark3? hmm I feel demoralized

Offline

#7 2017-03-26 12:58:20

iceman
Administrator
Registered: 2013-04-25
Posts: 9,537
Website

Re: [Solved] Compiling issue with QT v5.8 (C++11)

for windows:
The QT5 I use works in my setup..  But I took the old mingw env and upgraded it.  I don't recommend going down that road.
So basically I dont touch my mingw installation anymore.  I don't upgrade gcc, nor qt.  I just take what works and be happy with it.

On linux, I can dl / upgrade to whatever latest version and make it work.

Offline

#8 2017-03-26 22:53:18

piwi
Contributor
Registered: 2013-06-04
Posts: 704

Re: [Solved] Compiling issue with QT v5.8 (C++11)

I never tried Qt 5.8 as well. What about an older version? I still use 4.8.6. Proxmark's simple graph window doesn't require the most sophisticated Qt version.

Offline

#9 2017-03-29 21:09:29

MaBi
Contributor
Registered: 2016-11-06
Posts: 24

Re: [Solved] Compiling issue with QT v5.8 (C++11)

Thank you both!
I have imagined the goal is a working installation and don't touch it again.
piwi I have followed your tip and now I'm happy too smile
I downloaded QT v4.8.7 and now I can compile correctly.


I reccomend these versions for a valid ProxSpace:

- MinGW v5.3.0 (QT Installer -> QT / Tools / MinGW 5.3.0)
- QT v4.8.7
- MSYS v1.0.11
- readline v5.0-1
- DevkitPro v1.6.0

Offline

#10 2017-03-29 21:19:24

iceman
Administrator
Registered: 2013-04-25
Posts: 9,537
Website

Re: [Solved] Compiling issue with QT v5.8 (C++11)

I think the user Gator9600 has a easy downloadable mingw environement on his GitHub repo.

Offline

#11 2017-03-29 21:20:10

iceman
Administrator
Registered: 2013-04-25
Posts: 9,537
Website

Re: [Solved] Compiling issue with QT v5.8 (C++11)

I suggest that you edit your first post, and add [solved] to the beginning of your subject.

Offline

#12 2017-04-25 18:15:52

MaBi
Contributor
Registered: 2016-11-06
Posts: 24

Re: [Solved] Compiling issue with QT v5.8 (C++11)

iceman wrote:

I think the user Gator9600 has a easy downloadable mingw environement on his GitHub repo.

Yes it is. Unfortunately it doesn't work for me...
But I see he is working on it smile

Offline

#13 2017-04-25 18:23:01

gator96100
Contributor
From: Austria
Registered: 2016-03-25
Posts: 177

Re: [Solved] Compiling issue with QT v5.8 (C++11)

MaBi wrote:
iceman wrote:

I think the user Gator9600 has a easy downloadable mingw environement on his GitHub repo.

Yes it is. Unfortunately it doesn't work for me...
But I see he is working on it smile

I did fix the iceman builds(make sure you use the latest build), if they are still not working for you please post the error on the thread for precompiled builds.
You could try to compile the firmware yourself using my updated Proxspace environment.

Offline

#14 2017-04-27 21:56:40

MaBi
Contributor
Registered: 2016-11-06
Posts: 24

Re: [Solved] Compiling issue with QT v5.8 (C++11)

gator96100 wrote:

I did fix the iceman builds(make sure you use the latest build), if they are still not working for you please post the error on the thread for precompiled builds.

With your last iceman build I have no more problems, as I said in the other thread.
I tried also your last ProxSpace version and It seems OK now.

Offline

Board footer

Powered by FluxBB