[vlc-devel] how to include qtnetwork in cross compilation

fayyaz lodhi fayyazkl at gmail.com
Mon Jan 21 15:10:31 CET 2013


Hi  Olivier,

I have patched as you advised and i see the define QT_NO_OPENSSL in the
logs fine. No link errors with that.

However, when cross compiling, i.e. make in vlc/win32 folder, it fails to
find definition of QtNetwork related apis such as QtNetworkAccessManager
and QNetworkReply. Some how, make is not able to find the QtNetwork lib.

Note that i haven't recompiled the entire contrib. Just modified rules.mak
and then in contrib/win32 i did, 'make .qt4'

Would really appreciate if you could suggest any thing out. Here is my
error log

FirstRunreplyFinished is an example function which uses QtNetwork classes.

s/.libs/libqt4_plugin_la-firstrun.o: In function
`_ZN8FirstRun13replyFinishedEv':
VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/win32/modules/gui/qt4/../../../../extras/package/win32/../../../modules/gui/qt4/dialogs/firstrun.cpp:217:
undefined reference to `QNetworkReply::error() const'
dialogs/.libs/libqt4_plugin_la-firstrun.moc.o: In function `~FirstRun':
/VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/win32/modules/gui/qt4/dialogs/../../../../../modules/gui/qt4/dialogs/firstrun.hpp:69:
undefined reference to `QNetworkAccessManager::~QNetworkAccessManager()'
/VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/win32/modules/gui/qt4/dialogs/../../../../../modules/gui/qt4/dialogs/firstrun.hpp:69:
undefined reference to `QNetworkAccessManager::~QNetworkAccessManager()'
/VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/win32/modules/gui/qt4/dialogs/../../../../../modules/gui/qt4/dialogs/firstrun.hpp:69:
undefined reference to `QNetworkAccessManager::~QNetworkAccessManager()'
/VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/win32/modules/gui/qt4/dialogs/../../../../../modules/gui/qt4/dialogs/firstrun.hpp:69:
undefined reference to `QNetworkAccessManager::~QNetworkAccessManager()'

Thanks,
Fayyaz

On Mon, Jan 21, 2013 at 2:41 PM, fayyaz lodhi <fayyazkl at gmail.com> wrote:

> Thank you Olivier.
>
> I followed as it is (i.e. did all that you mentioned), along with
> QtNetwork enabled in my main vlc/confiugre.ac and kept getting the
> QtNetwork not found error as soon as i started
> /extras/package/win32/configure.sh
>
> Then i removed the QtNetwork from configure.ac.
>
> Do i need to only remake qt4 in contribs OR do i need to remake whole
> contribs too since i modified rules.mak?
>
> I did remake qt4 by cd into qt4 and make. Then i followed the usual
> procedure. It failed in the make with failing to locate
> QtNetworkAccessManager, QNetworkReplay, QUrl etc. which indicates it was
> still not able to link with QtNetwork.
>
> I only remake qt4 in contribs for this. If i try remaking in
> contrib/win32, i get the following error
>
> libtool: link: symbol file `harfbuzz.def' does not exist
>
>
>
>
> On Mon, Jan 21, 2013 at 11:01 AM, Olivier Teuliere <ipkiss at gmail.com>wrote:
>
>> On Mon, Jan 21, 2013 at 12:11 AM, Fayyaz Khan <fayyazkl at gmail.com> wrote:
>> > i don't see any references to .pro files in rules.mak. Patch of which
>> file?
>> > "Other ones" you mean like the others in INSTALLING PKGCONFIG FILES
>> where i
>> > add "Network"?
>>
>> Other ones, like the other .patch files in contrib/src/qt4 (referenced
>> near the beginning of rules.mak).
>>
>> Best regards,
>> --
>> Olivier
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130121/e3b7c372/attachment.html>


More information about the vlc-devel mailing list