qtcontribs on linux?

157 views
Skip to first unread message

Helionney Goes

unread,
Apr 25, 2020, 7:33:34 PM4/25/20
to QtContribs
how do i install qtcontribs on kubuntu 19.10.
I have already installed the harbor and am not able to compile qtcontribs
I wish I could count on the help of friends here in the group

Pritpal Bedi

unread,
Apr 25, 2020, 8:21:48 PM4/25/20
to QtContribs
Sure Helionney


Download Qt 5.9.9 ( or whatever you get ) distribution for linux from qt.io.
Install it in Qt5.9.9 ( assuming that you downloaded this version ).
Execute the script below to compile Harbour. 
Install qtcontribs distro in harbour/addons.
cd to harbour/addons.
Execute the script below to compile hbqt.

#
#  Minimal build script for harbour and hbqt on ubuntu
#  For that matter this script will work for any linux distro
#

export HB_BUILD_NAME="-599"
export HB_QT_MAJOR_VER="5"
export HB_QT_MINOR_VER="5"
export HB_WITH_QT="/home/pritpal/Qt5.9.9/5.9.9/gcc_64/include"
export LD_LIBRARY_PATH="/home/pritpal/Qt5.9.9/5.9.9/gcc_64/lib"
export PATH="/home/pritpal/harbour/bin/linux/gcc-599:/home/pritpal/Qt5.9.9/5.9.9/gcc_64/bin;$PATH

cd harbour
make
 
cd addons
hbmk2 qtcontribs.hbp



Pritpal Bedi 
a student of software analysis & concepts

 
Message has been deleted
Message has been deleted

Helionney Goes

unread,
Apr 27, 2020, 12:09:04 PM4/27/20
to QtContribs
 
Dear Pritpal, I installed Qt 5.9 and did the steps you recommended and I was not successful.
I would love to be able to use Qt with the harbor, but apparently it is complicated, I am using KUBUNTU 19.10. I have tried to compile in harbor 3.2 and 3.4 but the following errors are returned to me:

contrib/addons/qtcontribs-code/hbqt/qtcore/hbqt_bind.cpp:197:37: error: ‘Q_NULLPTR’ was not declared in this scope
lib/linux/gcc/.hbmk/hbqtcore/moc_hbqt_hbqevents.cpp:15:2: error: #error "This file was generated using the moc from 5.12.4. It"
lib/linux/gcc/.hbmk/hbqtcore/moc_hbqt_hbqevents.cpp:16:2: error: #error "cannot be used with the include files from this version of Qt.
lib/linux/gcc/.hbmk/hbqtcore/moc_hbqt_hbqevents.cpp:17:2: error: #error "(The moc has changed too much.)"
17 | #error "(The moc has changed too much.)"
lib/linux/gcc/.hbmk/hbqtcore/moc_hbqt_hbqevents.cpp:21:1: error: ‘QT_WARNING_PUSH’ does not name a type
21 | QT_WARNING_PUSH
/lib/linux/gcc/.hbmk/hbqtcore/moc_hbqt_hbqevents.cpp:32:14: error: ‘qt_meta_stringdata_HBQEvents_t’ does not name a type
32 | static const qt_meta_stringdata_HBQEvents_t qt_meta_stringdata_HBQEvents = {
/lib/linux/gcc/.hbmk/hbqtcore/moc_hbqt_hbqevents.cpp:65:1: error: ‘QT_INIT_METAOBJECT’ does not name a type
65 | QT_INIT_METAOBJECT const QMetaObject HBQEvents::staticMetaObject = { {

Pritpal Bedi

unread,
Apr 27, 2020, 5:36:04 PM4/27/20
to QtContribs
Hi

Seems you did not read the instructions as is.

The first mistake...

contrib/addons/qtcontribs-code/hbqt/qtcore/
=>
contrib/addons/hbqt/qtcore/

Also show me the steps and your script from where you are issuing those steps.



Pritpal Bedi

Helionney Goes

unread,
Apr 27, 2020, 10:24:03 PM4/27/20
to QtContribs

Dear Pritpal, the procedures I did were as follows:

export HB_INSTALL_PREFIX=/usr/local

export HB_INSTALL_BIN=/usr/local/bin

export HB_INSTALL_LIB=/usr/local/lib

export HB_INSTALL_ETC=/usr/local/etc

export HB_INSTALL_INC=/usr/local/include

export HB_INSTALL_DOC=/usr/local/share

export HB_BUILD_SHARED=no

export HB_QT_MAJOR_VER=5

export HB_WITH_QT=/usr/local/Qt5/5.9.9/gcc_64/include/

export HB_QTPATH=/usr/local/Qt5/5.9.9/gcc_64/bin/

export LD_LIBRARY_PATH=/usr/local/Qt/5.9.9/gcc_64/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

export QTCONTRIBS_REBUILD


$cd harbour-core/

:~harbour-core$ cd addons

:~harbour-core/addons$ svn checkout https://svn.code.sf.net/p/qtcontribs/code/trunk qtcontribs-code

:~harbour-core/addons$cd ..

:~harbour-core$ make



Em sábado, 25 de abril de 2020 20:33:34 UTC-3, Helionney Goes escreveu:

Helionney Goes

unread,
Apr 28, 2020, 10:40:36 AM4/28/20
to QtContribs

Dear Pritpal friend, thank you very much for your valuable clarifications ...
I managed to generate the lib. !!!!!!!

THANKSOOOOOOO !!!!!!!!!!

Em sábado, 25 de abril de 2020 20:33:34 UTC-3, Helionney Goes escreveu:
Reply all
Reply to author
Forward
0 new messages