can't seem to build a Qt project on eclipse (C++, Windows) - c++

I have Qt installed + Qt Eclipse Integration + MinGW but I can't seem to find a way to build a new Qt GUI project.
I'm getting the following error:
Error launching builder (mingw32-make debug )
(Cannot run program "mingw32-make": Launching failed)
I've updated the Path variable and added all I can think about that can be related and nothing..
Path now is:
C:\PROGRAM FILES\THINKPAD\UTILITIES;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\WINDOWS\Downloaded Program Files;C:\Program Files\PC-Doctor for Windows\services;C:\Program Files\SMLNJ\bin\;C:\Program Files\Chez Scheme Version 7.4\bin\i3nt;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Qt\2009.03\qt\bin;C:\Qt\2009.03\bin;C:\MinGW\bin;
any ideas..??
Thanks,
C.

When installing mingw, have you selected the checkbox to install mingw's make too?
You could have a look into c:\mingw\bin and see if there is a mingw32-make executable and you could try to launch mingw32-make from a windows console. Probably there is something wrong with your mingw installation.
Hope that helps,
Elrohir

Related

Qt visual studio building

I have ms visual studio solution with qt project. When I working from visual studio all works fine. When I try to run *.exe file from building folder I see message that say Qt5Guid.dll(and other dll's) is not found.
What settings need to be changed that QT dll's moves to general building folder ?
You can find in Qt installation dir application windeployqt.
Run it like this:
windeployqt --debug <path-to-app-binary>
It will deploy all needed Qt files to your application's folder. You can read more about deploying here: https://doc.qt.io/qt-5/windows-deployment.html
Also you can try to add directory of Qt to PATH variable
(Thanks king_nak and drescherjm)

How to deploy a qt based app(developed on Mac) to Windows?

I developed a desktop Qt app on macOs. I want to execute my app on windows. I've looked that pages:
https://doc.qt.io/qt-5.9/osx-deployment.html
https://godhc.wordpress.com/2012/06/10/build-your-qt-project-on-windows-and-mac-osx/
But it did not make sense well.
Can someone explain me how to do that?
you have to recompile it on windows. you have to make sure your code doesn't use macos "framworks" or unix or linux specific functions.
i recommend downloading a precompiled static QT as building it is impossible. you can get that here and using the visual studio compiler, you will have to download visual studio and all the c++ addons and stuff.
!! edit what ever directory your cmd is in is the output of the qmake !!
you then open up cmd and run the static compiled QT's qmake on the .pro file of your project. e.g.
E:\QT_projects\QT\qt5-5.7.1-vs2015\qt5-x86-static-release\bin\qmake.exe E:\QT_projects\variable-length-string-editor-for-binaries\StringEditer.pro
that will make the makefile. and then open the visual studio cmd called "Developer Command Prompt for VS 2017" for me opening the start menu and typing it in will show it.
you then navigate to the folder where the make files that qmake generated e.g.
cd E:\QT_projects\variable-length-string-editor-for-binaries
then run nmake on release or debug or just nmake e.g.
nmake release

Build Qt 5.2.1 with Visual Studio 2010 for Win 7 64Bit

I'd like to build Qt 5.2.1 for Visual Studio on my Windows 7 64Bit machine. I know, there are various similar questions, but none which I have found really give me the feeling that I definately know how to proceed.
First, I tried to follow the instructions in How to build Qt for Visual Studio 2010, but I noticed that things for Qt 5 have changed a bit. E.g., there is no Qt/bin directory that you could add to the path variable, since now there are many different bin directories.
I then found http://qt-project.org/doc/qt-5/windows-building.html but here I am not sure if they use Visual Studio 10 and I do not understand the instructions to get the environment variables right.
This link http://qt-project.org/wiki/Building-Qt-5-from-Git is also interesting, as it gives various hints, but it uses git and I would like to build from the opensource zip file.
So, what are the steps I need to take precisely? I will write my version here, and you can extend/correct it.
Install Perl and Python and add them to system path
Download http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip
Unzip the file from 1. to C:\Qt5.2.1
Install the standalone Windows SDK (http://msdn.microsoft.com/en-US/windows/apps/br229516)
Set up the Qt Environment variables. How?!! Please clarify Step 3 of http://qt-project.org/doc/qt-5/windows-building.html
Open the Visual Studio Command Prompt 2010. Run there
configure -MP -opensource -confirm-license -debug-and-release -no-webkit
Type "nmake" in the Visual Studio Command Prompt 2010.
http://qt-project.org/doc/qt-5/windows-building.html mentions "If an installation prefix was given, type jom install, nmake install or mingw32-make install" - what is an installation prefix??
Then, I believe Qt should be installed in C:\Qt5.2.1; How can I check if the installation was successfull? Is it possible, to have Qt in my list of installed applications using this approach?
I'd be happy if you could correct/comment my approach, since some steps are not entirely clear to me and I have mixed different tutorials.
Thanks!

Netbeans C++ MinGW settings

I've installeed Netbeans 7.0.1 and MinGW on my computer, but when I tried to build a project, it shows the error message:
I googled the problem, and every solution said that I need to add MYSY to Path, so I did it; and restarted netbeans, but the problem still shows up, I'm thinking about maybe it's because I installed Qt4.7.4 so there maybe some conflicts in %Path%,
here is the two Paths in my computer:
User variables for shengy:
C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program
Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program
Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft
Visual Studio\VC98\bin;C:\Program Files\IDM Computer
Solutions\UltraEdit\;C:\boost_1_34_1;C:\Program
Files\Telelogic\Telelogic Synergy 6.5\bin;C:\Program
Files\Telelogic\Telelogic Synergy 6.5\lib;
System variables:
C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program
Files\doxygen\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program
Files\COSMIC\CXS12X;C:\COSMIC\CX12;C:\Program Files\PC Connectivity
Solution\;C:\shengy\ComplieCommands;C:\QtSDK\Desktop\Qt\4.7.3\mingw\lib;C:\Program
Files\Telelogic\Telelogic Synergy
6.5\bin;C:\MinGW\msys\1.0\bin;C:\MinGW\bin;
please help me about this. Thanks
make shure you have set the correct tool collection for mingw (options -> C/C++ -> Build tools, Base directory: C:\MinGW\bin).
All compilers / commands (excluding make / qmake) should point to there too.
Also make shure ...
you can run mkdir from cmd
if qt ships its own MinGW: you use yours (maybe you can remove the one from qt)
move the path variables from mingw before the one from qt
See:
MinGW Compilers and Tools
This Answer
edit: does C:\shengy\ComplieCommands contain any mingw / gcc programs?
i had a problem like it. i think you should install MYSY (as you did) and then adjust netbeans like below:tools->c/c++ -> build tools -> make command set to mysys\bin\make.exe

How to prevent Eclipse creates nmake file instead of make?

In order to develop qt application on eclipse, i have installed mingw, qt and qt eclipse integration. When i try to build the project, it search nmake for building project and syntax of my make file is nmake syntax.
And i thought there were some special eclipse settings but i could'nt find anything about it.
How can i make eclipse produce make file instead of nmake
Any help will be appreciated.
It is because of Qt version. Nmake is special for Visual Studio integrated Qt. So If your eclipse create nmake file instead of make file. Your eclipse show wrong version of Qt.
If you don't want to get this error. You should firstly check:
Check you download true eclipse version. The Qt version which
eclipse is using is correct
Check QT_DIR in your enviroment variable show correct path.