HbIDE and HBDBU won't compile on Linux

108 views
Skip to first unread message

Claudia Neumann

unread,
Jul 19, 2020, 3:39:31 PM7/19/20
to QtContribs
Hi all,

I am trying to compile qtcontribs on Linux Debian Buster 10 with Qt 5.11.3.

The libs compile, but HbIde and HBDBU stop with linker error:

undefined reference to 'HB_FUN_QAPPLICATION_TRANSLATE'
(which is used in several libraries)

and

undefined reference to 'HB_FUN_WAPI_OUTPUTDEBUGSTRING'

As I understand it, WAPI_OutputDebugString is a Windows functions. In
addons/hbqtwidgets/misc.prg
is

#ifndef __LINUX_
#ifndef __ANDROID__
WAPI_OutputDebugString( s )
#endif
#endif

I changed in

#ifndef __LINUX_
WAPI_OutputDebugString( s )
#endif
#ifndef __ANDROID__
WAPI_OutputDebugString( s )
#endif

The Linker misses the function QApplication.translate(). Is it possible, that
it should be QCoreApllication.translate() that is
HB_FUN_QCOREAPPLICATION_TRANSLATE ?

Best regards

Claudia





alex;

unread,
Jul 22, 2020, 4:52:45 AM7/22/20
to QtContribs
Hi.

See this topic https://groups.google.com/forum/#!topic/qtcontribs/AGxKJjOlni8

воскресенье, 19 июля 2020 г., 22:39:31 UTC+3 пользователь Claudia Neumann написал:

Claudia Neumann

unread,
Jul 23, 2020, 9:04:29 AM7/23/20
to qtcon...@googlegroups.com, alex;

Hi Alex,

 

success! Compiled hbQt on Linux Debian 10 Buster with Qt 5.11.3.

 

 

I had comment out the entries with WAPI_OUTPUTDEBUGSTRING in hbqtwidgets/misc.prg and change all entries QApplication().translate() to QCoreApplication().translate() in hbqt/hbmk2_qt.hb. After that I had to compile the libs several times and copy the libs from /usr/share/harbour/... to /usr/lib/harbour until all libs used the right code. (I could not find where to configure the path for the lib directory in hbqt, Harbour copied the libs to the right directory /usr/lib/harbour).

 

Many thanx

 

Claudia

> --

> 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/29ad5d81-8b5a-466e-9275-563295

> 73af18o%40googlegroups.com.

 

 

Bild

alex;

unread,
Jul 23, 2020, 9:42:16 AM7/23/20
to QtContribs
Hi,Claudia.

Good work.
Congratultions.

WBR, alex;

четверг, 23 июля 2020 г., 16:04:29 UTC+3 пользователь Claudia Neumann написал:

> emails from it, send an email to qtcon...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages