Main Menu

Qt query

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

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

yshah1996

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.

Volker Dirr

#16
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.

yshah1996

Can you tell me how did you set the path ?

Volker Dirr

#18
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.

yshah1996

Now i reinstalled Qt and i am getting this as the error.

Volker Dirr

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?

yshah1996

I installed the minGw separately also and tried everything and still the same.

Volker Dirr

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?

Volker Dirr

#23
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?

Volker Dirr

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.

Volker Dirr

I just deleted the 2 large strings in the help file. Now compiling continous fine. I will let you know more soon.

Volker Dirr

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.

Liviu Lalescu


yshah1996

Now i am getting this errors.

yshah1996