[Harbour] minimal hbqt app
Lorenzo Fiorini
lorenzo.fiorini at gmail.com
Wed Jul 1 14:05:22 EDT 2009
On Wed, Jul 1, 2009 at 6:00 PM, Mindaugas
Kavaliauskas<dbtopas at dbtopas.lt> wrote:
> I'm not sure if I'm not off topic, but demoqt.prg uses QWebView(), this
> makes to include QtWebKit and QtNetwork. I've deleted this part of demo and
> also STATIC FUNC Dummies(), and I was able to run demoqt.exe with QtCore4,
> QtGui and mingwm10 .dlls only.
I've installed the QT SDK for Linux 32 from qt site in my Ubuntu 9.04
and I've rebuilt the demo2.prg.
Using it the WebKit is not linked anymore but NetWork is requested by:
/opt/harbour/lib/libhbqt.a(hbqt_slots.o): In function
`Slots::downloadRequested(QNetworkRequest const&)':
hbqt_slots.cpp:(.text+0x3e1a): undefined reference to
`QNetworkRequest::QNetworkRequest(QNetworkRequest const&)'
so to build it I nedd to use:
hbmk demo2 -lhbqt -L/opt/qtsdk/lib -lQtCore -lQtGui -lQtNetwork
and to run I need:
LD_LIBRARY_PATH=/opt/qtsdk/lib ./demo2
these are the only requirements:
libQtCore.so.4
libQtGui.so.4
libQtNetwork.so.4
that I need to deploy with the app.
So it seems that using the qt's sdk is probably the best option today.
best regards,
Lorenzo
More information about the Harbour
mailing list