Qt Creator could not find executable file, specify one

I am trying to run the texteditor.pro file in the QtSDK\Examples\4.7\tutorials\gettingStarted\gsQml using Qt Creator. When I try to build a project, I get a window that says

Could not find executable file, specify one

with three fields for downloading files. A snapshot of the dialog box .

I am running Windows 7 64bit, with Qt Creator 2.4.1

+4
source share
3 answers

I solved the problem, it was a missing dll file , but the executable did not request it, so I put all the dll from Qtcreator β†’ bin in the same folder with the * .exe file, then I deleted the file after another until I find out which files are required . * This is a brute force method, but he did the job. * Here is a file that was missing ( libEGL.dll )

+1
source

This project is not created in the usual "Qt-executable" format. Rather, it is a plug-in project. Thus, you cannot manage it directly, like other projects.

[If you open the project files, you will not find the main ()! Function, which should be the entry point, usually for a C ++ application. All you have are C ++ class pairs. Take it as a hint]

In this example, they gave full information here . And I quote:

We need to compile the dialog box of the C ++ file dialog before the text editor can run. To compile, enter the gsQml directory, then run qmake and compile using make or nmake, depending on your platform. To run, run qmlviewer and open the texteditor.qml file.

Else:

  • You create your own project.
  • Add these class files and the corresponding qml files to this project.
  • Add the main one and create the corresponding objects.
  • Create an application viewer and specify the path "texteditor.qml" as the source.
0
source

I got a window could not find executable on my face in Ubuntu 12.10.

This is how I got the β€œerror”:

  • Created a folder called Project;
  • Inside, I ran qmake -project and then qmake;
  • Created the main.cpp file inside the folder;
  • I opened the Project.pro file with Qt Creator and added the line "SOURCES + = main.cpp" to it;
  • Press Ctrl + R to create and run the project.

Subsequently, I deleted the folder and created it again, but this time I create the main.cpp file before trying to run any commands. I opened the .pro file with Qt Creator, created the main function in the main.cpp file and pressed Ctrl + R, and it was built and started!

0
source

All Articles