Errors building QT 5.5.1 source code on Win32 - qt

I'm trying building new version 5.5.1 on win32
After
configure -static -release -opensource -qt-sql-sqlite –platform win32-g++ -opengl desktop
and
MinGW-make
after just one minute:
c:\mingw\include\math.h: In function 'float hypotf(float, float)':
c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
{ return (float)(_hypot (x, y)); }
^
Makefile.Release:316: recipe for target '.obj/release/moc.o' failed
mingw32-make[4]: *** [.obj/release/moc.o] Error 1
mingw32-make[4]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:34: recipe for target 'release' failed
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:86: recipe for target 'sub-moc-make_first' failed
mingw32-make[2]: *** [sub-moc-make_first] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase'
Makefile:68: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
I read that maybe possibly perform construction msvc or try mingw64 but I need it on Windows 32 with platform win32-g++
You really can not build this version with win32 and win32-g++ platform??
Any suggestions please, welcome any help.
SOLUTION.................................................................................................................................................
You can compile QT 5.5.1 with MinGW-64 project.
This project also works on 32 bits.
It´s not possible to compile with the "typical" version minimalist, neither changing the libraries. MinGW-64 project is not available from MinGW Installation Manager, I do not understand this and dislike me as an advocate for alternatives like mingw, I could always download from this manager all I need, now this manager... should improve.
After installing MinGW-64 project in all programs MinGW-64 project Run terminal
cd pathQTconfigure
configure -static -release -opensource –platform win32-g++ -opengl desktop
mingw-make
THANKS TO ALL :)

Related

Qt building nmake fatal error U1077: 'cd': return code '0×2'

I am building qt5.7.0 from its source package with vs2015, following some instructions from the post How to Build Qt 5.7 Statically Using MSVC14 .
Here is my configure commands:
configure -static -debug-and-release -prefix “C:\Qt\5.7.0” -platform win32-msvc2015
Then the building processing is initiated by type nmake, but after a while it is stopped due to the error, namke fatal error U1077, as shown in the attached screenshot.
nmake clean
Download jom as a replacement of nmake for the building process (reconfigure and build)

Qt move label with mouse

So here's the thing: I downloaded the Qt 4.7 tar and I'm installing on Ubuntu 16. I unzip the downloaded folder and installed all libs that were preventing me to run the ./configure
After I could run the configure, the make runs but get an error at some point. Here's what I get when I run 'make configure' or 'make':
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make configure
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
I really appreciate the help, Ty :D

How to disable the Qt Wayland module during QT build?

I am trying to build Qt on my raspberry pi with jessie on it.
The configure option that I have provided are as below for my build:
./configure -v -opengl es2 -device linux-rasp-pi-g''+ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5
However, I am getting the below error pertaining to QtWayland ...
Project ERROR: wayland-client development package not found
Makefile:54: recipe for target 'sub-brcm-egl-install_subtargets' failed
make[5]: *** [sub-brcm-egl-install_subtargets] Error 3
make[5]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src/plugins/hardwareintegration/client'
Makefile:54: recipe for target 'sub-client-install_subtargets' failed
make[4]: *** [sub-client-install_subtargets] Error 2
make[4]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src/plugins/hardwareintegration'
Makefile:81: recipe for target 'sub-hardwareintegration-install_subtargets' failed
make[3]: *** [sub-hardwareintegration-install_subtargets] Error 2
make[3]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src/plugins'
Makefile:107: recipe for target 'sub-plugins-install_subtargets' failed
make[2]: *** [sub-plugins-install_subtargets] Error 2
make[2]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src'
Makefile:56: recipe for target 'sub-src-install_subtargets' failed
make[1]: *** [sub-src-install_subtargets] Error 2
make[1]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland'
Makefile:737: recipe for target 'module-qtwayland-install_subtargets' failed
make: *** [module-qtwayland-install_subtargets] Error 2
Is there any way that I can disable the QtWayland option during Qt build?
You can skip it while doing configure
./configure -skip wayland.

Qt 5.0 Build Warning

I have installed Qt 5.0 (the whole SDK) on Fedora 17. I have configured the compiler (GCC) and everything seems to be working fine, except that when I press "Ctrl-R" for having a demo of my GUI coding, I get the following error :
make: Entering directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
g++ -Wl,-rpath,/opt/Qt/5.0.1/gcc -Wl,-rpath,/opt/Qt/5.0.1/gcc/lib -o untitled main.o mainwindow.o moc_mainwindow.o -L/opt/Qt/5.0.1/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
**/usr/bin/ld: cannot find -lGL**
make: Leaving directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
collect2: error: ld returned 1 exit status
make: *** [untitled] Error 1
04:07:17: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.0.1 GCC 32bit)
When executing step 'Make'.
(The error above is that a file called -lGL is not found)
How do I go about solving this error ?
You will need to have the libGL development files installed. It's been awhile since I used Fedora, but check your package manager for a package named something like mesa-libGL-devel.

Install Qt library(qwt-6.0.1) in windows 7

I downloaded “Qt 5.0.0 Beta 2” and I downloaded MinGw with gcc version 4.6.2. I extracted the latest “qwt-6.0.1” to the Qt installed folder. All the paths are set.
Now I opened "Qt 5.0.0 for Desktop(MSVC 2010)" command prompt. After changing the directory to qwt-6.0.1 steps i follwed=>
1) qmake qwt.pro => with this makefile is created
2)make => giving the error... also instead of this step i tried "mingw32-make" command in the same prompt.. both are giving the same error following error :
Error : "cd src\ && ( if not exist Makefile C:\QtSDK\5.0.0-beta2\msvc2010\bin\qmake.exe C
:\QtSDK\qwt-6.0.0-rc5\src\src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory C:/QtSDK/qwt-6.0.0-rc5/src'
make -f Makefile.Release all
make[2]: Entering directoryC:/QtSDK/qwt-6.0.0-rc5/src'
Makefile.Release:255: * missing separator. Stop.
make[2]: Leaving directory C:/QtSDK/qwt-6.0.0-rc5/src'
make[1]: *** [release-all] Error 2
make[1]: Leaving directoryC:/QtSDK/qwt-6.0.0-rc5/src'
make: * [sub-src-make_first-ordered] Error 2"
Qwt from SVN trunk ( aka 6.1 ) works with Qt 4 and 5.
You are trying to use qwt, an independent library, with Qt 5. Well Qt 5 is recent and not widespread yet, so don't expect much.
It seems that the latest version of qwt on the repository use Qt 4.8 (see install in svn repository).It will not work with Qt 5.

Resources