g++: error: unrecognized command line option '-W3'
-
Hi!
I get the following errors in my translation queue.
What can I do?
Win7 x64.15:00:00: Running steps for project scan3d-capture...
15:00:00: Configuration unchanged, skipping qmake step.
15:00:00: Starting: "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe"
C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/scan3d/project'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -W3 -wd4396 -wd4100 -wd4996 -fexceptions -mthreads -DUNICODE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I../../opencvbuild/install/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtOpenGL -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtWidgets -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtANGLE -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore -Irelease -IGeneratedFiles -I../../Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -o release/main.o ../src/main.cpp
g++: error: unrecognized command line option '-W3'
g++: error: unrecognized command line option '-wd4396'
g++: error: unrecognized command line option '-wd4100'
g++: error: unrecognized command line option '-wd4996'
Makefile.Release:1880: recipe for target 'release/main.o' failed
mingw32-make[1]: *** [release/main.o] Error 1
mingw32-make[1]: Leaving directory 'C:/scan3d/project'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
15:00:03: The process "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project scan3d-capture (kit: Desktop Qt 5.5.1 MinGW 32bit)
When executing step "Make"
15:00:03: Elapsed time: 00:03.General Messages:
Warnings while parsing QML type information of C:/Qt/Qt5.5.1/5.5/mingw492_32/qml:
<dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:1:24: Reading only version 1.1 parts.
<dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:10:5: Expected only Component and ModuleApi object definitions. -
This post is deleted!
-
Hi!
I get the following errors in my translation queue.
What can I do?
Win7 x64.15:00:00: Running steps for project scan3d-capture...
15:00:00: Configuration unchanged, skipping qmake step.
15:00:00: Starting: "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe"
C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/scan3d/project'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -W3 -wd4396 -wd4100 -wd4996 -fexceptions -mthreads -DUNICODE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I../../opencvbuild/install/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtOpenGL -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtWidgets -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtANGLE -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore -Irelease -IGeneratedFiles -I../../Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -o release/main.o ../src/main.cpp
g++: error: unrecognized command line option '-W3'
g++: error: unrecognized command line option '-wd4396'
g++: error: unrecognized command line option '-wd4100'
g++: error: unrecognized command line option '-wd4996'
Makefile.Release:1880: recipe for target 'release/main.o' failed
mingw32-make[1]: *** [release/main.o] Error 1
mingw32-make[1]: Leaving directory 'C:/scan3d/project'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
15:00:03: The process "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project scan3d-capture (kit: Desktop Qt 5.5.1 MinGW 32bit)
When executing step "Make"
15:00:03: Elapsed time: 00:03.General Messages:
Warnings while parsing QML type information of C:/Qt/Qt5.5.1/5.5/mingw492_32/qml:
<dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:1:24: Reading only version 1.1 parts.
<dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:10:5: Expected only Component and ModuleApi object definitions.@laci7722 said in g++: error: unrecognized command line option '-W3':
-W3 -wd4396 -wd4100 -wd4996
No idea what all these parameters are.
Check the pro file and remove these parameters if they are set there. -
@laci7722 said in g++: error: unrecognized command line option '-W3':
-W3 -wd4396 -wd4100 -wd4996
No idea what all these parameters are.
Check the pro file and remove these parameters if they are set there. -
@laci7722 said in g++: error: unrecognized command line option '-W3':
-W3 -wd4396 -wd4100 -wd4996
No idea what all these parameters are.
Check the pro file and remove these parameters if they are set there.@jsulm said in g++: error: unrecognized command line option '-W3':
No idea what all these parameters are.
These look like Intel compiler options.
-W3
enables remarks besides warnings and errors.-wdNNNN
disables a specific warning number. So, it depends on the compiler if these make sense. -
@SimonSchroeder said in g++: error: unrecognized command line option '-W3':
These look like Intel compiler options.
Not only Intel, but also Visual Studio : https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170
@laci7722 , if you cannot find them in your .pro / .pri files , you can use 'qmake -d' to generate a (rather verbose) trace of where qmake pulls it's options from.