[Csnd] Re: Re: Re: Re: downloading csoundvst
Date | 2009-09-24 20:24 |
From | michael.gogins@gmail.com |
Subject | [Csnd] Re: Re: Re: Re: downloading csoundvst |
You are not being stupid, but it sounds like you may not be familiar with the convention for link names. On Linux, "-lxxx" means: link with a file named libxxx.a or libxxx.so. This is case-sensitive. In addition, on Linux, the names of shared libraries are versioned with a so-called "soname" (shared object name). For example, csound32 is probably actually libcsound32.so.5.2. In this case, to link with libcsound32.so.5.2 using -lcsound32, you need to create a symbolic link named libcsound32.so that points to libcsound32.so.5.2. Or you can just copy libcsound32.so.5.2 to libcsound32.so. Hope this helps, Mike ----- Original Message ----- From: "Atte Andre Jensen" |
Date | 2009-09-24 20:47 |
From | Felipe Sateler |
Subject | [Csnd] Re: Re: Re: Re: Re: downloading csoundvst |
Sorry for chipping in late, but since the subject said csoundvst, which I didn't know worked on linux, I skipped the thread. The problem is that apparently csoundvst is assuming (like I did) that it is being built on windows. The float version of csound is called csound, not csound32. Windows is the only platform to append the MYFLT size to both versions of the library. Atte, change SConstruct so that in the csoundvst section, every mention to csound32 is renamed to csound. On Thu, 2009-09-24 at 15:24 -0400, michael.gogins@gmail.com wrote: > You are not being stupid, but it sounds like you may not be familiar with > the convention for link names. On Linux, > "-lxxx" means: link with a file named libxxx.a or libxxx.so. This is > case-sensitive. In addition, on Linux, the names of shared libraries are > versioned with a so-called "soname" (shared object name). For example, > csound32 is probably actually libcsound32.so.5.2. In this case, to link with > libcsound32.so.5.2 using -lcsound32, you need to create a symbolic link > named libcsound32.so that points to libcsound32.so.5.2. Or you can just copy > libcsound32.so.5.2 to libcsound32.so. > > Hope this helps, > Mike > > > > ----- Original Message ----- > From: "Atte Andre Jensen" |
Date | 2009-09-24 20:57 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: Re: Re: downloading csoundvst |
michael.gogins@gmail.com wrote: > You are not being stupid, but it sounds like you may not be familiar > with the convention for link names. You're right. But to my defence: There were no file with "csound32" in it's name (which I already mentioned). I'm really just guessing here, but I did this: ln -s libcsound.so libcsound32.so Is that correct? Here's a little bit about what I have in the cvs root dir: [atte@vestbjerg 09_09_23]$ find | grep lib ./libcsound.so.5.2 ./InOut/libsnd.os ./InOut/libsnd_u.c ./InOut/libsnd_u.o ./InOut/libsnd.c ./InOut/libsnd.o ./InOut/libsnd_u.os ./H/fftlib.h ./libcsnd.so ./libcsound.a ./OOps/fftlib.os ./OOps/fftlib.o ./OOps/fftlib.c ./libCsoundVST.so ./libcsound.so ./libcsnd.so.5.2 At least I get further in the build now: g++ -o frontends/CsoundVST/csoundvst_main.o -c -fexceptions -fno-strict-aliasing -Wno-format -DGNU_GETTEXT -g -fomit-frame-pointer -freorder-blocks -DLINUX -DPIPES -fvisibility=hidden -fno-strict-aliasing -DHAVE_LIBSNDFILE=1016 -DHAVE_VST_SDK -DHAVE_FLTK -DBETA -DHAVE_SOCKETS -DHAVE_PTHREAD_BARRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/include/fltk-1.1 -I/usr/include/python2.6 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/X11R6/include -Ifrontends/CsoundVST -Iinterfaces frontends/CsoundVST/csoundvst_main.cpp g++ -o CsoundVSTShell -Wl,-rpath-link,. -Wl,-Bdynamic frontends/CsoundVST/csoundvst_main.o -L. -L. -L/usr/local/lib -L. -L. -L/usr/lib/fltk-1.1 -lcsound32 -lcsnd -lCsoundVST frontends/CsoundVST/csoundvst_main.o: In function `main': /home/atte/software/csound/09_09_23/frontends/CsoundVST/csoundvst_main.cpp:40: undefined reference to `RunCsoundVST' collect2: ld returned 1 exit status scons: *** [CsoundVSTShell] Error 1 scons: building terminated because of errors. Another question: looking at csoundvst_main.cpp I see LoadLibrary("CsoundVST.dll"). Is that really gonna work under linux? I have a ./libCsoundVST.so but no CsoundVST.dll. Looking at stuff like this, I get the feeling I'm the first one to ever compile csoundVST under linux. But then again, I didn't write the code and don't understand it :-) |
Date | 2009-09-24 21:00 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: downloading csoundvst |
Felipe Sateler wrote: > The problem is that apparently csoundvst is assuming (like I did) that > it is being built on windows. The float version of csound is called > csound, not csound32. Windows is the only platform to append the MYFLT > size to both versions of the library. Ok, makes sense! > Atte, change SConstruct so that in the csoundvst section, every mention > to csound32 is renamed to csound. Thanks, that works (exactly like my hacky symlink), still stuck with these: scons: Building targets ... g++ -o CsoundVSTShell -Wl,-rpath-link,. -Wl,-Bdynamic frontends/CsoundVST/csoundvst_main.o -L. -L. -L/usr/local/lib -L. -L. -L/usr/lib/fltk-1.1 -lcsound -lcsnd -lCsoundVST frontends/CsoundVST/csoundvst_main.o: In function `main': /home/atte/software/csound/09_09_23/frontends/CsoundVST/csoundvst_main.cpp:40: undefined reference to `RunCsoundVST' collect2: ld returned 1 exit status scons: *** [CsoundVSTShell] Error 1 scons: building terminated because of errors. |
Date | 2009-09-24 22:06 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: downloading csoundvst |
Thanks! Mkg On Sep 24, 2009 3:48 PM, "Felipe Sateler" <fsateler@gmail.com> wrote: |
Date | 2009-09-24 22:38 |
From | Felipe Sateler |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
On Thu, 2009-09-24 at 22:00 +0200, Atte Andre Jensen wrote: > Felipe Sateler wrote: > > > The problem is that apparently csoundvst is assuming (like I did) that > > it is being built on windows. The float version of csound is called > > csound, not csound32. Windows is the only platform to append the MYFLT > > size to both versions of the library. > > Ok, makes sense! > > > Atte, change SConstruct so that in the csoundvst section, every mention > > to csound32 is renamed to csound. > > Thanks, that works (exactly like my hacky symlink), still stuck with these: > > scons: Building targets ... > g++ -o CsoundVSTShell -Wl,-rpath-link,. -Wl,-Bdynamic > frontends/CsoundVST/csoundvst_main.o -L. -L. -L/usr/local/lib -L. -L. > -L/usr/lib/fltk-1.1 -lcsound -lcsnd -lCsoundVST > frontends/CsoundVST/csoundvst_main.o: In function `main': > /home/atte/software/csound/09_09_23/frontends/CsoundVST/csoundvst_main.cpp:40: > undefined reference to `RunCsoundVST' > collect2: ld returned 1 exit status > scons: *** [CsoundVSTShell] Error 1 > scons: building terminated because of errors. This is strange, RunCsoundVST is defined in CsoundVST.cpp, which is compiled into libCsoundVST. Try cleaning and building again. -- Saludos, Felipe Sateler |
Date | 2009-09-24 23:18 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Felipe Sateler wrote: > This is strange, RunCsoundVST is defined in CsoundVST.cpp, which is > compiled into libCsoundVST. Try cleaning and building again. You mean "scons -c", right? Doesn't change a thing :-( [atte@vestbjerg 09_09_23]$ scons buildInterfaces=1 dynamicCsoundLibrary=1 buildPythonOpcodes=1 useOSC=1 buildUtilities=1 buildCsoundVST=1 |
Date | 2009-09-25 00:04 |
From | Felipe Sateler |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
On Fri, 2009-09-25 at 00:18 +0200, Atte Andre Jensen wrote: > Felipe Sateler wrote: > > > This is strange, RunCsoundVST is defined in CsoundVST.cpp, which is > > compiled into libCsoundVST. Try cleaning and building again. > > You mean "scons -c", right? In theory the answer is yes, but you have to specify all the options you used last time to build. It is easier to use the cleanup.sh script in the source directory ./cleanup.sh -- Saludos, Felipe Sateler |
Date | 2009-09-25 06:05 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Felipe Sateler wrote: > In theory the answer is yes, but you have to specify all the options you > used last time to build. It is easier to use the cleanup.sh script in > the source directory > ./cleanup.sh Ok, tried that, didn't solve the problem eigther. g++ -o CsoundVSTShell -Wl,-rpath-link,. -Wl,-Bdynamic frontends/CsoundVST/csoundvst_main.o -L. -L. -L/usr/local/lib -L. -L. -L/usr/lib/fltk-1.1 -lcsound -lcsnd -lCsoundVST frontends/CsoundVST/csoundvst_main.o: In function `main': /home/atte/software/csound/09_09_23/frontends/CsoundVST/csoundvst_main.cpp:40: undefined reference to `RunCsoundVST' collect2: ld returned 1 exit status scons: *** [CsoundVSTShell] Error 1 scons: building terminated because of errors. |
Date | 2009-09-26 21:02 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Atte Andre Jensen wrote: Bump, still stuck, any ideas? > Ok, tried that, didn't solve the problem eigther. > > g++ -o CsoundVSTShell -Wl,-rpath-link,. -Wl,-Bdynamic > frontends/CsoundVST/csoundvst_main.o -L. -L. -L/usr/local/lib -L. -L. > -L/usr/lib/fltk-1.1 -lcsound -lcsnd -lCsoundVST > frontends/CsoundVST/csoundvst_main.o: In function `main': > /home/atte/software/csound/09_09_23/frontends/CsoundVST/csoundvst_main.cpp:40: > undefined reference to `RunCsoundVST' > collect2: ld returned 1 exit status > scons: *** [CsoundVSTShell] Error 1 > scons: building terminated because of errors. > |
Date | 2009-09-26 21:11 |
From | victor |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Try > grep RunCsoundVST *.cpp in the frontends/CsoundVST directory to locate where that symbol is supposed to come from. Then make sure the file gets compiled in with the other CsoundVST sources Victor ----- Original Message ----- From: "Atte Andre Jensen" |
Date | 2009-09-26 21:44 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
I'm looking at this now on Linux. I can see that it has been longer than I thought since the last time I got it working on Linux. I must have changed the Windows #ifdef without verifying that the other case still builds and runs on Linux. I have fixed up the csoundvst_main.cpp file and I am rebuilding everything now. I will let you know when it builds and has been checked in. Regards, Mike On 9/26/09, Atte Andre Jensen |
Date | 2009-09-26 22:19 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
OK, it builds. I can't promise libCsoundVST.so (i.e. CsoundVST proper) will function as a proper VST plugin on Linux, but I think it will. I can say that it builds. I can also say that the CsoundVSTShell standalone GUI program builds, runs, loads libCsoundVST.so, and uses libCsoundVST.so to render pieces. It's booked in, so update from CVS and try again. Regards, Mike On 9/26/09, Michael Gogins |
Date | 2009-09-27 07:09 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: downloading csoundvst |
Michael Gogins wrote: > OK, it builds. > It's booked in, so update from CVS and try again. Unfortunately it doesn't build here not here. Firstly I still have to change csound32 to csound in SConstruct. Secondly (after having done that) I get the exact same as before: [atte@vestbjerg 09_09_27]$ scons buildInterfaces=1 dynamicCsoundLibrary=1 buildPythonOpcodes=1 useOSC=1 buildUtilities=1 buildCsoundVST=1 |
Date | 2009-09-27 12:34 |
From | Dave Phillips |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Michael Gogins wrote: > OK, it builds. I can't promise libCsoundVST.so (i.e. CsoundVST proper) > will function as a proper VST plugin on Linux, but I think it will. > I'll try building it here and will test it with known working hosts (JOST, QTractor). Please remind me where to acquire the sources. Btw, is floats vs. doubles an issue with this plugin ? Best, dp Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-09-27 12:58 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Dave Phillips wrote: > I'll try building it here and will test it with known working hosts > (JOST, QTractor). Please remind me where to acquire the sources. cvs -z3 -d:pserver:anonymous@csound.cvs.sourceforge.net:/cvsroot/csound co -P csound5 |
Date | 2009-09-27 14:03 |
From | Dave Phillips |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: downloading csoundvst |
Atte Andre Jensen wrote: > Dave Phillips wrote: > >> I'll try building it here and will test it with known working hosts >> (JOST, QTractor). Please remind me where to acquire the sources. > > cvs -z3 > -d:pserver:anonymous@csound.cvs.sourceforge.net:/cvsroot/csound co -P > csound5 > Ah, okay, sorry, I thought it was in a different repo. Thanks, Atte, I'll get right on it. :) Best, dp Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-09-27 16:59 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: downloading csoundvst |
This file should now read in its entirety as shown below. The only significant change is to remove the trailing underscore on the function name for Linux, where dynamic loading of CsoundVST is handled more elegantly by the operating system. Hope this helps, Mike #include |
Date | 2009-09-29 07:44 |
From | Atte Andre Jensen |
Subject | [Csnd] Re: Re: Re: downloading csoundvst |
Michael Gogins wrote: > This file should now read in its entirety as shown below. The only > significant change is to remove the trailing underscore on the > function name for Linux, where dynamic loading of CsoundVST is handled > more elegantly by the operating system. > > Hope this helps, It doesn't. There are two possibilities either I a) do something different than you in the build process or I b) have something in my build environment that is different from yours. In an attempt to "make you do what I do" I wrote a small script that follows the steps I take, and end with the "undefined reference to `RunCsoundVST'" error. I placed it here: atte.dk/build_vst.sh Could you please run it and see what happens? NB: You only need to change the vstsdk_path in the first line to point to your vstsdk NB2: I saved the csoundvst_main.cpp file you posted and the script downloads it, just to make sure we're talking about the same thing. Looking forward to hearing from you! -- Atte http://atte.dk http://modlys.dk http://virb.com/atte |