Main Menu

Qt query

Started by yshah1996, March 02, 2018, 05:58:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Volker Dirr

#30
The "problem" is written in the first line. You started a program without giving it the correct number of parameters.

Did you start it yourself? Why did you start it?

If it was started by QtCreator: What did you start and how did you setup QtCreator?

If you get it after opening the fet.pro: I highly suggest one more time: Try a simple Qt file first. It looks like you played to much in the QtCreator settings and modified it too much. Try to reset all settings that you have done. FET runs out of the box without doing setup modifications.

Try an easy official Qt sample first. Look into your Qt sample folder.

Liviu Lalescu

Volker, looks like yshah1996 compiled/started fet-cl.exe instead of fet.exe.

Also, yshah1996, why are you using such an old Qt?

Volker Dirr

Ah.. Yes. That is fet-cl. That is why he forgot arguments :-)

Ok. That is in fact "fine", since you are able to compile fet now. Just select "fet" not "fet-cl".

Volker Dirr

Good eyes Liviu. Qt 5.2 is nearly 5 years old. I recommend the last LTS version 5.9.4 or the last "normal" release 5.10.1.

yshah1996

I tried running the normal qt example and it works perfectly fine.
One doubt- After compiling are we expecting to get a pop window?
Inspite of running the fet.pro i am getting the error of the fet.cl so please tell me what is the problem and tell me what is wrong ?And i have not changed any settings.

Volker Dirr

Yes. You already compiled FET correct yesterday; i didn't saw it in the first moment.

FET contains 2 programs:
a) fet.exe. That is the program with the user interface (GUI, Windows).
b) fet-cl.exe. That is the without user interface (cl = command line)

Yesterday you started fet-cl. That is why you didn't saw a window. You started the command line version only, but that version need of course arguments (at least the file name).
You need to start fet (not fet-cl). I bet you already compiled it and it is already in your fet directory.

In worst case compile/run only the src.pro file, since it doesn't contains the command line stuff.

yshah1996

Actually i did not understand what you are trying to explain and it would be really helpful if you could provide me with steps for compilation.
I understand that i should run the fet.pro file and if it doesn`t work i need to run the src.pro file.
But what should i be expecting is a pop window?

Volker Dirr

if you run fet-cl it should popup exactly what you posted yesterday in your screen shot.
if you run fet it should popup the fet main windows. it will look the same as if you download the the fet executable from our severs and if you doubleclick on fet.exe.

In Qt Creator have a look at the 4 icons in the bottom left corner. (Screen, green start triangle, green start triangle with bug, and sledge hammer.)
Press on the first screen icon. You can select the "build" (debug, profile, release) and the "execute" (scr and scr-cl). (Maybe the words a a bit different, since i have installed the German version).
You selected the scr-cl. That runs fet-cl. Please select src only, that will run fet only.

yshah1996

Is it necessary for me to delete the fet.pro.user everytime I compile?

yshah1996

Can you please explain me this ?

Volker Dirr

i never saw fet.pro.user so far. i will search it now.

about the ssl:
That warning is about missing ssl dll files. they are included in Qt and if you use QtCreator and if you can compile that warning shouldn't come. In FET they are only used if you use the "check for updates" feature.

I guess/bet it comes because the ssl file of your Qt 5.2 are too old and so the ssl dll are expired already because of the heart bleed bug.
see:
https://en.wikipedia.org/wiki/Heartbleed

I highly suggest to use newer version of your software to avoid those bugs/problems. (Not only Qt, Also your OS, ... I always wonder about some Apple Mac Users that tell me how secure their computer is and then after asking them about their OS, i wonder that some of them use an older version with known critical bugs.)

yshah1996

I am using the Qt 5.10.1 which you only suggested me to download and Thank You! for you help.

yshah1996

Everytime i build, the fet.pro.user gets created.
I have provided you the screenshot of it as well.

Volker Dirr

Ah... Ok... i never noticed that so far, since i normally never work the with the QtCreator. I am normally always compiling from the terminal only and there is no file if you work with the terminal only.
That file is the project file created by QtCreator. So it is only needed to open/continue working with the FET project in QtCreator faster.
So if you want to develop with QtCreator it will be wise to keep and open it, since it is faster than importing the fet.pro file once again.

Volker Dirr

So the ssl warning comes also with QT 10.1? in that case you still have old or even no ssl files on your system. maybe there was an unchecked check box on 3rd parties ssl plug-ins while you installed Qt?