You are not logged in.

#1 2008-04-07 03:46:47

flex_strongo
Member
Registered: 2003-12-02
Posts: 55

Dssi-vst

Has anyone been able to compile the latest dssi-vst 0.6?  I keep getting this error when compiling:

g++ -Ivestige -Wall remotepluginclient.cpp -c
remotepluginclient.cpp: In constructor 'RemotePluginClient::RemotePluginClient()':
remotepluginclient.cpp:40: error: 'mkstemp' was not declared in this scope
remotepluginclient.cpp:44: error: 'strdup' was not declared in this scope
remotepluginclient.cpp:54: error: 'mkstemp' was not declared in this scope
remotepluginclient.cpp:68: error: 'mkstemp' was not declared in this scope
remotepluginclient.cpp:82: error: 'mkstemp' was not declared in this scope
remotepluginclient.cpp: In member function 'void RemotePluginClient::cleanup()':
remotepluginclient.cpp:188: error: 'free' was not declared in this scope
remotepluginclient.cpp:193: error: 'free' was not declared in this scope
remotepluginclient.cpp:198: error: 'free' was not declared in this scope
remotepluginclient.cpp:203: error: 'free' was not declared in this scope
remotepluginclient.cpp: In member function 'std::string RemotePluginClient::getFileIdentifiers()':
remotepluginclient.cpp:212: error: 'strlen' was not declared in this scope
remotepluginclient.cpp: In member function 'void RemotePluginClient::sizeShm()':
remotepluginclient.cpp:238: error: 'memset' was not declared in this scope
remotepluginclient.cpp: In member function 'void RemotePluginClient::reset()':
remotepluginclient.cpp:288: error: 'memset' was not declared in this scope
remotepluginclient.cpp: In member function 'void RemotePluginClient::sendMIDIData(unsigned char*, int*, int)':
remotepluginclient.cpp:405: error: 'alloca' was not declared in this scope
remotepluginclient.cpp:406: error: 'memset' was not declared in this scope
remotepluginclient.cpp: In member function 'void RemotePluginClient::process(float**, float**)':
remotepluginclient.cpp:444: error: 'memcpy' was not declared in this scope
remotepluginclient.cpp:448: error: 'memcpy' was not declared in this scope
make: *** [remotepluginclient.o] Error 1

I'd love some help on this if someone can see what's going on.  Thanks

Offline

#2 2008-04-07 18:47:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Dssi-vst

This looks like it's from the GCC 4.3.0 upgrade. It was discussed on the mailing list here and shows how to handle it:

http://archlinux.org/pipermail/arch-dev … 05175.html

Offline

#3 2008-04-08 01:30:28

flex_strongo
Member
Registered: 2003-12-02
Posts: 55

Re: Dssi-vst

Thanks Skottish, that worked like a charm.  A bit tedious editing the files, but still worked!

Offline

#4 2008-05-05 02:01:45

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

flex_strongo, what exactly did you do to fix dssi-vst. I followed that link and don't have a clue on what it talks about. I could be a little stupid at times. Can you help me a bit as I'm trying to build dssi-vst 0.6 since my system died when the ext4 was installed.

Offline

#5 2008-05-05 15:08:04

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Dssi-vst

strcpy: man 3 strcpy, look for include, which will be <string.h> in this
case. As we're using C++ now and want a C include, this will become
#include <cstring> without the .h and a c prepended.

So, this means, you look out for the error type, man it, then inject the include into the file that failed.

I recently wrote a script for a similar case with jost. It's got a huge amount of files, and I ended up making the script a recursive one trying to inject cstring, cstdlib, and algorithm and derived combinations, taking into consideration ardour had only those three plus cerrno so I used that as a benchmark. In the end, it worked lol

Anyway, flex_strongo, it'd be of help if you could post which files needed which include.


I need real, proper pen and paper for this.

Offline

#6 2008-05-05 15:15:18

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

wow, will this be all fixed down the road? Tons of apps in AUR not building including the proaudio kernels. Even having issues with fluidsynth which is in community repo.
Thanx

Offline

#7 2008-05-05 15:31:59

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

Ok so here is one error:
remotepluginclient.cpp:40: error: 'mkstemp' was not declared in this scope
man 3 mkstemp

MKSTEMP(3)                 Linux Programmer's Manual                MKSTEMP(3)

NAME
       mkstemp - create a unique temporary file

SYNOPSIS
       #include <stdlib.h>

now, do I change /usr/include/stdlib.h to
/usr/include/cstdlib??

Offline

#8 2008-05-06 16:58:20

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Dssi-vst

No, that would be adding #include "stdlib.h" or #include <cstdlib> to remotepluginclient.cpp. If multiple files need the same you can use sed:

sed -i "-e/#/{;s/#/#include <cstdlib>\n#/;:a" "-en;ba" "-e}" *files*

That would add it to the top of those files.

Anyway, see: http://aur.archlinux.org/packages.php?ID=10941


I need real, proper pen and paper for this.

Offline

#9 2008-05-06 20:13:31

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

Thanx a million... getting at it now...

Offline

#10 2008-05-08 00:40:15

flex_strongo
Member
Registered: 2003-12-02
Posts: 55

Re: Dssi-vst

Just noticed this thread was reopened.  Not sure exactly what files I had to edit anymore, but I do have all the edited files on my comp still if anyone wants.  Would just somewhere to host.

Offline

#11 2008-05-08 03:05:36

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

thanx flex_strongo but  schivmeister fixed things.

Offline

#12 2008-05-23 01:42:42

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

dssi-vst is up to 0.7 now...
Changes:
* dssi-vst now exposes a LADSPA descriptor as well as a DSSI
   descriptor, and the install target now installs dssi-vst to the
   system LADSPA directory as well as the DSSI one.  This change
   permits you to use dssi-vst to load VST effects in LADSPA hosts,
   as well as to load VST effects and instruments in DSSI hosts as
   before.  When used in a LADSPA host, the VST GUI will not be
   shown unless the host supports DSSI-style GUIs for LADSPA
   plugins as well -- which most do not.

* The vsthost program uses jack_client_open instead of
   jack_client_new, for more predictable client names.

* dssi-vst now compiles with gcc 4.3 and is slightly less likely
   than previously to crash on startup.


I'm having a tough time again with gcc I think.

wineg++ -Ivestige -Wall -fPIC dssi-vst-server.cpp -o dssi-vst-server -lpthread -L. -lremoteplugin -lpthread
dssi-vst-server.cpp: In member function 'virtual void RemoteVSTServer::hideGUI()':
dssi-vst-server.cpp:566: warning: unused variable 'fd'
dssi-vst-server.cpp: In function 'int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':
dssi-vst-server.cpp:1138: error: 'getenv' was not declared in this scope
dssi-vst-server.cpp:1166: error: 'exit' was not declared in this scope
winegcc: g++ failed
make: *** [dssi-vst-server.exe.so] Error 2
==> ERROR: Build Failed.
    Aborting...


nevermind guys, I fixed it. All that was needed was to change from 0.6 to 0.7 in the gcc patch.

Last edited by funkmuscle (2008-05-23 11:53:20)

Offline

#13 2008-06-01 11:03:26

centipede
Member
Registered: 2007-12-28
Posts: 3

Re: Dssi-vst

funkmuscle wrote:

nevermind guys, I fixed it. All that was needed was to change from 0.6 to 0.7 in the gcc patch.

Could you be a little more specific?
I am trying to compile dssi-vst-0.7 myself, and the (modified) packagebuild runs fine until the error you mentioned. I can't find anything that looks like a patch relating to this error? This is a problem in the winegcc world, not gcc, right?

Regards,
Centipede

Offline

#14 2008-06-01 14:21:19

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

here is the gcc43.patch

diff -aur dssi-vst-0.7.orig/dssi-vst-scanner.cpp dssi-vst-0.7/dssi-vst-scanner.cpp
--- dssi-vst-0.7.orig/dssi-vst-scanner.cpp    2008-05-06 22:05:11.700598784 +0800
+++ dssi-vst-0.7/dssi-vst-scanner.cpp    2008-05-06 22:07:56.017249101 +0800
@@ -5,6 +5,7 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
diff -aur dssi-vst-0.7.orig/dssi-vst-server.cpp dssi-vst-0.7/dssi-vst-server.cpp
--- dssi-vst-0.7.orig/dssi-vst-server.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.7/dssi-vst-server.cpp    2008-05-06 22:07:38.360848558 +0800
@@ -5,6 +5,7 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
diff -aur dssi-vst-0.7.orig/dssi-vst.cpp dssi-vst-0.7/dssi-vst.cpp
--- dssi-vst-0.7.orig/dssi-vst.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.7/dssi-vst.cpp    2008-05-06 22:11:21.013922339 +0800
@@ -6,6 +6,8 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstring>
+#include <cstdlib>
#include "remotevstclient.h"

#include <ladspa.h>
diff -aur dssi-vst-0.7.orig/dssi-vst_gui.cpp dssi-vst-0.7/dssi-vst_gui.cpp
--- dssi-vst-0.7.orig/dssi-vst_gui.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.7/dssi-vst_gui.cpp    2008-05-06 22:11:53.751415265 +0800
@@ -5,6 +5,7 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
diff -aur dssi-vst-0.7.orig/paths.cpp dssi-vst-0.7/paths.cpp
--- dssi-vst-0.6.orig/paths.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.6/paths.cpp    2008-05-06 22:07:15.271442940 +0800
@@ -5,6 +5,7 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstdlib>
#include "paths.h"

#include <iostream>
diff -aur dssi-vst-0.7.orig/remotepluginclient.cpp dssi-vst-0.7/remotepluginclient.cpp
--- dssi-vst-0.7.orig/remotepluginclient.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.7/remotepluginclient.cpp    2008-05-06 22:05:48.800606852 +0800
@@ -5,6 +5,8 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstring>
+#include <cstdlib>
#include "remotepluginclient.h"

#include <sys/mman.h>
diff -aur dssi-vst-0.7.orig/remotepluginserver.cpp dssi-vst-0.7/remotepluginserver.cpp
--- dssi-vst-0.7.orig/remotepluginserver.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.7/remotepluginserver.cpp    2008-05-06 22:06:13.050917251 +0800
@@ -5,6 +5,8 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstring>
+#include <cstdlib>
#include "remotepluginserver.h"

#include <sys/mman.h>
diff -aur dssi-vst-0.7.orig/remotevstclient.cpp dssi-vst-0.7/remotevstclient.cpp
--- dssi-vst-0.7.orig/remotevstclient.cpp    2008-05-06 22:05:11.703944160 +0800
+++ dssi-vst-0.6/remotevstclient.cpp    2008-05-06 22:08:32.300590081 +0800
@@ -5,6 +5,7 @@
   Copyright 2004-2007 Chris Cannam
*/

+#include <cstdlib>
#include "remotevstclient.h"

#include <sys/un.h>



here is the PKGBUILD

# Maintainer: ProAudio Group <proaudio-devel@googlegroups.com>
# Contributor: Ray Rashif <schivmeister@gmail.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>

pkgname=dssi-vst
pkgver=0.7
pkgrel=1
pkgdesc="DSSI wrapper for Windows VST plug-ins"
arch=(i686 x86_64)
url="http://dssi.sourceforge.net/"
license=('GPL2')
depends=('dssi' 'gtk2' 'wine')
source=(http://downloads.sourceforge.net/dssi/${pkgname}-${pkgver}.tar.gz
    gcc43.patch)

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  sed_die() {
    echo
    echo "***sed failed***"
    return 1
  }
 
  # fix building with gcc 4.3
  patch -Np1 -i ../gcc43.patch

  sed -i 's/\(^LDFLAGS\)\(.*\)/\1 = -lpthread/' \
    Makefile || sed_die

  # i know this is a bit redundant, but in case it works
  if [ "$CARCH" = "x86_64" ]; then
    sed -i 's@install:\tall@install:@g' \
      Makefile || sed_die
    sed -i 's/\(CXXFLAGS\)\(\ *\)\([^I]*\)\(=\)/\1 = -fPIC/' \
      Makefile || sed_die

    make dssi-vst.so dssi-vst_gui vsthost || return 1
    mkdir x86_64
    mv dssi-vst.so dssi-vst_gui vsthost x86_64/

    # maybe some more 64-specific stuff here

    make clean
    make dssi-vst-server.exe.so \
      dssi-vst-scanner.exe.so || return 1
    mv x86_64/* .
  else
    make || return 1
  fi

  make BINDIR=${pkgdir}/usr/bin \
    DSSIDIR=${pkgdir}/usr/lib/dssi install || return 1

  # No more VST SDK..YAY!!!
}
md5sums=()


thank the boyz at proaudio for that.... http://code.google.com/p/proaudio/
it's for archlinux

Last edited by funkmuscle (2008-06-01 15:55:05)

Offline

#15 2008-06-01 15:46:27

centipede
Member
Registered: 2007-12-28
Posts: 3

Re: Dssi-vst

Thank you very much.

I couldn't figure out how to patch with the command so I hand-applied the changes. I didn't realize that the problem with include files also related to winegcc.
Besides that, I had to add an additional variable: LADSPADIR=...
make BINDIR=${pkgdir}/usr/bin DSSIDIR=${pkgdir}/usr/lib/dssi LADSPADIR=${pkgdir}/usr/lib/ladspa install || return 1
.. otherwise it wanted to install into /usr/local/lib/ladspa. I was using a modified PKGBUILD from AUR instead of yours, since I was almost home with that one.

Regards

Last edited by centipede (2008-06-01 15:47:20)

Offline

#16 2008-06-02 08:36:15

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Dssi-vst

Oh wow I didn't know there was an update. Thanks guys. I wonder why cannam hasn't committed gcc 4.3 fixes before releasing 0.7. Anyway see http://linuxmusicians.com/viewtopic.php?t=192&start=0 for another patch of sort if you're interested. I don't know whether this contributed vsthost "patch" will make a difference now since 0.7 has been claimed to run more than 1 instance fine.

Btw wrt the proaudio group do let us/me know if you can help keep things up-to-date.

Last edited by schivmeister (2008-06-02 08:46:02)


I need real, proper pen and paper for this.

Offline

#17 2008-06-02 11:04:20

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

schivmeister, sorry, that's my job to let you know that. markc added me to the proaudio membership.

I've been trying to build livemix but it fails:
http://www.codingteam.net/livemix-down_en.html

cd ladspafx/ && make -f Makefile
make[1]: Entering directory `/home/yer/apps/livemix-0.49rc2/ladspafx'
/usr/bin/uic ../ladspafx/LadspaFXSelector_UI.ui -o objs/ui_LadspaFXSelector_UI.h
g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -g -O3 -fPIC -D_REENTRANT -Wall -W -DJACK_SUPPORT -DLADSPA_SUPPORT -DLRDF_SUPPORT -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/QtSvg -I/usr/include -I. -Iobjs -I/usr/include/lash-1.0 -Iobjs -I../widget -I../backend -Iobjs -Iobjs -o objs/LadspaFXProperties.o LadspaFXProperties.cpp
LadspaFXProperties.cpp: In member function 'void LiveMix::LadspaFXProperties::setFaderHeight(int)':
LadspaFXProperties.cpp:435: error: must #include <typeinfo> before using typeid
LadspaFXProperties.cpp:435: error: must #include <typeinfo> before using typeid
LadspaFXProperties.cpp: In member function 'void LiveMix::LadspaFXProperties::reset()':
LadspaFXProperties.cpp:471: error: must #include <typeinfo> before using typeid
LadspaFXProperties.cpp:471: error: must #include <typeinfo> before using typeid
make[1]: *** [objs/LadspaFXProperties.o] Error 1
make[1]: Leaving directory `/home/yer/apps/livemix-0.49rc2/ladspafx'
make: *** [sub-ladspafx-make_default] Error 2

Last edited by funkmuscle (2008-06-02 12:26:53)

Offline

#18 2008-06-07 04:33:31

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: Dssi-vst

looks like it worked... please check to see if updated dssi-vst was added successfully. My first upload.

Offline

Board footer

Powered by FluxBB