FET Forum

FET Support (English) => Get Help => Topic started by: yshah1996 on March 02, 2018, 05:58:08 PM

Title: Qt query
Post by: yshah1996 on March 02, 2018, 05:58:08 PM
No rule to make target 'all' stop
what to do when i get this as an error?
Title: Re: Qt query
Post by: Volker Dirr on March 02, 2018, 06:04:05 PM
What have you done so far? Did you saw the README file in the FET directory. I highly suggest to read that first.
What do you try to "make"? Qt or FET?
Did you extract the soure?
Are you in the correct folder?
Have you set the PATH?
Title: Re: Qt query
Post by: yshah1996 on March 03, 2018, 06:32:07 AM
I extracted it using 7zip and total commander.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 08:02:51 AM
Will be a long journey to teach you if you don't answer the questions. It will be nearly impossible to help you if you don't answer them. So once again (a bit more detailed, since it look like you didn't understood my questions):

1. What do you try to "make"? Qt or FET?
2. Did you extract the source? (if you extraced the executable only it won't help)
3. In which folder/directory are you?
4. Did you set the PATH to Qt? (if you want to work from everywhere. Or: If you want to work on FET only you can of course do the opposite and set the PATH to FET.)
5. What do you get if you write command "qmake -v" in the terminal?
Title: Re: Qt query
Post by: yshah1996 on March 03, 2018, 09:52:45 AM
I want to make changes to the entire project so
Firstly, i extracted the zip folder using 7zip and then with the help of total commander i got the entire file extracted.
Then i download qt and used this existing project and opened it from qt and tried to make changes and run but i am getting this in the output box.
So please me.
Title: Re: Qt query
Post by: yshah1996 on March 03, 2018, 09:54:32 AM
And which terminal should i write and what should i write ?
No i did not set the path in the qt as well.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 10:11:31 AM
Ah. Ok. You want to work with the creator. Looks like you are using the Windows version.

Difficult to say with seeing this screen shots only.

I guess you open only the user interface file instead of opening the "fet.pro" file. I highly suggest to read the Qt Documentation and start with a simple example file of that documentation.
Title: Re: Qt query
Post by: yshah1996 on March 03, 2018, 10:20:28 AM
Oh yes. I want to work with the creator and Yes, I am using the Windows version.
I have opened the UI files and please can you provide me how to specify the path of the qt and the documentation link.
I am getting error of make so please help me with it. I have uploaded the attachment as well.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 10:25:32 AM
it is wrong to open the ui files directly if you want to compile with Qt Creator. You can modify the ui files only with the  Qt Creator if you compile fet yourself from the terminal.
if you want to compile fet from the Qt Creator, than you need to open the fet.pro file. Than you can search the ui file IN THE PROJECT (not in your folder/directory), modify it and compile with Qt Creator.
Title: Re: Qt query
Post by: Liviu Lalescu on March 03, 2018, 10:43:31 AM
Quote from: Volker Dirr on March 03, 2018, 10:25:32 AM
if you want to compile fet from the Qt Creator, than you need to open the fet.pro file.

I am not sure, but yshah1996 might need to open src/src.pro with Qt Creator.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 10:49:38 AM
oh.. sorry. i forgot the fet.pro was splitted. since i am always working with the terminal, not with Qt Creator. Yes, the src.pro should be better.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 11:26:25 AM
I just retried: it is working with fet.pro (and also with scr.pro) fine if you use Qt Creator.
Title: Re: Qt query
Post by: yshah1996 on March 03, 2018, 12:15:00 PM
I am getting this error.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 01:01:48 PM
I bet you forgot to install MinGW. You need to install it yourself OR if you install Qt you need to check the checkbox "Install MinGW" (or a similar phrase. I don't remember the exact phrase, but i remember that the checkbox is unchecked by default if you install Qt.)
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 01:06:25 PM
Or try to select the MinGW compiler that you can see in the screenshot. (it has got an other icon; not a warning icon; just the screen icon. select it and press "ok")
Title: Re: Qt query
Post by: yshah1996 on March 03, 2018, 01:28:52 PM
I have installed mingw and i tried selecting that option but still the same.
So help me out.
Do we need to specify any path to build ?
I have even specified the path in the environment variables settings.
Title: Re: Qt query
Post by: Volker Dirr on March 03, 2018, 02:14:27 PM
I suggest to try an easy Qt Example file first. If that also fails you have got a Qt problem, not an FET problem.
I just tried Qt Creator here on Windows, Linux and MacOS. All 3 versions run fine out of the box (if you downland the gcc version and check the install mingw checkbox under windows).
Normally you only need to setup the PATH if you compile without using the Qt Creator.

Please try an official Qt example first. If it also fails i suggest to ask in an Qt Forum; maybe that guys understand what you are doing wrong.
Title: Re: Qt query
Post by: yshah1996 on March 04, 2018, 12:34:36 AM
Can you tell me how did you set the path ?
Title: Re: Qt query
Post by: Volker Dirr on March 04, 2018, 09:35:32 AM
Under Linux (x86) i done it like it is written in the Qt documentation. See:
http://doc.qt.io/qt-5/osx-building.html

Under MacOs i done it like it is written in the Qt documentation. See:
http://doc.qt.io/qt-5/osx-building.html

Under Windows i am using the automatically installed terminal. It has got already the correct PATH to Qt and MinGW. But i think you can also do that manually. Check the Qt documentation.

Under Raspbian (ARM) i only downloaded the Qt Developer package from the package manager. It also set PATH automatically correct itself.
Title: Re: Qt query
Post by: yshah1996 on March 07, 2018, 06:31:35 PM
Now i reinstalled Qt and i am getting this as the error.
Title: Re: Qt query
Post by: Volker Dirr on March 07, 2018, 07:19:55 PM
Looks like you are using MSVC. I never used MSVC, I always used MinGW with windows only.
I don't know if anyone tested it with MSVC. But i don't think there is a bug, since MSVC is supported by Qt.
I wonder that the error message is about Qt\Doc\Qt\Makefile. I expected an error about the makefile in the FET folder.
You must know that we didn't code the Makefile. The Makefile is produced by qmake (a Qt program).

I think you should try 2 things:

First: Try to compile an offical Qt example file first. If it fails you still have a problem with your Qt installation. Please ask in a Qt forum. I hope some of those guys have got MSVC compiler and can give you a hint how to use it correct.

Second: Open the Makefile that is mentioned in the bug report. Have a look into it. What does the makefile try to do?
Title: Re: Qt query
Post by: yshah1996 on March 08, 2018, 06:14:26 PM
I installed the minGw separately also and tried everything and still the same.
Title: Re: Qt query
Post by: Volker Dirr on March 08, 2018, 08:05:05 PM
I don't know what you are doing. MinGW is compiling FET fine out of the box.
I downloaded MSVC just a few minutes ago the first time and it look it is also running fine. It just started compiling. See screenshot.
I highly advice to test an official Qt example first. Can you compile an Qt example file?
Title: Re: Qt query
Post by: Volker Dirr on March 08, 2018, 08:13:11 PM
Liviu: MSVC compiling stopped after a few minutes:
..\tmp\gui\ui_helpaboutform_template.h:884: Fehler: C1091: Compilerlimit : Die Zeichenfolge berschreitet die L,,nge um 65535 Bytes

That mean: Compilerlimit reached because of too many characters.

I try to increase the compiler limit (i must search how to do it, i never used MSVC so far).
Do you think there will be an other variant how to fix that problem?
Maybe by using a resource file instead of adding data direcitly into that file?
Title: Re: Qt query
Post by: Volker Dirr on March 08, 2018, 08:20:53 PM
Looks like it is impossible to fix that problem for MSVC by changing a limit. Looks like it is a fixed limit in Microsoft compiler.

Quote: "Characters in a character string literal or wide string literal (after concatenation) - C++ standard: 65536, Visual C++ compiler: 65535 single-byte characters, including the null terminator, and 32767 double-byte characters, including the null terminator. "

See:
https://docs.microsoft.com/en-gb/cpp/cpp/compiler-limits

I fear the only way to fix that problem is using a Qt resource file if Microsoft isn't clever enough to read so large files.
Title: Re: Qt query
Post by: Volker Dirr on March 08, 2018, 08:24:30 PM
I just deleted the 2 large strings in the help file. Now compiling continous fine. I will let you know more soon.
Title: Re: Qt query
Post by: Volker Dirr on March 08, 2018, 08:26:11 PM
Just finished. No other comiling warnings or errors. So it look fine except of the large help file.
I will run a few benchmarks now.
Title: Re: Qt query
Post by: Liviu Lalescu on March 08, 2018, 09:05:02 PM
We continued discussion about the MSVC problem here: https://lalescu.ro/liviu/fet/forum/index.php?topic=3606.0
Title: Re: Qt query
Post by: yshah1996 on March 13, 2018, 06:51:14 PM
Now i am getting this errors.
Title: Re: Qt query
Post by: yshah1996 on March 13, 2018, 06:51:43 PM
Error
Title: Re: Qt query
Post by: Volker Dirr on March 13, 2018, 07:12:40 PM
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.
Title: Re: Qt query
Post by: Liviu Lalescu on March 13, 2018, 07:16:32 PM
Volker, looks like yshah1996 compiled/started fet-cl.exe instead of fet.exe.

Also, yshah1996, why are you using such an old Qt?
Title: Re: Qt query
Post by: Volker Dirr on March 13, 2018, 07:30:12 PM
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".
Title: Re: Qt query
Post by: Volker Dirr on March 13, 2018, 07:33:24 PM
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.
Title: Re: Qt query
Post by: yshah1996 on March 14, 2018, 07:47:14 AM
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.
Title: Re: Qt query
Post by: Volker Dirr on March 14, 2018, 03:36:35 PM
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.
Title: Re: Qt query
Post by: yshah1996 on March 14, 2018, 05:45:06 PM
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?
Title: Re: Qt query
Post by: Volker Dirr on March 14, 2018, 07:45:40 PM
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.
Title: Re: Qt query
Post by: yshah1996 on March 14, 2018, 08:01:41 PM
Is it necessary for me to delete the fet.pro.user everytime I compile?
Title: Re: Qt query
Post by: yshah1996 on March 14, 2018, 08:05:01 PM
Can you please explain me this ?
Title: Re: Qt query
Post by: Volker Dirr on March 14, 2018, 08:21:05 PM
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.)
Title: Re: Qt query
Post by: yshah1996 on March 14, 2018, 08:54:48 PM
I am using the Qt 5.10.1 which you only suggested me to download and Thank You! for you help.
Title: Re: Qt query
Post by: yshah1996 on March 14, 2018, 08:56:39 PM
Everytime i build, the fet.pro.user gets created.
I have provided you the screenshot of it as well.
Title: Re: Qt query
Post by: Volker Dirr on March 14, 2018, 09:43:20 PM
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.
Title: Re: Qt query
Post by: Volker Dirr on March 14, 2018, 09:50:58 PM
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?
Title: Re: Qt query
Post by: yshah1996 on March 15, 2018, 05:18:14 PM
Yeah i removed the ssl error.
Title: Re: Qt query
Post by: yshah1996 on March 17, 2018, 01:05:24 PM
can i get the user manual because i can not split the the year like in First Year there is 2 divisions and they might have same subjects and same teachers but i can not split them and give common teachers to them.

I can not understand how to use the fet the user manual you have given is a very old version and i guess have the screenshots of very old versions.
Title: Re: Qt query
Post by: Volker Dirr on March 17, 2018, 01:33:20 PM
I am pretty limit in time. I will hopefully update the screenshot.
The manual is "old", but all hints and texts are still fine and correct.
The only "not up to date" thing is the screenshot of the spilt year.
But you can also always press "help" in fet to get more help.
Title: Re: Qt query
Post by: yshah1996 on March 18, 2018, 12:14:57 PM
Ok yeah i will try that but still if you can upload the screenshot would be really great.
Title: Re: Qt query
Post by: Volker Dirr on March 18, 2018, 06:49:16 PM
see:
https://lalescu.ro/liviu/fet/forum/index.php?topic=221.0
Title: Re: Qt query
Post by: yshah1996 on March 21, 2018, 05:36:02 PM
Can i give different break times for every year ?
Title: Re: Qt query
Post by: Liviu Lalescu on March 21, 2018, 06:23:38 PM
Yes, using constraint students set not available times.

Note: it would be better to start new forum topics for new questions not related to the previous posts.