mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Undefined references when using QtNetwork


From: Benjamin Kloster
Subject: Re: [Mingw-cross-env-list] Undefined references when using QtNetwork
Date: Wed, 15 Aug 2012 10:19:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0


We'd like to know more about this trouble.
Sure, I'll send a separate mail with a problem description.
Because we are using static linking, it's necessary to link explicitly to the libraries that QtNetwork depends on.
Ah, thanks, that helped me very much. I thought that CMake's "FindQt4" module takes care of that, but it seems like it doesn't. After some research, I found other people with similar problems, in particular an old post on this mailing list:

http://lists.gnu.org/archive/html/mingw-cross-env-list/2010-11/msg00065.html

The solution posted there by Daniel Stonier works for me. However, some issues in the CMake bug tracker similar to my problem, specifically those two:

http://public.kitware.com/Bug/view.php?id=6607

http://public.kitware.com/Bug/view.php?id=5934

sound like FindQt4 should actually support static linking and automatically link all the required libraries. That makes me think there's still a problem with my setup, either in CMake or MXE. I'll have to investigate further.

Anyway, thank you for the quick help. My application compiles and works fine on the target platform.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]