On Mon, Aug 26, 2013 at 12:54 AM, Muhammad Bashir Al-Noimi <
mbno...@gmail.com> wrote:
>
> Howdy,
>
> I successfully run Wt examples by Qt Creator under Ubuntu using
> available binaries in Ubuntu's repository but unfortunately Wt binaries
> unavailable in Windows so I've to walk on the painful build process but
> wiki page
> <http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_MS_Windows>
> doesn't mention building process through MinGW32!
>
>
MinGW32 is not the best gcc on Windows, they are behind other variants in
terms of API, exceptions, threads and other minor features.
I recommend using mingw-w64 directly or, if you want an easier
installation, mingw-builds (which is mingw-w64 with a fancy installer)
http://sourceforge.net/projects/mingwbuilds/
http://mingw-w64.sourceforge.net/
That being said, Visual C++ is by far a better compiler than MinGW on
Windows, especially on Win32.
How can I build Wt by MinGW instead of M$ Visual C++ compiler?
>
>
If you want a full build with all the dependencies, the easiest way would
probably be to adapt winstng:
http://www.gitorious.org/winstng
If using MSYS, the adaptations should be quite simple. OpenSSL will
probably be the "hardest" (you'd need to read the OpenSSL Win32 build
instructions).
One of this days I will put together a final "pack" step in that and try to
convince Emweb to redistribute a ready-to-go binary SDK :-)
> P.S. In case I build Wt as mentioned in Wiki page I wonder how can I
> link my Wt applications (built by MinGW32) with Wt libraries (built by
> VC++)?! for that I asked this question.
>
>
In general you cannot mix the output of different compilers because they
produce a different ABI, not only on Windows but on all platforms and all
compoilers.
An special case is the Visual C++ 6.0 ABI, which has become (de facto) as a
sort of "universal ABI" on Windows: whatever you compile to Visual C++ 6.0
ABI can be used in a later version of Visual C++ and MinGW (and probably
others). This is what most open source projects which are cross-compiled
for Windows from Linux do.
What you want to do (link Wt application built by MinGW with Wt libraries
built by VC++) is impossible to do AFAIK:
- You cannot compile Wt with Visual C++ 6.0 (too much templating)
- AFAIK You cannot tell Visual C++ to produce Visual C++ 6.0 ABI
- MinGW will not take in Visual C++ 2003, 2005, 2008, 2010, 2012 or 2013
ABI
The opposite would be doable, though: compile Wt with MinGW, then your
application with Visual C++ (any version). But it's not what you want to do.
Hope that helps.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest