mingw32 error 2
-
On the structuresynth.pro file I got this :
Is it possible that I cannot build it because I'm currentl using a MinGW 7.3 compiler ? Is so anyone knows a way to get the msvc 2012 working on my Qt 5.14 ? -
Hi @Ozuu,
please post errors and source code as text, not as picture!
Regarding your problem: The error you see is just the consequence (build failed). The actual error is much earlier in the compile log, so you will need to provide more of the log (if not all).
And no, MSVC2012 will not work with Qt 5.14. MSVC2017 or 2019 will. But maybe you can use MinGW, that depends on the type of real error.
-
Hi @aha_1980 So I can't post all the log because it's really long... but it looks like a repetiting bunch of warnings (that I should ignore, that's what the readME of the project tell me...)
mingw32-make[1]: Leaving directory 'C:/Users/osval/Desktop/SimuVex_V2.0/MeshLabFixLimited/trunk/meshlab/src/build-external-Desktop_Qt_5_14_0_MinGW_64_bit-Debug/lib3ds-1.3.0/lib3ds' del ..\..\lib\win32-gcc\libmuparser.a 2>NUL ar -rc ..\..\lib\win32-gcc\libmuparser.a @object_script.libmuparser ..\..\external\bzip2-1.0.5\unzcrash.c: In function 'main': ..\..\external\bzip2-1.0.5\unzcrash.c:97:10: warning: pointer targets in passing argument 1 of 'BZ2_bzBuffToBuffCompress' differ in signedness [-Wpointer-sign] zbuf, &nZ, inbuf, nIn, 9, 0, 30 ); ^~~~ In file included from ..\..\external\bzip2-1.0.5\unzcrash.c:33:0: ..\..\external\bzip2-1.0.5\bzlib.h:204:22: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}' BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) ( ^ ..\..\external\bzip2-1.0.5\bzlib.h:85:32: note: in definition of macro 'BZ_API' # define BZ_API(func) WINAPI func ^~~~ ..\..\external\bzip2-1.0.5\unzcrash.c:97:16: warning: pointer targets in passing argument 2 of 'BZ2_bzBuffToBuffCompress' differ in signedness [-Wpointer-sign] zbuf, &nZ, inbuf, nIn, 9, 0, 30 ); ^ In file included from ..\..\external\bzip2-1.0.5\unzcrash.c:33:0: ..\..\external\bzip2-1.0.5\bzlib.h:204:22: note: expected 'unsigned int *' but argument is of type 'int *' BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) ( ^ ..\..\external\bzip2-1.0.5\bzlib.h:85:32: note: in definition of macro 'BZ_API' # define BZ_API(func) WINAPI func ^~~~ ..\..\external\bzip2-1.0.5\unzcrash.c:97:21: warning: pointer targets in passing argument 3 of 'BZ2_bzBuffToBuffCompress' differ in signedness [-Wpointer-sign] zbuf, &nZ, inbuf, nIn, 9, 0, 30 ); ^~~~~ In file included from ..\..\external\bzip2-1.0.5\unzcrash.c:33:0: ..\..\external\bzip2-1.0.5\bzlib.h:204:22: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}' BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) ( ^ ..\..\external\bzip2-1.0.5\bzlib.h:85:32: note: in definition of macro 'BZ_API' # define BZ_API(func) WINAPI func ^~~~ ..\..\external\bzip2-1.0.5\unzcrash.c:107:13: warning: pointer targets in passing argument 1 of 'BZ2_bzBuffToBuffDecompress' differ in signedness [-Wpointer-sign] outbuf, &nOut, zbuf, nZ, 0, 0 ); ^~~~~~ In file included from ..\..\external\bzip2-1.0.5\unzcrash.c:33:0: ..\..\external\bzip2-1.0.5\bzlib.h:214:22: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}' BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) ( ^ ..\..\external\bzip2-1.0.5\bzlib.h:85:32: note: in definition of macro 'BZ_API' # define BZ_API(func) WINAPI func ^~~~ ..\..\external\bzip2-1.0.5\unzcrash.c:107:21: warning: pointer targets in passing argument 2 of 'BZ2_bzBuffToBuffDecompress' differ in signedness [-Wpointer-sign] outbuf, &nOut, zbuf, nZ, 0, 0 ); ^ In file included from ..\..\external\bzip2-1.0.5\unzcrash.c:33:0: ..\..\external\bzip2-1.0.5\bzlib.h:214:22: note: expected 'unsigned int *' but argument is of type 'int *' BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) ( ^ ..\..\external\bzip2-1.0.5\bzlib.h:85:32: note: in definition of macro 'BZ_API' # define BZ_API(func) WINAPI func ^~~~ ..\..\external\bzip2-1.0.5\unzcrash.c:107:28: warning: pointer targets in passing argument 3 of 'BZ2_bzBuffToBuffDecompress' differ in signedness [-Wpointer-sign] outbuf, &nOut, zbuf, nZ, 0, 0 ); ^~~~ In file included from ..\..\external\bzip2-1.0.5\unzcrash.c:33:0: ..\..\external\bzip2-1.0.5\bzlib.h:214:22: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}' BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) ( ^ ..\..\external\bzip2-1.0.5\bzlib.h:85:32: note: in definition of macro 'BZ_API' # define BZ_API(func) WINAPI func ^~~~ del ..\lib\win32-gcc\libbz2.a 2>NUL ar -rc ..\lib\win32-gcc\libbz2.a @object_script.libbz2 mingw32-make[1]: Leaving directory 'C:/Users/osval/Desktop/SimuVex_V2.0/MeshLabFixLimited/trunk/meshlab/src/build-external-Desktop_Qt_5_14_0_MinGW_64_bit-Debug/bzip2-1.0.5' mingw32-make[1]: Leaving directory 'C:/Users/osval/Desktop/SimuVex_V2.0/MeshLabFixLimited/trunk/meshlab/src/build-external-Desktop_Qt_5_14_0_MinGW_64_bit-Debug/muparser_v132/src' mingw32-make[1]: Leaving directory 'C:/Users/osval/Desktop/SimuVex_V2.0/MeshLabFixLimited/trunk/meshlab/src/build-external-Desktop_Qt_5_14_0_MinGW_64_bit-Debug/structuresynth-1.5' mingw32-make: *** [Makefile:131: sub-structuresynth-1-5-structuresynth-pro-make_first] Error 2 14:08:37: Le processus "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" s'est terminé avec le code 2. Erreur lors de la compilation/déploiement du projet external (kit : Desktop Qt 5.14.0 MinGW 64-bit) When executing step "Make" 14:08:37: Temps écoulé : 00:18.
and I looked on the "problems" window and I see that (sorry cannot copy past so i did a screenshot)
-
@artwaw said in mingw32 error 2:
you have that file make sur
I checked in the Structuresynth.pro
TEMPLATE = lib TARGET = ssynth CONFIG += staticlib DEPENDPATH += . \ ssynth \ ssynth/StructureSynth/Model \ ssynth/StructureSynth/Parser \ ssynth/SyntopiaCore/Exceptions \ ssynth/SyntopiaCore/GLEngine \ ssynth/SyntopiaCore/GLEngine/Raytracer \ ssynth/SyntopiaCore/Logging \ ssynth/SyntopiaCore/Math \ ssynth/SyntopiaCore/Misc \ ssynth/ThirdPartyCode/MersenneTwister \ ssynth/StructureSynth/Model/Rendering INCLUDEPATH += ssynth # Input HEADERS += ssynth/StructureSynth/Model/Action.h \ ssynth/StructureSynth/Model/AmbiguousRule.h \ ssynth/StructureSynth/Model/Builder.h \ ssynth/StructureSynth/Model/ColorPool.h \ ssynth/StructureSynth/Model/CustomRule.h \ ssynth/StructureSynth/Model/ExecutionStack.h \ ssynth/StructureSynth/Model/PrimitiveClass.h \ ssynth/StructureSynth/Model/PrimitiveRule.h \ ssynth/StructureSynth/Model/RandomStreams.h \ ssynth/StructureSynth/Model/Rule.h \ ssynth/StructureSynth/Model/RuleRef.h \ ssynth/StructureSynth/Model/RuleSet.h \ ssynth/StructureSynth/Model/State.h \ ssynth/StructureSynth/Model/Transformation.h \ ssynth/StructureSynth/Model/TransformationLoop.h \ ssynth/StructureSynth/Parser/EisenParser.h \ ssynth/StructureSynth/Parser/Preprocessor.h \ ssynth/StructureSynth/Parser/Tokenizer.h \ ssynth/SyntopiaCore/Exceptions/Exception.h \ ssynth/SyntopiaCore/GLEngine/Box.h \ ssynth/SyntopiaCore/GLEngine/Dot.h \ ssynth/SyntopiaCore/GLEngine/EngineWidget.h \ ssynth/SyntopiaCore/GLEngine/Grid.h \ ssynth/SyntopiaCore/GLEngine/Line.h \ ssynth/SyntopiaCore/GLEngine/Mesh.h \ ssynth/SyntopiaCore/GLEngine/Object3D.h \ ssynth/SyntopiaCore/GLEngine/Raytracer/AtomicCounter.h \ ssynth/SyntopiaCore/GLEngine/Raytracer/RayTracer.h \ ssynth/SyntopiaCore/GLEngine/Raytracer/RenderThread.h \ ssynth/SyntopiaCore/GLEngine/Raytracer/Sampler.h \ ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.h \ ssynth/SyntopiaCore/GLEngine/RaytraceTriangle.h \ ssynth/SyntopiaCore/GLEngine/Sphere.h \ ssynth/SyntopiaCore/GLEngine/Triangle.h \ ssynth/SyntopiaCore/Logging/ListWidgetLogger.h \ ssynth/SyntopiaCore/Logging/Logging.h \ ssynth/SyntopiaCore/Math/Matrix4.h \ ssynth/SyntopiaCore/Math/Random.h \ ssynth/SyntopiaCore/Math/Vector3.h \ ssynth/SyntopiaCore/Misc/ColorUtils.h \ ssynth/SyntopiaCore/Misc/MiniParser.h \ ssynth/SyntopiaCore/Misc/Persistence.h \ ssynth/SyntopiaCore/Misc/Version.h \ ssynth/ThirdPartyCode/MersenneTwister/MersenneTwister.h \ ssynth/StructureSynth/Model/Rendering/OpenGLRenderer.h \ ssynth/StructureSynth/Model/Rendering/Renderer.h \ ssynth/StructureSynth/Model/Rendering/TemplateRenderer.h SOURCES += ssynth/StructureSynth/Model/Action.cpp \ ssynth/StructureSynth/Model/AmbiguousRule.cpp \ ssynth/StructureSynth/Model/Builder.cpp \ ssynth/StructureSynth/Model/ColorPool.cpp \ ssynth/StructureSynth/Model/CustomRule.cpp \ ssynth/StructureSynth/Model/ExecutionStack.cpp \ ssynth/StructureSynth/Model/PrimitiveClass.cpp \ ssynth/StructureSynth/Model/PrimitiveRule.cpp \ ssynth/StructureSynth/Model/RandomStreams.cpp \ ssynth/StructureSynth/Model/Rule.cpp \ ssynth/StructureSynth/Model/RuleRef.cpp \ ssynth/StructureSynth/Model/RuleSet.cpp \ ssynth/StructureSynth/Model/State.cpp \ ssynth/StructureSynth/Model/Transformation.cpp \ ssynth/StructureSynth/Model/TransformationLoop.cpp \ ssynth/StructureSynth/Parser/EisenParser.cpp \ ssynth/StructureSynth/Parser/Preprocessor.cpp \ ssynth/StructureSynth/Parser/Tokenizer.cpp \ ssynth/SyntopiaCore/GLEngine/Box.cpp \ ssynth/SyntopiaCore/GLEngine/Dot.cpp \ # ssynth/SyntopiaCore/GLEngine/EngineWidget.cpp \ ssynth/SyntopiaCore/GLEngine/Grid.cpp \ ssynth/SyntopiaCore/GLEngine/Line.cpp \ ssynth/SyntopiaCore/GLEngine/Mesh.cpp \ ssynth/SyntopiaCore/GLEngine/Object3D.cpp \ ssynth/SyntopiaCore/GLEngine/Raytracer/AtomicCounter.cpp \ # ssynth/SyntopiaCore/GLEngine/Raytracer/RayTracer.cpp \ ssynth/SyntopiaCore/GLEngine/Raytracer/RenderThread.cpp \ ssynth/SyntopiaCore/GLEngine/Raytracer/Sampler.cpp \ ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp \ ssynth/SyntopiaCore/GLEngine/RaytraceTriangle.cpp \ # ssynth/SyntopiaCore/GLEngine/Sphere.cpp \ ssynth/SyntopiaCore/GLEngine/Triangle.cpp \ ssynth/SyntopiaCore/Logging/ListWidgetLogger.cpp \ ssynth/SyntopiaCore/Logging/Logging.cpp \ ssynth/SyntopiaCore/Math/Matrix4.cpp \ ssynth/SyntopiaCore/Math/Random.cpp \ ssynth/SyntopiaCore/Math/Vector3.cpp \ ssynth/SyntopiaCore/Misc/ColorUtils.cpp \ ssynth/SyntopiaCore/Misc/MiniParser.cpp \ ssynth/SyntopiaCore/Misc/Persistence.cpp \ ssynth/SyntopiaCore/Misc/Version.cpp \ # ssynth/StructureSynth/Model/Rendering/OpenGLRenderer.cpp \ ssynth/StructureSynth/Model/Rendering/Renderer.cpp \ ssynth/StructureSynth/Model/Rendering/TemplateRenderer.cpp CONFIG+=opengl QT+=xml opengl script macx:DESTDIR = ../lib/macx win32-g++:DESTDIR = ../lib/win32-gcc win32-msvc2005:DESTDIR = ../../external/lib/win32-msvc2005 win32-msvc2008:DESTDIR = ../../external/lib/win32-msvc2008 win32-msvc2010:DESTDIR = ../../external/lib/win32-msvc2010 win32-msvc2012:DESTDIR = ../../external/lib/win32-msvc2012 linux-g++-32:DESTDIR = ../lib/linux-g++-32 linux-g++-64:DESTDIR = ../lib/linux-g++-64 linux-g++:DESTDIR = ../lib/linux-g++
It is there, but there is no INCLUDEDIRS clause. So I looked in the external.pro and there is only a path to the others .pro files (that seems normal).
config += debug_and_release TEMPLATE = subdirs SUBDIRS = bzip2-1.0.5/bzip2-1.0.5.pro \ muparser_v132/src \ levmar-2.3/levmar-2.3.pro \ structuresynth-1.5/structuresynth.pro \ OpenCTM-1.0.3/openctm.pro \ jhead-2.95/jhead-2.95.pro \ lib3ds-1.3.0/lib3ds # openkinect/openkinect.pro
-
@artwaw said in mingw32 error 2:
n line 3 includes MarsenneTwister.
I see, but the RandomStreams.h only includes only the Random.h file (which includes the MarsenneTwister)
#pragma once #include "../../SyntopiaCore/Math/Random.h" namespace StructureSynth { namespace Model { /// These two independent random number generator streams are used in Structure Synth class RandomStreams { public: static SyntopiaCore::Math::RandomNumberGenerator* Geometry() { return geometry; } static SyntopiaCore::Math::RandomNumberGenerator* Color() { return color; } static void SetSeed(int seed) { geometry->setSeed(seed); color->setSeed(seed); } static void UseOldRandomGenerators(bool useOld) { geometry->useStdLib(useOld); color->useStdLib(useOld); } private: static SyntopiaCore::Math::RandomNumberGenerator* geometry; static SyntopiaCore::Math::RandomNumberGenerator* color; }; } }
-
@Ozuu Strange. But according to the compiler it has to (directly or not) included somewhere. And the way that include is being written has its path wrong.
Unless there is something I don't fully understand about the compile process. Maybe more experienced members of the forum have some other thoughts on this - but I'd go through search through files for the include and check the paths in those includes.
-
I don't know if these can help someone understand but if I change the path to the Mersenne file by the absolute path I have a different error... And it is that another file cannot be found. Do you think there is a problem with the .pro file ?
In file included from ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Parser\../Model/Rule.h:3:0, from ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Parser\EisenParser.h:5, from ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Parser\EisenParser.cpp:1: ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Parser\../Model/Rendering/Renderer.h:4:10: fatal error: ../../../SyntopiaCore/Math/Vector3.h: No such file or directory #include "../../../SyntopiaCore/Math/Vector3.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. mingw32-make[1]: *** [Makefile.structuresynth:7146: EisenParser.o] Error 1 mingw32-make[1]: *** Waiting for unfinished jobs.... In file included from ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Parser\../../SyntopiaCore/Math/Random.h:8:0, from ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Parser\Preprocessor.cpp:9: C:\Users\osval\Desktop\SimuVex_V2.0\MeshLabFixLimited\trunk\meshlab\src\external\structuresynth-1.5\ssynth\ThirdPartyCode\MersenneTwister\MersenneTwister.h:2:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning( disable : 4146 ) ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Model\PrimitiveRule.cpp: In member function 'virtual void StructureSynth::Model::PrimitiveRule::apply(StructureSynth::Model::Builder*) const': ..\..\external\structuresynth-1.5\ssynth\StructureSynth\Model\PrimitiveRule.cpp:59:14: warning: variable 'v1' set but not used [-Wunused-but-set-variable] Vector3f v1 = b->getState().matrix * v; ^~ mingw32-make[1]: Leaving directory 'C:/Users/osval/Desktop/SimuVex_V2.0/MeshLabFixLimited/trunk/meshlab/src/build-external-Desktop_Qt_5_14_0_MinGW_64_bit-Debug/structuresynth-1.5' mingw32-make: *** [Makefile:131: sub-structuresynth-1-5-structuresynth-pro-make_first] Error 2 09:32:08: Le processus "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" s'est terminé avec le code 2. Erreur lors de la compilation/déploiement du projet external (kit : Desktop Qt 5.14.0 MinGW 64-bit) When executing step "Make" 09:32:08: Temps écoulé : 00:25.