[Csnd-dev] problem with compilation of an opcode in the csound 6.09.1
Date | 2017-11-08 00:20 |
From | Pablo Frank |
Subject | [Csnd-dev] problem with compilation of an opcode in the csound 6.09.1 |
Attachments | csound_poscil.c |
when trying to compilate the opcode attached (compilated without problems in former csound versions) i get this:
C:\MinGW\bin>gcc -O2 -shared -o csound_poscil.dll csound_poscil.c -DUSE_DOUBLE -I "C:\Program Files
(x86)\Csound6\include\csound" In file included from c:\mingw\include\csdl.h:111:0, from csound_poscil.c:1: c:\mingw\include\csoundCore.h:33:21: fatal error: pthread.h: No such file or directory #include <pthread.h> ^ compilation terminated.
Someone knows what's the problem and how to repair this? |
Date | 2017-11-08 14:35 |
From | Pablo Frank |
Subject | [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 |
Attachments | csound_poscil.c |
hello all, when trying to compilate the opcode attached (compilated without problems in former csound versions) i get this:
C:\MinGW\bin>gcc -O2 -shared -o csound_poscil.dll csound_poscil.c -DUSE_DOUBLE -I "C:\Program Files
(x86)\Csound6\include\csound" In file included from c:\mingw\include\csdl.h:111:0, from csound_poscil.c:1: c:\mingw\include\csoundCore.h:33:21: fatal error: pthread.h: No such file or directory #include <pthread.h> ^ compilation terminated.
Someone knows what's the problem and how to repair this? |
Date | 2017-11-08 15:12 |
From | Steven Yi |
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 |
Well, the error is what it is telling you: c:\mingw\include\csoundCore.h:33:21: fatal error: pthread.h: No such file or directory #include |
Date | 2017-11-08 15:29 | ||||||||||
From | Pablo Frank | ||||||||||
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 | ||||||||||
>>> Did you >>>
I *only* changed the csound version i'm using (i'm using the last 6.09.1). The last time i compiled it with one of the former versions (i don't remember which) everything was ok. I used and use the same mingw. According to your answer, something was changed in the mingw i have installed, and i should installed it again? From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Steven Yi <stevenyi@GMAIL.COM>
Sent: Wednesday, November 8, 2017 3:12 PM To: CSOUND@LISTSERV.HEANET.IE Subject: Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 Well, the error is what it is telling you:
c:\mingw\include\csoundCore.h:33:21: fatal error: pthread.h: No such file or directory #include <pthread.h> On your system, when compiling, it can not find pthread.h. Did you change anything about your system? It looks to me that that line to include pthread.h has been there since 2011, so it's not new. Did you change your compilation setup (reinstalled gcc? msys? mingw? etc.) recently? On Wed, Nov 8, 2017 at 9:35 AM, Pablo Frank <frank_pablo@hotmail.com> wrote: > hello all, when trying to compilate the opcode attached (compilated without > problems in former csound versions) i get this: > > > C:\MinGW\bin>gcc -O2 -shared -o csound_poscil.dll csound_poscil.c > -DUSE_DOUBLE -I "C:\Program Files > (x86)\Csound6\include\csound" > In file included from c:\mingw\include\csdl.h:111:0, > from csound_poscil.c:1: > c:\mingw\include\csoundCore.h:33:21: fatal error: pthread.h: No such file or > directory > #include <pthread.h> > ^ > compilation terminated. > > > > Someone knows what's the problem and how to repair this? > > Csound mailing list Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
Date | 2017-11-08 15:43 | ||||||||||
From | Steven Yi | ||||||||||
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 | ||||||||||
I don't know what my or may not have changed on your system, just asking questions to see if something has or not. Ultimately, you need to get pthread.h on your include path when you compile. I don't think the Csound headers have changed for that pthread inclusion from what I've seen. So my guess is something changed on your system. Also, I see you running gcc from a terminal with a C:\ prompt. Have you tried running gcc fromOn Wed, Nov 8, 2017 at 10:29 AM, Pablo Frank <frank_pablo@hotmail.com> wrote:
|
Date | 2017-11-08 15:55 |
From | Alan Fitch |
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 |
On 2017-11-08 15:43, Steven Yi wrote: > I don't know what my or may not have changed on your system, just > asking questions to see if something has or not. Ultimately, you need > to get pthread.h on your include path when you compile. I don't think > the Csound headers have changed for that pthread inclusion from what > I've seen. So my guess is something changed on your system. > > Also, I see you running gcc from a terminal with a C:\ prompt. Have > you tried running gcc from > an msys terminal? > You can also write a very small program like this: #include |
Date | 2017-11-08 20:22 | ||||||||||
From | Pablo Frank | ||||||||||
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 | ||||||||||
Attachments | csound_poscil.c csound_poscil.csd | ||||||||||
I reinstalled mingw, and added to the "include" folder all the files of the "include" folder of the csound-6.09.1 version. i tried to compile with the next command and all seemed to go ok (didn't receive any message): gcc -O2 -shared -o csound_poscil.dll csound_poscil.c -DUSE_DOUBLE -I "C:\Program Files (x86)\Csound6_x64\include\csound"
Then i tried to run the .csd file containing the opcode (here attached) from csoundQT and got this message: Creating options Creating orchestra Creating score Loading command-line libraries: rtaudio: PortAudio module enabled ... using blocking interface error: syntax error, unexpected T_IDENT (token "csound_poscil") from file C:\MinGW\bin\csound_poscil.csd (1) line 15: >>>asig csound_poscil <<< Unexpected untyped word asig when expecting a variable Parsing failed due to invalid input! Stopping on parser failure cannot compile orchestra
I tried also to compile from msys directory and it seems i don't know the correct command because i got full of errors trying this command:
msysmnt -O2 -shared -o csound_poscil.dll csound_poscil.c -DUSE_DOUBLE -I "C:\Program Files (x86)\Csound6\include\csound" I'm fully lost. No idea what happens. From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Steven Yi <stevenyi@GMAIL.COM>
Sent: Wednesday, November 8, 2017 3:43 PM To: CSOUND@LISTSERV.HEANET.IE Subject: Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 I don't know what my or may not have changed on your system, just asking questions to see if something has or not. Ultimately, you need to get pthread.h on your include path when you compile. I don't think the Csound headers have changed for that pthread
inclusion from what I've seen. So my guess is something changed on your system.
Also, I see you running gcc from a terminal with a C:\ prompt. Have you tried running gcc fromOn Wed, Nov 8, 2017 at 10:29 AM, Pablo Frank
<frank_pablo@hotmail.com> wrote:
|
Date | 2017-11-08 20:49 | ||||||||||
From | Michael Gogins | ||||||||||
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 | ||||||||||
You have to have a OPCODE6DIR64 environment variable that points to the directory containing your plugin file. If you have such variable already, copy the plugin file to the directory indicated. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Nov 8, 2017 at 3:22 PM, Pablo Frank <frank_pablo@hotmail.com> wrote:
|
Date | 2017-11-09 03:16 | ||||||||||
From | Steven Yi | ||||||||||
Subject | Re: [Csnd] problem with compilation of user defined opcode *not UDO* in the csound 6.09.1 | ||||||||||
I compiled here with GCC and MinGW and got a DLL. I copied the dll into my OPCODE6DIR64 folder and the CSD worked fine. I tried using: csound --opcode-lib=csound_poscil.dll csound_poscil.csd csound csound_poscil.csd --opcode-lib=$PWD/csound_poscil.dll On Wed, Nov 8, 2017 at 3:49 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
|