How to create an Android APK from Harbour - Steps, Tips & Tricks

3,942 views
Skip to first unread message

Pritpal Bedi

unread,
Apr 18, 2014, 10:13:46 PM4/18/14
to
Hello Everybody

This thread will contain all the discussions leading to building an 
Android APK via Qt Creator, Harbour and HbQt. This message body will be edited for 
inserting missing parts as and when discovered; instead of initiating a different isolated 
message. The idea is to keep every needed bit at one place. Once we will be convinced
that what goes into this message is sufficient enough to understand the steps 
required to build an APK, I will publish it as part of HbIDE and/or onto my site.

Assumptions:

1. One would use C drive for all these operations ( change links accordingly in case of other drive ).
2. For simplicity reasons, some components will be installed in easy graspable folders instead of their default locations.
3. To make things really simpler, I suggest ( and refer in following lines ) to use QtContribs installation folder for other components.
4. You have some proficiency with how to use Qt Creator.

After installing QtContribs create these subfolders in C:\hb32\android
C:\hb32\android
                       \sdk
                       \ndk
                       \ant


What Components are Needed:

1. Harbour binaries compiled by Android NDK.
2. Complete installation of Qt 5.3.0beta or later with MinGW 4.8.2.
3. Complete installation of Android SDK.
4. Complete installation of Android NDK.
5. Complete installation of Apache Ant Tool ( Ant ).
6. Complete installation of Java v1.7 or later.

1. Harbour binaries compiled by Android NDK.
      We have them ready as part of QtContribs installer. You need not to re-do it again.
      This does not stop you to build your own 

2. Complete installation of Qt 5.3.0beta or later with MinGW 4.8.2.
      Download Qt 5.3.0 beta from
      and install it in its default location on drive C which should be like C:\Qt\Qt5.3.0.

3. Complete installation of Android SDK.
      Download Android SDK from
      and deflate it in C:\hb32\android\sdk folder.

4. Complete installation of Android NDK.
      Download Android NDK from
      and deflate in C:\hb32\android\ndk folder.

5. Complete installation of Apache Ant Tool ( Ant ).
      Download ANT from:
      and deflate in C:\hb32\android\ant folder.

6. Complete installation of Java v1.7 or later.
      Most probably Java is already installed on your computer, but if not download it from
      and install it in its default folder which will be somewhere in Program Files.


Once all above components are in place we are ready for experiencing our first Android build.
But wait, we need to setup a proper build project folder where all files created by Qt Creator 
will reside. Note that Qt Creator can build projects for different targets and platforms and 
name its build folders accordingly. So it is important to understand its importance.
I suggest to have C:\hb32-android folder parallel to C:\hb32 folder. Then create as many 
folders within it as many projects you might have. For our comprehension I create a project, 
( hbqt\tests\browarray.prg based ),  like this:


C:\hb32
   ...\bin
   ...
C:\hb32-android
   ...browarray            
   ......hb-gui.cpp      ( copy it from C:\hb32\android )
   ......hb-gui.pro       (                __do__                )


Now execute Qt Creator. and follow these steps:

1. Navigate <Tools><Options><Android>.
2. In the resulting dialog enter these values:

After completing input in <Android> page, click on <Build and Run> option 
in the left panel. Then clik on <Kits> tab.




Now click on <Main Menu><File><Open File or Project> and navigate to C:\hb32-android\browarray\hb-gui.pro in file selection dialog and click <Open>.
You will see the top-left corner of Qr Creator like this:

You can see that <Android for arm...> section is still unchecked. Check it and then press on <Details> pushbutton.
it will show up Debug and Release fields filled with default build paths. Keep all default values. You can always fine tune
them as you will get proficiency with Qt Creator. Top-left corner of Qt Creator will look like this:

Click <Configure Project>. Creator will enter in "Edit" mode Showing "hb-gui" project in the left panel.
Double-click on <hb-gui.pro> entry in the project tree. The contents will be displayed in Qt editor. 
You will see the editor like this:

We need to change some parameters like the one shown below with explanation:


Click on <hb-gui><Debug> and you will see this window ( I have make Android... option active ):


Now click on <Projects> icon on the left toolbar. You will see the following :

Expand <Build Steps><Detail> and edit some parameters not useful for our development ( explained by following image ):


This is the image after clicking on <Run> tab on <Android...> kit and expanding <Deploy Configurations>

After clicking on <Create AndroidManifest.xml> button:


Clicking on <Finish> will lead to all-the-important interface to define values for different components of APK.
Below is the image for blank form and then the filled-up form with explanation:



By now, we are almost ready for our first compilation, only one small step remains.
We are to create lib "browarray" in C:\hb32\lib\win\mingw folder via Harbour-Android setup.
This is explained as...





To be continued...



Enjoy
Pritpal Bedi
a student of software analysis & concepts

Pritpal Bedi

unread,
Apr 18, 2014, 11:32:28 AM4/18/14
to qtcon...@googlegroups.com
Hi

did you test with the last downloadable SDK w? I have the same problems on incompatible AVD using Qt Creator since it is based on 3.0.82 and not 3.1 that solves the problems.

Honestly I did not download latest SDK. So have no idea about this issue.
 
I also have a strange problem using gcc in Qt5.3beta: when I run it a messagebox appears asking for drive D:... I don't have a D: drive !!! Do you have a drive D: on your pc ?

No, I do not have drive D. But I do not get any such alert. 


Pritpal Bedi

Francesco Perillo

unread,
Apr 18, 2014, 12:33:31 PM4/18/14
to qtcontribs
Pritpal, how do you run the app ? You deploy from Creator or use the external tool ?

How do you force linking after compiling myapp ?


--
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 post to this group, send email to qtcon...@googlegroups.com.
Visit this group at http://groups.google.com/group/qtcontribs.
For more options, visit https://groups.google.com/d/optout.

Pritpal Bedi

unread,
Apr 18, 2014, 3:40:10 PM4/18/14
to qtcon...@googlegroups.com
Francesco



Pritpal, how do you run the app ? You deploy from Creator or use the external tool ?

How do you force linking after compiling myapp ?


Qt Creator only.

Keep watch on this thread. I will be updating starting 
message on daily basis. It will answer all your questions. 

Pritpal Bedi

Francesco Perillo

unread,
Apr 18, 2014, 5:55:25 PM4/18/14
to qtcontribs
Your approach to QtContribs is quite different from mine. I prefer to build my environment myself because I want to understand what's going on.

I'm also documenting my findings on the blog whose url I posted a few days ago.

Probably the batch files I use to compile are similar to yours and produce similar but not identical results.

With these differences made clear, I will check my notes against your posts and will adopt  some ideas if I see thay fit my goal. Feel free to do the same from my notes (not all pages are visible at the moment).




--

Massimo Belgrano

unread,
Apr 21, 2014, 5:04:54 AM4/21/14
to qtcon...@googlegroups.com
will be  possible include Mingw and qt library in distribution to be ready to use?
--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

Massimo Belgrano

unread,
Apr 22, 2014, 12:09:19 PM4/22/14
to qtcon...@googlegroups.com

GCC 4.9.0 Released

  • From: Jakub Jelinek <jakub at redhat dot com>
  • To: gcc at gcc dot gnu dot org
  • Date: Tue, 22 Apr 2014 15:10:54 +0200
  • Subject: GCC 4.9.0 Released
  • Authentication-results: sourceware.org; auth=none
  • Reply-to: Jakub Jelinek <jakub at redhat dot com>

One year and one month passed from the time when the last major version
of the GNU Compiler Collection has been announced, so it is the time again
to announce a new major GCC release, 4.9.0.

GCC 4.9.0 is a major release containing substantial new
functionality not available in GCC 4.8.x or previous GCC releases.

http://gcc.gnu.org/ml/gcc/2014-04/msg00195.html

Massimo Belgrano

unread,
Apr 25, 2014, 2:45:48 PM4/25/14
to qtcon...@googlegroups.com
First builds of MinGW-W64 based on GCC-4.9.0.
http://blog.gmane.org/gmane.comp.gnu.mingw.w64.general

Massimo Belgrano

unread,
Apr 26, 2014, 12:55:09 PM4/26/14
to qtcon...@googlegroups.com
Mingw have been released in reelease good for qt:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.0/threads-posix/dwarf/

For Qt 5 we recommend a MinGW w64 based distribution with a recent gcc.

Recommended package for 32 bit (also tested in CI system + used by 5.1 installer):
http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win32/Personal Builds/mingw-builds/4.?.?/threads-posix/dwarf/

Massimo Belgrano

unread,
May 6, 2014, 5:01:52 AM5/6/14
to qtcon...@googlegroups.com
Other info who can help use on android are
Prezmek post who open mind and give usefull info
https://groups.google.com/d/msg/harbour-devel/mhtiL0FH060/W1zCRKur4gEJ
https://groups.google.com/forum/#!msg/harbour-devel/brzqesIZ8HA/2BcJX31_y6gJ


Usefull info from the good blog
http://www.mozzarellaincarrozza.it/harbour/

An old post who need be ubtated regarding qt obkect descruction
http://hbide.vouch.info/hbqt_-_gc_-_qt_object_destruct.htm

Massimo Belgrano

unread,
May 20, 2014, 6:56:44 AM5/20/14
to qtcon...@googlegroups.com


In hb-gui.pro change:

LIBS += -LC:\hb32\lib\android\gccarm  \
                                  \
                -lmyapp           \
                                  \
        =>

LIBS += -LC:\hb32\lib\android\gccarm  \
                                  \
                -lbrowarray      \
                                  \

This will be the only change you would do for any new project you will initiate.



Now execute Qt Creator. and follow these steps:

1. Navigate <Tools><Options><Android>.
2. In the resulting dialog enter these values:

I have some AVD's already created on my machine so are picked by the dialog above.
If you have just installed Qt Creator and have never done Android programmin, you may need 
to create one AVD. Follow the buttons on the dialog.




To be continued...



Enjoy
Pritpal Bedi
a student of software analysis & concepts

--
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 post to this group, send email to qtcon...@googlegroups.com.
Visit this group at http://groups.google.com/group/qtcontribs.
For more options, visit https://groups.google.com/d/optout.

Diego Risi

unread,
May 24, 2014, 8:59:53 AM5/24/14
to qtcon...@googlegroups.com
Hi Pritpal,
I look forward to you to complete this very interesting guide.
Thanks.
Best Regards,
Diego


Il giorno venerdì 18 aprile 2014 03:08:43 UTC+2, Pritpal Bedi ha scritto:
Now execute Qt Creator. and follow these steps:

1. Navigate <Tools><Options><Android>.
2. In the resulting dialog enter these values:

After completing input in <Android> page, click on <Build and Run> option 

Pritpal Bedi

unread,
May 28, 2014, 2:31:04 AM5/28/14
to qtcon...@googlegroups.com
Hi Diego


I look forward to you to complete this very interesting guide.


Sure, but will take some time.
Heavily busy schedule so  finding time is at a premium.


Pritpal Bedi

Mauricio Cruz

unread,
Jun 2, 2014, 8:01:57 AM6/2/14
to qtcon...@googlegroups.com


No Pressure Mr. Bedi, but I'm looking forward to complete it too. And, by the way, thanks alot for this guide...

Karl Svensson

unread,
Jun 20, 2014, 6:13:31 AM6/20/14
to qtcon...@googlegroups.com
I have followed step by step this tutorial but I don't know how to compile for android browarray.prg 
Can you help me? Thnks
Karl

Karl Svensson

unread,
Jun 21, 2014, 9:53:57 AM6/21/14
to qtcon...@googlegroups.com
I am progressing,, but yet don't have the goal :

I have compiled browarray.exe and it is working
After that, I made the lib file with this command

PATH=c:\hb32qt\bin;C:\Qt\Qt5.3.0\Tools\mingw482_32\bin;%path%
SET HB_WITH_QT=C:\hb32qt\bin
set HB_QTPATH=C:\qt
SET HB_QT_MAJOR_VER=5
SET TMP=c:\hb32qt\proyectos\test2
SET TEMP=c:\hb32qt\proyectos\test2
hbmk2 -w3 browarray.prg C:\hb32qt\addons\hbqt\qtgui\hbqtgui.hbc -b -m -hblib -obrowarray.lib

And the libbrowarray.a is on the folder!

But when I try to compile with Qt Creator I recieve this message:

15:50:21: Running steps for project hb-gui...

15:50:21: Configuration unchanged, skipping qmake step.

15:50:21: Starting: "C:\Qt\Qt5.3.0\Tools\mingw482_32\bin\mingw32-make.exe"

C:\android\android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++ --sysroot=C:\android\android-ndk-r9d/platforms/android-9/arch-arm/ -Wl,-soname,libbrowarray.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libbrowarray.so hb-gui.obj -LC:\android\android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -LC:\android\android-ndk-r9d/platforms/android-9/arch-arm//usr/lib -LC:\hb32qt\lib\android\gccarm -lC:\hb32qt\proyectos\test2\libbrowarray.a -Wl,--start-group -lexpat -lgtpca -lgtstd -lgttrm -lhbcomm -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbexpat -lhbextern -lhbformat -lhbfship -lhbgt -lhblang -lhblzf -lhbmacro -lhbmemio -lhbmisc -lhbmlzo -lhbmxml -lhbmzip -lhbnetio -lhbnf -lhbnulrdd -lhboslib -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbtest -lhbtip -lhbuddall -lhbunix -lhbusrrdd -lhbvm -lhbziparc -lhbzlib -llzf -lminilzo -lminizip -lmxml -lrddbm -lrddcdx -lrddfpt -lrddnsx -lrddntx -lrddsql -lgtqtc -lhbqtcore -lhbqtgui -lhbqtnetwork -lhbqtwidgets -Wl,--end-group -LC:/Qt/Qt5.3.0/5.3/android_armv7/lib -lQt5PrintSupport -Lc:\Utils\android\ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -Lc:\Utils\android\ndk/platforms/android-9/arch-arm//usr/lib -LC:\Utils\icu32_51_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\Utils\pgsql\lib -LC:\temp\opensll-android-master\openssl-android-master\lib -LC:\Qt\Qt5.3.0\5.3\android_armv7/lib -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc

..\test2/hb-gui.cpp:6: error: undefined reference to 'HB_FUN_MAIN'

collect2.exe: error: ld returned 1 exit status

Makefile:78: recipe for target 'libbrowarray.so' failed

mingw32-make: *** [libbrowarray.so] Error 1

15:50:21: The process "C:\Qt\Qt5.3.0\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.

Error while building/deploying project hb-gui (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.0))

When executing step 'Make'

15:50:21: Elapsed time: 00:01.


The source code for hb-gui,cpp is this:


#include "hbapi.h"
#include "hbapigt.h"
#include "hbvm.h"
#include "hbapistr.h"

HB_FUNC_TRANSLATE( request_MAIN, MAIN )

int main(int argc, char *argv[])
{
    hb_cmdargInit( argc, argv );
    hb_vmInit( HB_TRUE );
    return hb_vmQuit();
}

Can you help me? Thanks!

Pritpal Bedi

unread,
Jun 21, 2014, 10:09:45 AM6/21/14
to qtcon...@googlegroups.com
Hi


I am progressing,, but yet don't have the goal :


But you are very near.

Look at hb-gui.pro. It contains these lines:
LIBS += -LC:\hb32\lib\android\gccarm  \
                                  \
                -lmyapp           \

It means you have to compile this app as a lib, 
what you already are doing, but with the name myapp, 
and resulting libmyapp.a must reside in 
C:\hb32\lib\android\gccarm.

So rename libbrowarray.a to libmyapp.a and deposit in 
C:\hb32\lib\android\gccarm. Then "clean project" from 
Qt Creator's "Project" meny, and relink.

And you will have .apk running.


Pritpal Bedi

Pritpal Bedi

unread,
Jun 21, 2014, 10:13:03 AM6/21/14
to qtcon...@googlegroups.com
Hi

One correction in previous post:

hbmk2 -w3 browarray.prg C:\hb32qt\addons\hbqt\qtgui\hbqtgui.hbc -b -m -hblib -obrowarray.lib

=>

hbmk2 -w3 browarray.prg C:\hb32qt\addons\hbqt\qtgui\hbqtgui.hbc -b -m -hblib -omyapp

This will produce libmyapp.a which you have to deposi in the foder where other 
Harbour Android libraris are presents, with the extension .a.


Pritpal Bedi

Karl Svensson

unread,
Jun 21, 2014, 10:23:07 AM6/21/14
to qtcon...@googlegroups.com
Thanks for you help... but still the same message.
I have libmyapp.a in C:\hb32qt\lib\android\gccarm
This is my .pro file

#-------------------------------------------------
#
# Project created by QtCreator 2014-14-17T15:30:42
#
#-------------------------------------------------

QT        += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

TARGET    =  browarray
TEMPLATE  =  app

SOURCES   += hb-gui.cpp

HEADERS   += 
FORMS     += 
RESOURCES += 

CONFIG    += mobility
MOBILITY  = 

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/../android

OTHER_FILES += $$PWD/../android/AndroidManifest.xml


INCLUDEPATH += C:/hb32qt/include/

LIBS += -LC:\hb32qt\lib\android\gccarm  \
                                  \
                -lmyapp           \
                                  \

Pritpal Bedi

unread,
Jun 21, 2014, 11:00:34 AM6/21/14
to qtcon...@googlegroups.com
Hi

try after this, and cleaning the project,

hbmk2 -w3 -hblib browarray.prg -oC:\hb32qt\lib\android\gccarm\myapp



Pritpal Bedi

Karl Svensson

unread,
Jun 21, 2014, 11:09:30 AM6/21/14
to qtcon...@googlegroups.com
It doesn't work, the same error

17:05:21: Running steps for project hb-gui...

17:05:21: Configuration unchanged, skipping qmake step.

17:05:21: Starting: "C:\Qt\Qt5.3.0\Tools\mingw482_32\bin\mingw32-make.exe"

C:\android\android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++ --sysroot=C:\android\android-ndk-r9d/platforms/android-9/arch-arm/ -Wl,-soname,libbrowarray.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libbrowarray.so hb-gui.obj -LC:\android\android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -LC:\android\android-ndk-r9d/platforms/android-9/arch-arm//usr/lib -LC:\hb32qt\lib\android\gccarm -lmyapp -Wl,--start-group -lexpat -lgtpca -lgtstd -lgttrm -lhbcomm -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbexpat -lhbextern -lhbformat -lhbfship -lhbgt -lhblang -lhblzf -lhbmacro -lhbmemio -lhbmisc -lhbmlzo -lhbmxml -lhbmzip -lhbnetio -lhbnf -lhbnulrdd -lhboslib -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbtest -lhbtip -lhbuddall -lhbunix -lhbusrrdd -lhbvm -lhbziparc -lhbzlib -llzf -lminilzo -lminizip -lmxml -lrddbm -lrddcdx -lrddfpt -lrddnsx -lrddntx -lrddsql -lgtqtc -lhbqtcore -lhbqtgui -lhbqtnetwork -lhbqtwidgets -Wl,--end-group -LC:/Qt/Qt5.3.0/5.3/android_armv7/lib -lQt5PrintSupport -Lc:\Utils\android\ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -Lc:\Utils\android\ndk/platforms/android-9/arch-arm//usr/lib -LC:\Utils\icu32_51_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\Utils\pgsql\lib -LC:\temp\opensll-android-master\openssl-android-master\lib -LC:\Qt\Qt5.3.0\5.3\android_armv7/lib -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc

..\test2/hb-gui.cpp:6: error: undefined reference to 'HB_FUN_MAIN'

collect2.exe: error: ld returned 1 exit status

Makefile:78: recipe for target 'libbrowarray.so' failed

mingw32-make: *** [libbrowarray.so] Error 1

17:05:22: The process "C:\Qt\Qt5.3.0\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.

Error while building/deploying project hb-gui (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.0))

When executing step 'Make'


I am using WINDOWS 7 Home Premium 64 bits 


Sukriya!

Karl

Diego Risi

unread,
Jun 27, 2014, 7:28:38 PM6/27/14
to qtcon...@googlegroups.com
Hi Pritpal,

Il giorno mercoledì 28 maggio 2014 08:31:04 UTC+2, Pritpal Bedi ha scritto:

I look forward to you to complete this very interesting guide.

Sure, but will take some time.
Heavily busy schedule so  finding time is at a premium.
 
in addition to to take this opportunity to remind my (and I imagine of many other people) anxiously awaiting the rest of the instructions to create Android APK from Harbour, I report the following error compiling an application with hbide (the application was compiled without problems before reinstalling components according to the instructions in this post):

...

C:/qt/qt5.3.0/tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQtCore4

C:/qt/qt5.3.0/tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQtGui4

C:/qt/qt5.3.0/tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQtNetwork4

collect2.exe: error: ld returned 1 exit status


hbmk2[luxH]: Error: Running linker. 1

...

Do you have an idea about what could have happened ?

Thanks.

Regrds,

Diego

Pritpal Bedi

unread,
Jun 28, 2014, 2:28:00 AM6/28/14
to qtcon...@googlegroups.com
Hi


in addition to to take this opportunity to remind my (and I imagine of many other people) anxiously awaiting the rest of the instructions to create Android APK from Harbour,


Me too, but as said, I am extremely busy with an ungent Android project
based on Harbour, handed over to me by my company. And while I am developing 
this project I am gaining a lot more points which I would surely like to share with all 
of you. I hope to be finalyzing the project by next weekend and then this topic will 
get its final touches. Please bear with me for some more time.

 
I report the following error compiling an application with hbide (the application was compiled without problems before reinstalling components according to the instructions in this post):

...

C:/qt/qt5.3.0/tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQtCore4

C:/qt/qt5.3.0/tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQtGui4

C:/qt/qt5.3.0/tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQtNetwork4

collect2.exe: error: ld returned 1 exit status


hbmk2[luxH]: Error: Running linker. 1

...

Do you have an idea about what could have happened ?



Yes. 

This is Qt4 vs Qt5 mess present in current repository.
Next week only Qt5x commit is scheduled and then afterwards 
no such issues will pop-up.
Till then,

Pritpal Bedi

unread,
Jun 28, 2014, 2:33:29 AM6/28/14
to qtcon...@googlegroups.com
Hi


It doesn't work, the same error


Bear with me a little more.


Sukriya!



Wow.
Though "Sukria" is an Urdu word but it is a 
part of life in north-eastern region of India no matter 
which language is prime at that land. How did you shortlisted it ?


Pritpal Bedi
a student of software analysis & concepts


PS:  "Sukria" actually (Shukria) equals "Thanks".

Karl Svensson

unread,
Jun 28, 2014, 8:07:07 AM6/28/14
to qtcon...@googlegroups.com
i found it googling... thought it was in your language!
we will wait anxious and gratefull for your new releases
bona sort (good luck in catalan language - i live in barcelona,spain)
Karl

Diego Risi

unread,
Jun 28, 2014, 12:28:46 PM6/28/14
to qtcon...@googlegroups.com
Hi Pritpal,

in addition to to take this opportunity to remind my (and I imagine of many other people) anxiously awaiting the rest of the instructions to create Android APK from Harbour,

Me too, but as said, I am extremely busy with an ungent Android project
based on Harbour, handed over to me by my company. And while I am developing 
this project I am gaining a lot more points which I would surely like to share with all 
of you. I hope to be finalyzing the project by next weekend and then this topic will 
get its final touches. Please bear with me for some more time.

 
I report the following error compiling an application with hbide (the application was compiled without problems before reinstalling components according to the instructions in this post):

...

...

Do you have an idea about what could have happened ?


Yes.
This is Qt4 vs Qt5 mess present in current repository.
Next week only Qt5x commit is scheduled and then afterwards 
no such issues will pop-up.
Till then,

your answers reassure me and I just have to wait for your news. 
Thanks a lot for everything you're doing !
Regards,
Diego

Pritpal Bedi

unread,
Jun 28, 2014, 1:09:46 PM6/28/14
to qtcon...@googlegroups.com
Hi Karl


i found it googling... thought it was in your language!

Yes, we also use this word, frequently in day-to-day conversation, 
and it is so pleasing to see it on this group, thanks.
 
we will wait anxious and gratefull for your new releases
bona sort (good luck in catalan language - i live in barcelona,spain)


I am just returning a fraction what I gained from Harbour, my livelihood.

Leonardo Machado

unread,
Aug 9, 2014, 2:45:32 PM8/9/14
to qtcon...@googlegroups.com
Hi Pritpal,
Also look forward to continued ... Thank you

Em quinta-feira, 17 de abril de 2014 22h08min43s UTC-3, Pritpal Bedi escreveu:

To be continued...



Enjoy

Francesco Perillo

unread,
Apr 18, 2014, 6:55:03 AM4/18/14
to qtcontribs
Hi Pritpal,
did you test with the last downloadable SDK w? I have the same problems on incompatible AVD using Qt Creator since it is based on 3.0.82 and not 3.1 that solves the problems.

I also have a strange problem using gcc in Qt5.3beta: when I run it a messagebox appears asking for drive D:... I don't have a D: drive !!! Do you have a drive D: on your pc ?

I'm doing some tests...

William Manesco

unread,
Nov 27, 2016, 7:50:53 PM11/27/16
to QtContribs
Hi Pritpal

I know this topic is old, but I'm trying to generate an .apk and I'm having the same problem reported by Karl Svensson, Do you have solution of the problem?

Thanks for the work.

Massimo Belgrano

unread,
Nov 28, 2016, 4:21:14 AM11/28/16
to qtcon...@googlegroups.com

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to qtcon...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages