ok i did the casts, build is ok but i get a segfault when starting the audio host demo (nog ui shows)
a few last line of strace
close(5) = 0
ioctl(6, AGPIOC_ACQUIRE or APM_IOC_STANDBY, 0xbfc3f7a4) = 0
fcntl64(6, F_GETFL) = 0x2802 (flags O_RDWR|O_NONBLOCK|O_ASYNC)
ioctl(6, AGPIOC_INFO, 0xbfc3f7a0) = 0
clock_gettime(CLOCK_MONOTONIC, {350214, 477306808}) = 0
ioctl(6, AGPIOC_SETUP, 0xbfc3f798) = 0
mmap2(NULL, 4096, PROT_READ, MAP_SHARED, 6, 0x80000) = 0xb7f20000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0x81000) = 0xb7f1f000
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f6fc) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f6fc) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f6fc) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f6fc) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f6fc) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f6fc) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
close(6) = 0
munmap(0xb7f20000, 4096) = 0
munmap(0xb7f1f000, 4096) = 0
ioctl(4, 0xc1205531, 0xbfc3fc70) = 0
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9035, ...}) = 0
open("/dev/snd/controlC0", O_RDONLY) = 5
close(5) = 0
open("/dev/snd/controlC0", O_RDWR) = 5
ioctl(5, USBDEVFS_CONTROL, 0xbfc3f8f4) = 0
ioctl(5, UI_DEV_CREATE, 0xbfc3f960) = 0
close(5) = 0
open("/dev/snd/controlC0", O_RDWR) = 5
ioctl(5, USBDEVFS_CONTROL, 0xbfc3f924) = 0
ioctl(5, 0x40045532, 0xbfc3f944) = 0
open("/dev/snd/pcmC0D0c", O_RDWR|O_NONBLOCK|O_ASYNC) = 6
close(5) = 0
ioctl(6, AGPIOC_ACQUIRE or APM_IOC_STANDBY, 0xbfc3f7a4) = 0
fcntl64(6, F_GETFL) = 0x2802 (flags O_RDWR|O_NONBLOCK|O_ASYNC)
ioctl(6, AGPIOC_INFO, 0xbfc3f7a0) = 0
clock_gettime(CLOCK_MONOTONIC, {350214, 482459565}) = 0
ioctl(6, AGPIOC_SETUP, 0xbfc3f798) = 0
mmap2(NULL, 4096, PROT_READ, MAP_SHARED, 6, 0x80000) = 0xb7f20000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0x81000) = 0xb7f1f000
ioctl(6, 0xc25c4110, 0xbfc3f9b0) = 0
close(6) = 0
munmap(0xb7f20000, 4096) = 0
munmap(0xb7f1f000, 4096) = 0
close(4) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 26845 detached
i also tried builidng the plugin itself, and i got a build error
../../../wrapper/VST/juce_VST_Wrapper.cpp:361:29: warning: multi-character character constant
In file included from /home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.h:16,
from /home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:17,
from ../../../wrapper/VST/juce_VST_Wrapper.cpp:68:
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:125: error: expected `)' before ‘*’ token
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:126: error: expected `)' before ‘*’ token
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:127: error: expected `)' before ‘*’ token
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:128: error: expected `)' before ‘*’ token
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:129: error: expected `)' before ‘*’ token
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:130: error: expected `)' before ‘*’ token
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:149: error: ‘AEffectDispatcherProc’ does not name a type
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:152: error: ‘AEffectProcessProc’ does not name a type
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:155: error: ‘AEffectSetParameterProc’ does not name a type
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:158: error: ‘AEffectGetParameterProc’ does not name a type
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:183: error: ‘AEffectProcessProc’ does not name a type
/home/atom/devel/vstsdk2.4/pluginterfaces/vst2.x/aeffect.h:187: error: ‘AEffectProcessDoubleProc’ does not name a type
In file included from /home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:17,
from ../../../wrapper/VST/juce_VST_Wrapper.cpp:68:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.h:27: error: expected `)' before ‘audioMaster’
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.h:155: error: ‘audioMasterCallback’ does not name a type
In file included from ../../../wrapper/VST/juce_VST_Wrapper.cpp:68:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:27: error: expected `)' before ‘audioMaster’
In file included from ../../../wrapper/VST/juce_VST_Wrapper.cpp:70:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:57: error: expected `)' before ‘audioMaster’
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual void AudioEffectX::resume()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:307: warning: deprecated conversion from string constant to ‘char*’
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual void AudioEffectX::__wantEventsDeprecated(VstInt32)’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:314: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstTimeInfo* AudioEffectX::getTimeInfo(VstInt32)’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:336: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstInt32 AudioEffectX::__tempoAtDeprecated(VstInt32)’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:347: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘bool AudioEffectX::sendVstEventsToHost(VstEvents*)’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:361: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstInt32 AudioEffectX::__getNumAutomatableParametersDeprec
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:419: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstInt32 AudioEffectX::__getParameterQuantizationDeprecate
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:427: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual bool AudioEffectX::ioChanged()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:448: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual bool AudioEffectX::__needIdleDeprecated()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:456: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual bool AudioEffectX::sizeWindow(VstInt32, VstInt32)’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:469: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual double AudioEffectX::updateSampleRate()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:480: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstInt32 AudioEffectX::updateBlockSize()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:497: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstInt32 AudioEffectX::getInputLatency()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:513: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual VstInt32 AudioEffectX::getOutputLatency()’:
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:529: error: ‘audioMaster’ was not declared in this scope
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual AEffect* AudioEffectX::__getPreviousPlugDeprecated(VstInt3
/home/atom/devel/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:625: error: ‘audioMaster’ was not declared in this scope