Error compilation with Qt 5.7.0 (MinGW 5.3.0 32 bit) on windows

Issue #588 resolved
Murloc aka Keepy created an issue

Dear,

I have downloaded the Tag "v0.4.5" and tried to compile the Windows version with the script. But it has failed. I met this error :

ar -M < object_script.libvtools
mingw32-make[3]: Leaving directory 'C:/Users/sebas/Desktop/dismine-valentina-b6e0a13808df/build/src/libs/vtools'
mingw32-make[2]: Leaving directory 'C:/Users/sebas/Desktop/dismine-valentina-b6e0a13808df/build/src/libs'
Makefile:40: recipe for target 'sub-libs-make_first' failed
mingw32-make[1]: *** [sub-libs-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/sebas/Desktop/dismine-valentina-b6e0a13808df/build/src'
Makefile:38: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
Failed to build project!

So I tried with Qt Creator and this time, met this error :

g++ -c -pipe -fno-keep-inline-dllexport -O0 -Wall -Wextra -fno-omit-frame-pointer -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_MESSAGELOGCONTEXT -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I..\..\..\..\dismine-valentina-b6e0a13808df\src\libs\vtools -I. -I..\..\..\..\dismine-valentina-b6e0a13808df\src\libs\vpatterndb -IC:\Qt\5.7\mingw53_32\include -IC:\Qt\5.7\mingw53_32\include\QtWidgets -IC:\Qt\5.7\mingw53_32\include\QtGui -IC:\Qt\5.7\mingw53_32\include\QtANGLE -IC:\Qt\5.7\mingw53_32\include\QtXml -IC:\Qt\5.7\mingw53_32\include\QtCore -Imoc -Iuic -IC:\Qt\5.7\mingw53_32\mkspecs\win32-g++  -o obj\vtoolendline.o ..\..\..\..\dismine-valentina-b6e0a13808df\src\libs\vtools\tools\drawTools\toolpoint\toolsinglepoint\toollinepoint\vtoolendline.cpp
..\..\..\..\dismine-valentina-b6e0a13808df\src\libs\vtools\tools\drawTools\toolpoint\toolsinglepoint\toollinepoint\vtoolendline.cpp:34:67: fatal error: ../../../../../dialogs/support/dialogeditwrongformula.h: No such file or directory
compilation terminated.

I don't understand since the file exist at the right place. So I downloaded the Develop Branch but I met this error :

g++ -c -pipe -fno-keep-inline-dllexport -O0 -Wall -Wextra -fno-omit-frame-pointer -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_MESSAGELOGCONTEXT -DQT_QML_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vtools -I. -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vpatterndb -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vtools -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vwidgets -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vformat -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vpatterndb -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\fervor -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vmisc -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vgeometry -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\ifc -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vlayout -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\qmuparser -I..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vpropertyexplorer -IC:\Qt\5.7\mingw53_32\include -IC:\Qt\5.7\mingw53_32\include\QtPrintSupport -IC:\Qt\5.7\mingw53_32\include\QtWidgets -IC:\Qt\5.7\mingw53_32\include\QtGui -IC:\Qt\5.7\mingw53_32\include\QtANGLE -IC:\Qt\5.7\mingw53_32\include\QtXml -IC:\Qt\5.7\mingw53_32\include\QtCore -Imoc -Iuic -IC:\Qt\5.7\mingw53_32\mkspecs\win32-g++  -o obj\vtoollineintersectaxis.o ..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vtools\tools\drawTools\toolpoint\toolsinglepoint\toollinepoint\vtoollineintersectaxis.cpp
..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vtools\tools\drawTools\toolpoint\toolsinglepoint\toollinepoint\vtoollineintersectaxis.cpp:41:72: fatal error: ../../../../../visualization/line/vistoollineintersectaxis.h: No such file or directory
compilation terminated.
Makefile:55502: recipe for target 'obj/vtoollineintersectaxis.o' failed

Can you help me ?

Keepy

Comments (7)

  1. Roman Telezhynskyi repo owner

    Hi,

    Error compilation with Qt 5.7.0 (MSVC 2013, 32 bit) on windows

    Are you sure you made correct title? Because your logs show that you used only MinGW.

    I have downloaded the Tag "v0.4.5" and tried to compile the Windows version with the script. But it has failed. I met this error :

    Unfortunately part of the log that you provided does not have original error. You should find first place where an error occurred.

    Can you help me ?

    Looks like this is issue with paths. This mean your MinGW was not configured properly. Can you show me your PATH variable?

    And i am sure correct settings will build the project. See this https://ci.appveyor.com/project/dismi_/valentina.

  2. Murloc aka Keepy reporter

    Hi, Thank you for your answer.

    First, yes my title was wrong I corrected it. Second, I am sorry to be newbies since it was a long time i haven't make some C++ and never use Qt before.

    You right, the original error when using make_install.bat was not into my logs:

    mingw32-make[3]: Nothing to be done for 'first'.
    mingw32-make[3]: Leaving directory 'C:/Users/sebas/Desktop/dismine-valentina-9137b8e843c4/build/src/libs/fervor'
    objcopy:bin/stP1kAlM: cannot fill debug link section `bin/vpropertyexplorer.dll.dbg': Invalid argument
    Makefile.Release:229: recipe for target 'bin\vpropertyexplorer.dll' failed
    mingw32-make[4]: *** [bin\vpropertyexplorer.dll] Error 1
    mingw32-make[4]: Leaving directory 'C:/Users/sebas/Desktop/dismine-valentina-9137b8e843c4/build/src/libs/vpropertyexplorer'
    Makefile:34: recipe for target 'release' failed
    mingw32-make[3]: *** [release] Error 2
    

    Furthermore, I still do not understand why I can’t compile into ‘QT Creator’.

    And yes my path : C:\Qt\5.7\mingw53_32>echo %PATH% C:\Qt\5.7\mingw53_32\bin;C:/Qt/Tools/mingw530_32\bin;I:\EasyPHP\binaries\php\php_runningversion;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Druide\Programmes64\;C:\Program Files\TortoiseHg\;C:\Users\sebas\AppData\Local\atom\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;

    Regards, Keepy

  3. Roman Telezhynskyi repo owner

    objcopy:bin/stP1kAlM: cannot fill debug link section `bin/vpropertyexplorer.dll.dbg': Invalid argument

    Google says this issue somehow related to issue in binutils. Possibly i am wrong. It's hard to tell.

    Judging by your error messages i think you have issues with paths. The easiest way to fix them is manually rewrite. Open place with issue in Qt Creator, find if Qt Creator see an include path. If all is okay, but compiler still complaining rewrite a path. How? Let's see.

    For example issue ..\..\..\..\dismine-valentina-9137b8e843c4\src\libs\vtools\tools\drawTools\toolpoint\toolsinglepoint\toollinepoint\vtoollineintersectaxis.cpp:41:72: fatal error: ../../../../../visualization/line/vistoollineintersectaxis.h: No such file or directory can be fixed by string #include "../vtools/visualization/line/vistoollineintersectaxis.h".

    I had such issues several time. My solution worked. But i never tried understand why compiler doesn't see a file.

    If the solution will help you please send me a pull request or at least attach here a patch.

  4. Murloc aka Keepy reporter

    Hi,

    I found the .bat problem ! It was.... "Avast" Grrrrr Dammed antivirus.....

    I am going to check now my other problem with QT Creator....

    regards,

  5. Murloc aka Keepy reporter

    Hi,

    I added this line into vtools.pro

    INCLUDEPATH += $$PWD/vtools
    

    and include by this way :

    #include "visualization/line/vistoolshoulderpoint.h"
    //#include "../../../../../visualization/line/vistoolshoulderpoint.h"
    

    Seems to work but I haven't update each include

    Thank you,

  6. Log in to comment