[vlc-devel] how to include qtnetwork in cross compilation
fayyaz lodhi
fayyazkl at gmail.com
Tue Jan 22 14:08:27 CET 2013
Hi Olivier,
Resolved finally!
Turns out inclusion of library -lws2_32 was the missing requirement in
QtNetwork.pc.in file.
I copied from QtGui.pc.in which didn't contain this lib and i thought
-lwsock32 which was already there should be sufficient.
However, adding -llws2_32 to this and then make .qt4 resolved the build
errors.
I found this lib mentioned in qmake.conf
Thank you so much for your time and consistent support.
Regards,
Fayyaz
On Tue, Jan 22, 2013 at 11:39 AM, fayyaz lodhi <fayyazkl at gmail.com> wrote:
> Thanks - i did read about pkg-config and it improved my understanding a
> little.
>
> I was already deleting qt4 folder and doing remake. However, didn't delete
> .qt4 file. (I didn't know actually that one existed). Also in the
> QtNetwork.pro file i changed the order of including QtNetwork lib i.e. put
> it in front of QtGui and QtCore.
>
> The earlier make errors were gone after this i.e. vlc is finding the
> package now. However, some win32 specific libraries are still not correctly
> found and generate errors. I have verified that the generated
> qt4/src/network/network.pro has the QT_NO_OPENSSL define (without it as
> you mentioned there were SSL linking errors).
>
> I am currently trying to figure out the cause of these errors. Thank you
> once again for your help. I am pasting there here so this might help some
> one latter as well OR may be if you have any idea about these, that would
> be great.
>
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x13d):
> undefined reference to `__imp__WSASocketW at 24'
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x1dc):
> undefined reference to `__imp__WSAIoctl at 36'
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x3a0):
> undefined reference to `__imp__WSAIoctl at 36'
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x4a8):
> undefined reference to `__imp__WSAIoctl at 36'
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x7ae):
> undefined reference to `__imp__WSANtohs at 12'
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x840):
> undefined reference to `__imp__WSANtohs at 12'
> /VLC/TestCC/vlc-git-LinuxCompiledWork/vlc/contrib/i686-w64-mingw32/lib/libQtNetwork.a(qnativesocketengine_win.o):qnativesocketengine_win.cpp:(.text+0x86f):
> undefined reference to `__imp__WSANtohl at 12'
>
> Regards,
> Fayyaz
>
>
>
> On Mon, Jan 21, 2013 at 11:02 PM, Olivier Teuliere <ipkiss at gmail.com>wrote:
>
>> After changing rules.mak, remove the qt4 folder and the .qt4 file,
>> then rebuild (make .qt4).
>> If vlc does not auto-detect it I cannot help you, since I used the qt
>> contrib for another project. Read a bit about pkg-config to get you
>> started...
>>
>> On Mon, Jan 21, 2013 at 10:41 AM, 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
>> >
>> >
>> >
>> > _______________________________________________
>> > vlc-devel mailing list
>> > To unsubscribe or modify your subscription options:
>> > http://mailman.videolan.org/listinfo/vlc-devel
>> >
>>
>>
>>
>> --
>> 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/20130122/329e4f8c/attachment.html>
More information about the vlc-devel
mailing list