[Cs-dev] PThreads
Date | 2014-11-27 18:17 |
From | Michael Gogins |
Subject | [Cs-dev] PThreads |
Attachments | None None |
So what should I do about linking with the pthread library when building Csound and the Windows installer for Csound? Keep in mind, this includes Csound as an application, Csound as a VST plugin for VST, and the Csound shared library and headers to be used by other programs. A lot of plugin opcodes that use pthreads (as a shared library) also are included.
Right now, I'm just going to revert to building everything including Csound and csnd6 using pthreads as a shared library. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2014-11-27 18:27 |
From | Rory Walsh |
Subject | Re: [Cs-dev] PThreads |
I'm still wrangling with this myself. It doesn't appear to be as straight forward as I had imagined. I can get it working fine for Cabbage, but when I try to build a basic csound.exe I keep getting a runtime termination. For now perhaps, in the interest of this release, you should just run off your usual build. It works out of the box. The use of csound~ with max4Live might well remain an issue, but it is only one issue. If users really want to use csound~ in Live i can provide a working build for them. I'll keep digging away at this. On 27 November 2014 at 18:17, Michael Gogins |
Date | 2014-11-27 18:42 |
From | Rory Walsh |
Subject | Re: [Cs-dev] PThreads |
I've noticed some other things. I just did a clean clone of csound/devel and built with as many options as possible. I get the following error on exit when I run csound.exe: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I then removed the '-static-libgcc -static' I had added to CMakeLists.txt (lines 260, 261) and my csound.exe no longer fails on exit and appears to work just fine. I suggest that those lines now be removed so we can move forward with the release. I find it odd that the changes I have made locally to address the pthreads issue work fine with Cabbage, but cause a problem with csound.exe. I'll keep digging and we can look to make better progress on a future release. On 27 November 2014 at 18:27, Rory Walsh |
Date | 2014-11-27 23:39 |
From | Rory Walsh |
Subject | Re: [Cs-dev] PThreads |
I've finally managed to build most things with a static link to pthread, but csound.exe continues to crash on exit so I think perhaps we can let this go. It seems that it might be more hassle than it's worth. I'm happy to make these changes locally for Cabbage builds, and if anyone has an issue with csound~ they can use the one I bundle with Cabbage. I can hack the source so that its OPCODE6DIR64 points to my dlls rather than the ones in Mike's installer. Therefore users can have both packages installed side by side without any problems. On 27 November 2014 at 18:42, Rory Walsh |