Error Compiling QTContribs

135 views
Skip to first unread message

Juan Francolino

unread,
Feb 23, 2024, 6:18:15 PMFeb 23
to QtContribs
Hello
When trying to build QTCONTRIBS with QT 5.15.2 on Windows 10


I have already reported this bug some time ago.

Was anyone able to solve it?

Greetings
Juan Francolino


Generating C source output to 'hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_messages.c'... Done.
Compiling 'hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg'...
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(355) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(362) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(367) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(371) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(375) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(380) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(385) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(390) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(394) Error E0014  #endif does not match #ifdef
hbqtwidgets\.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg(399) Error E0014  #endif does not match #ifdef
10 errors

No code generated.


alex;

unread,
Feb 24, 2024, 8:34:12 AMFeb 24
to QtContribs
Hi.
I fixed this problem.
Replace qtcontribs\hbqt\hbmk2_qt.hb with new.
See att.

WBR, alex;

суббота, 24 февраля 2024 г. в 02:18:15 UTC+3, franco...@gmail.com:
hbmk2_qt.hb

Juan Francolino

unread,
Feb 24, 2024, 9:10:30 AMFeb 24
to QtContribs
Hello
I have changed the file and it still gives the same error.

Thanks for the attempt.
Does anyone have an idea on the topic.

Regards,

alex;

unread,
Feb 24, 2024, 9:28:59 AMFeb 24
to QtContribs
Hello.
Delete file  \.hbmk\win\mingw64\hbqtwidgets\uic_scripts.prg
and try to compile.
If it not help
attach it to the answer.

WBR, alex;

суббота, 24 февраля 2024 г. в 17:10:30 UTC+3, franco...@gmail.com:

Juan Francolino

unread,
Feb 24, 2024, 12:19:30 PMFeb 24
to qtcon...@googlegroups.com
Hi Alex


I was able to compile with the first change after doing -clean. 


Now it does not compile hbide because missing the ssl3 libraries.



Thanks


Regards


Juan 


--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/6b1e081e-692b-4be5-b88f-0cbcd1b4b61en%40googlegroups.com.

alex;

unread,
Feb 24, 2024, 12:42:30 PMFeb 24
to QtContribs
Hi, Juan.
Just comment it out.
//REQUEST __HBEXTERN__HBSSL__ in main.prg
#hbssl.hbc in hbide.hbp

WBR, alex;
суббота, 24 февраля 2024 г. в 20:19:30 UTC+3, franco...@gmail.com:

Juan Francolino

unread,
Feb 24, 2024, 12:49:37 PMFeb 24
to qtcon...@googlegroups.com
Hi Alex

Thanks you, very much.

Regards

Juan

Juan Francolino

unread,
Feb 24, 2024, 7:17:57 PMFeb 24
to qtcon...@googlegroups.com
HiNow I am getting the following error when compiling hbide.


hbmk2: Error: Función(es) referenciada, no encontrada, pero desconocida:
       QCOREAPPLICATION_TRANSLATE()

Sorry for the inconvenience.

Thanks in advance.

Juan 

alex;

unread,
Feb 25, 2024, 1:24:47 AMFeb 25
to QtContribs
Hi, Juan.

WBR, alex;

воскресенье, 25 февраля 2024 г. в 03:17:57 UTC+3, franco...@gmail.com:

Juan Francolino

unread,
Feb 26, 2024, 7:24:55 PMFeb 26
to qtcon...@googlegroups.com

370 / 5.000

Resultados de traducción

Resultado de traducción

Hello Thanks for the help. I have finally managed to compile QTContribs, HBIDE and HBDBU but... When compiling my application I get the Error: hbmk\win\mingw64\uic_main.prg(1687) Error E0025 Error in #if expression .hbmk\win\mingw64\uic_main.prg(1690) Error E0025 Error in #if expression .hbmk\win\mingw64\uic_main.prg(1700) Error E0025 Error in #if expression 3 errors The application compiles correctly with qt 5.7

Regards


Harbour 3.2.0dev (r2402161723)
Openssl-64 3.0

image.png

You received this message because you are subscribed to a topic in the Google Groups "QtContribs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qtcontribs/WKt47Rk8rik/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qtcontribs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/6fcf5943-adfb-4461-a9ab-4e50745efd94n%40googlegroups.com.

alex;

unread,
Feb 27, 2024, 12:50:06 AMFeb 27
to QtContribs
Hi, Juan.
Attach hbmk\win\mingw64\uic_main.prg to the answer.

WBR, alex;

вторник, 27 февраля 2024 г. в 03:24:55 UTC+3, franco...@gmail.com:

Francolino

unread,
Feb 27, 2024, 12:52:23 PMFeb 27
to qtcon...@googlegroups.com

Hi Alex

The difference QT5.12 y QT 5.7 is:

In Qt5.15.2 add line:

#include "hbqtcore.ch"

Attach files.

Regards

Juan

--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.
uic_main.prg
uic_main.prg.qt57
main.ui

Francolino

unread,
Feb 27, 2024, 1:07:28 PMFeb 27
to qtcon...@googlegroups.com

Hi Alex:

The message error

hbmk2: Dependencia 'qt5' encontrada: y:\Qtx\5.15.2\mingw81_64\INCLUDE
hbmk2: Harbour: Compilando módulos...
Harbour 3.2.0dev (r2402161723)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling '.hbmk\win\mingw64\uic_main.prg'...
.hbmk\win\mingw64\uic_main.prg(1686) Error E0025  Error in #if expression
.hbmk\win\mingw64\uic_main.prg(1689) Error E0025  Error in #if expression
.hbmk\win\mingw64\uic_main.prg(1699) Error E0025  Error in #if expression
3 errors

No code generated.


Regards

Juan
1686: #if QT_CONFIG(accessibility)
1687:    ::MainWindow                        :  setAccessibleName( e"" )
1688: #endif // QT_CONFIG(accessibility)

alex;

unread,
Feb 27, 2024, 1:36:37 PMFeb 27
to QtContribs
Hi, Juan.
I compiled successfully and got no errors.
You have the wrong file hbmk2_qt.hb.
Download the one I attached in the first post.
And compile again.
WBR, alex;
вторник, 27 февраля 2024 г. в 21:07:28 UTC+3, Juan:

alex;

unread,
Feb 27, 2024, 5:05:35 PMFeb 27
to QtContribs
And in my file need to replace  "QAPPLICATION" on " QCOREAPPLICATION" how in your file.
Or attach your  hbmk2_qt.hb to answer.
And I will combine from both files correct file.
Recompile qtcontribs not need. Only your program.
WBR, alex;
вторник, 27 февраля 2024 г. в 21:36:37 UTC+3, alex;:

Juan Francolino

unread,
Feb 27, 2024, 7:42:35 PMFeb 27
to qtcon...@googlegroups.com
Hi

hbmk2: Error: Función(es) referenciada, no encontrada, pero desconocida:
       QCOREAPPLICATION_TRANSLATE()

Attach file 

You received this message because you are subscribed to a topic in the Google Groups "QtContribs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qtcontribs/WKt47Rk8rik/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qtcontribs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/7ce99abf-ef92-4955-b2a6-6cec7fcc3cc7n%40googlegroups.com.
hbmk2_qt.hb

alex;

unread,
Feb 28, 2024, 12:54:08 AMFeb 28
to QtContribs
Hi, Juan.
Attached correct file.
WBR, alex;
среда, 28 февраля 2024 г. в 03:42:35 UTC+3, franco...@gmail.com:
hbmk2_qt.hb

alex;

unread,
Feb 28, 2024, 1:35:48 PMFeb 28
to QtContribs
If it not help.
Try this.

среда, 28 февраля 2024 г. в 08:54:08 UTC+3, alex;:
hbmk2_qt.hb

alex;

unread,
Feb 28, 2024, 3:01:29 PMFeb 28
to QtContribs
Yes. Try last.

среда, 28 февраля 2024 г. в 21:35:48 UTC+3, alex;:

Francolino

unread,
Feb 28, 2024, 3:25:24 PMFeb 28
to qtcon...@googlegroups.com

Hi Alex You are a genious.

I don't know how to thank you for your dedication and the time you have spent caring for me.

I'm going to analyze the differences to try to understand the changes.

I can now compile my applications to 64 bits.

Hugs from Argentina.

Juan Francolino

alex;

unread,
Feb 28, 2024, 5:56:34 PMFeb 28
to QtContribs
Hi, Juan.
I'm glad you helped.
WBR, alex;
среда, 28 февраля 2024 г. в 23:25:24 UTC+3, Juan:
Reply all
Reply to author
Forward
0 new messages