Csound Csound-dev Csound-tekno Search About

[Cs-dev] MinGW / Qt SDK woes

Date2013-07-25 15:10
FromMichael Gogins
Subject[Cs-dev] MinGW / Qt SDK woes
AttachmentsNone  None  
The problems I've been having seem partly to be due to this bug in MinGW which is used by the prebuilt Qt SDK. This may also affect MinGW 4.8.0 from mingw-builds. Some MinGW libraries that applications link with export both InterlockedCompareExchange@12 and _InterlockedCompareExchange. The bug is described here:


By comparison, earlier versions of MinGW export only InterlockedCompareExchange@12.

Obviously this is an extremely serious bug, as it makes it very difficult to package Qt based applications; they have to have their own copy of the MinGW libraries used to link Qt, and to come first in the PATH. It is very tricky to get the PATH correct, it does not seem to be enough to simply set the variable, you have to run the app from the same directory as the Qt DLLs and their copy of the MinGW DLLs. This is not suitable for regular users.

Until there is a prebuilt version of Qt where this is fixed, I will have to obtain a MinGW toolchain that does not have this problem, and then build everything (Qt libraries, Csound, all other C++ based Csound dependencies such as FLTK) with that toolchain. That is going to take some time but at least I understand the issues better.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2013-07-25 16:03
FromAndres Cabrera
SubjectRe: [Cs-dev] MinGW / Qt SDK woes
AttachmentsNone  None  
Ouch! What a tricky build... Thanks again for all this effort.

Cheers,
Andrés


On Thu, Jul 25, 2013 at 7:10 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
The problems I've been having seem partly to be due to this bug in MinGW which is used by the prebuilt Qt SDK. This may also affect MinGW 4.8.0 from mingw-builds. Some MinGW libraries that applications link with export both InterlockedCompareExchange@12 and _InterlockedCompareExchange. The bug is described here:


By comparison, earlier versions of MinGW export only InterlockedCompareExchange@12.

Obviously this is an extremely serious bug, as it makes it very difficult to package Qt based applications; they have to have their own copy of the MinGW libraries used to link Qt, and to come first in the PATH. It is very tricky to get the PATH correct, it does not seem to be enough to simply set the variable, you have to run the app from the same directory as the Qt DLLs and their copy of the MinGW DLLs. This is not suitable for regular users.

Until there is a prebuilt version of Qt where this is fixed, I will have to obtain a MinGW toolchain that does not have this problem, and then build everything (Qt libraries, Csound, all other C++ based Csound dependencies such as FLTK) with that toolchain. That is going to take some time but at least I understand the issues better.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel