More Carla Questions

All your LV2 and LADSPA goodness and more.

Moderators: khz, MattKingUSA

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

More Carla Questions

Postby jerdboyd » Wed Mar 07, 2018 9:14 pm

Hello all, first time posting here.

Im a fedora linux 64bit user using Mixbus 32c for my DAW.

I've been messing around with carla the last couple of weeks and have had moderate success. when compiling the program from source with all the proper dependencies installed i get functioning standalone, lv2 and vst plugins. the standalone unit does not recognize windows vsts but can use linux vsts (overtoneDSP for example). the LV2 plugin works great in mixbus with the same features available.

i also downloaded a linux 64bit binary of carla from the kxstudio site here http://kxstudio.linuxaudio.org/Applications:Carla. the standalone binary gives me access to windows vsts, so far only 32 bit dlls will load but thats not a problem. the LV2 plugin that came with the binary does not function well in Mixbus, presumably because it was compiled for kxstudio.

my question is this; since i've installed all dependencies why is my carla install not showing the vst bridges in its settings panel? also, if i can get that to work should windows vsts also be accessible from the lv2 plugin or are they only available from the stand-alone.

thanks for your time.

jeremy boyd

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: More Carla Questions

Postby falkTX » Wed Mar 07, 2018 11:24 pm

LV2 version does not work well, likely due to Qt4/Qt5 issues, maybe it needs a GCC5 build like ardour.

Regarding missing windows vsts, you need a mingw setup for that.
See the AUR package as an example of how to do it.
https://aur.archlinux.org/packages/carl ... win32-git/

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Thu Mar 08, 2018 12:38 am

firstoff, thank you so much for this software. i cant imagine the headache of trying to make something like this work.

so, i've installed the mingw dependencies that were on that list and the carla plugin search dialogue still doesn't show that i have the vst bridge installed. do i need to do something to set up mingw? i tried re-making carla but nothing changed and my make features still shows that i have the bridges configured.

thanks again

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: More Carla Questions

Postby falkTX » Thu Mar 08, 2018 1:28 am

after you setup the mingw environment, you do "make win32".
this will build the windows code using mingw.

after that is finished, revert to the normal env and do "make wine32".
this will build the wine bridge that communications over the win32 binary.

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Thu Mar 08, 2018 2:29 am

i was able to get make win32 and make win64 to finish after installing the needed devel files but now im stuck on make wine32. im getting this error and have not been able to find out how to proceed

make -C source/jackbridge wine32
make[1]: Entering directory '/home/jeremy/bin/Carla/source/jackbridge'
Compiling JackBridge1.cpp (wine32)
JackBridge1.cpp:22:11: fatal error: windows.h: No such file or directory
# include <windows.h>
^~~~~~~~~~~
compilation terminated.
winegcc: g++ failed
make[1]: *** [Makefile:184: ../../build/jackbridge/Release/JackBridge1.cpp.wine32.o] Error 2
make[1]: Leaving directory '/home/jeremy/bin/Carla/source/jackbridge'
make: *** [Makefile:208: wine32] Error 2

edit: i ran "dnf provides */windows.h" and installed all the packages that looked pertinent but still have no luck.

edit: i know that windows.h is in the wine headers directory so i think i just need to point to it somehow. im not familiar enough with make to know how to do that so any help would be appreciated.

thx

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: More Carla Questions

Postby falkTX » Thu Mar 08, 2018 8:28 am

Yeah, the wine32 step needs wine devel files.
Where are your wine headers located? I can just add the include path there.

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Thu Mar 08, 2018 12:36 pm

wine devel files are in /usr/include/wine/wine/windows/

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Mon Mar 12, 2018 8:50 pm

Hello Again.

just an update on my progress.

i hit a brick wall with make wine32 so i deleted my source and downloaded the source from the kxstudio site rather than the git repo. this source didn't seem to have any trouble finding my wine devel files so make win32 win64 and wine32 went well. i also made posix32 and 64 with no issues but im not having any success with the make wine64. here's the error i get.

make -C source/jackbridge wine64
make[1]: Entering directory '/home/jeremy/bin/Carla/source/jackbridge'
Linking jackbridge-wine64.dll.so
ld: Relocatable linking with relocations from format elf32-i386 (/usr/lib/wine/libwinecrt0.a(dll_entry.o)) to format elf64-x86-64 (jackbridge-wine64.ILqCYt.o) is not supported
winebuild: ld failed with status 1
winegcc: winebuild failed
make[1]: *** [Makefile:133: ../../build/modules/Release/jackbridge-wine64.dll.so] Error 2
make[1]: Leaving directory '/home/jeremy/bin/Carla/source/jackbridge'
make: *** [Makefile:212: wine64] Error 2

i have zlib-devel package installed

i installed the program despite wine64 not compiling. i figured i would still be able to load 32 bit vsts in the meantime but i get a plugin-bridge timeout and this log error

wine: Bad EXE format for Z:\usr\local\lib\carla\carla-bridge-win32.exe.

just to confirm, i am running on 64 bit fedora 26.

any help is appreciated.

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: More Carla Questions

Postby falkTX » Mon Mar 12, 2018 9:16 pm

you don't seem to have a wine 64bit version.

it's hard to know what's going on here without the full details.
do a new build and post every single command that you run in order to build it.
maybe you're missing the mingw setup still?

I will add a check in latest git for win32/64 builds for mingw compiler, and fail if that is not the case.

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Tue Mar 13, 2018 12:59 am

im not sure what has to be done to setup mingw. i added a couple more mingw packages thinking that maybe i didnt have the right ones installed. here is my step by step process.

from the carla directory
make ( no errors )
make features
--------------------------------
---> Main features
Front-End: YES (Using Qt5)
LV2 plugin: YES
VST plugin: YES
Link support: YES
OSC support: YES
Binary detect: YES

---> Engine drivers
JACK: YES
ALSA: YES
PulseAudio: YES
CoreAudio: NO [MacOS only]
ASIO: NO [Windows only]
DirectSound: NO [Windows only]
WASAPI: NO [Windows only]

---> Plugin formats:
Internal: YES
LADSPA: YES
DSSI: YES
LV2: YES
VST: YES (with UI)

---> LV2 UI toolkit support:
External: YES (direct)
Gtk2: YES (bridge)
Gtk3: YES (bridge)
Qt4: YES (bridge)
Qt5: YES (bridge)
X11: YES (direct+bridge)
Cocoa: NO [MacOS only]
Windows: NO [Windows only]

---> File formats:
GIG: NO [LinuxSampler missing or too old]
SF2: YES
SFZ: NO [LinuxSampler missing or too old]

---> Internal plugins:
Basic Plugins: YES
Carla-Patchbay: YES
Carla-Rack: YES
External Plugins: NO
-------------------------------------------
make win32
make wine32
make posix32
make posix64
(all with no errors)
su
make install

after this i get the same error as before. the same plugin works fine with the binary supplied from the kxstudio site.

here are all the mingw packages that i have installed

mingw32-winpthreads-5.0.2-1.fc26.noarch
mingw-filesystem-base-101-1.fc25.noarch
mingw32-binutils-2.27-2.fc26.x86_64
mingw32-wine-gecko-2.47-2.fc26.noarch
mingw32-gcc-c++-7.2.0-1.fc26.x86_64
mingw64-pkg-config-0.28-7.fc26.x86_64
mingw32-gcc-gfortran-7.2.0-1.fc26.x86_64
mingw-binutils-generic-2.27-2.fc26.x86_64
mingw32-cpp-7.2.0-1.fc26.x86_64
mingw64-filesystem-101-1.fc25.noarch
mingw64-gcc-7.2.0-1.fc26.x86_64
mingw32-gcc-7.2.0-1.fc26.x86_64
mingw32-gcc-objc-7.2.0-1.fc26.x86_64
mingw64-winpthreads-5.0.2-1.fc26.noarch
mingw32-pkg-config-0.28-7.fc26.x86_64
mingw64-wine-gecko-2.47-2.fc26.noarch
mingw64-binutils-2.27-2.fc26.x86_64
mingw32-headers-5.0.2-1.fc26.noarch
mingw64-crt-5.0.2-1.fc26.noarch
mingw32-filesystem-101-1.fc25.noarch
mingw32-gcc-objc++-7.2.0-1.fc26.x86_64
mingw64-cpp-7.2.0-1.fc26.x86_64
mingw64-headers-5.0.2-1.fc26.noarch
mingw32-crt-5.0.2-1.fc26.noarch

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Tue Mar 13, 2018 1:19 am

i solved the issue with make wine64. i didnt have the 64 bit wine devel package installed. as far as mingw i followed the instructions on this page and went through the whole process again. still no luck
http://fedoraproject.org/wiki/MinGW/Configure_wine

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: More Carla Questions

Postby falkTX » Tue Mar 13, 2018 8:34 am

I forgot to push my changes yesterday that verify if the compiler matches the wanted binary targets.
Will do it later today.

Anyway, I think it's just a matter of you setting up mingw GCC when building Carla.
So to recap, you need:
1. fresh clone
2. make (regular build)
3. make wine32 and make wine64 (no tweaks on the build environment till this point)

now we need to make the windows binaries, for which we need mingw to be setup.
let's try the 32bit first, should be something like this:

Code: Select all

export PATH=/usr/i686-w64-mingw32/bin:${PATH}
export AR=i686-w64-mingw32-ar
export CC=i686-w64-mingw32-gcc
export CXX=i686-w64-mingw32-g++
export PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig
unset CFLAGS
unset CXXFLAGS
export LDFLAGS="-static"
make win32 HAVE_LIBLO=false

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Wed Mar 14, 2018 6:47 pm

make win32 HAVE_LIBLO=false
gave me an error but after installing mingw32 and 64 pthreads-static it finished making.

after install carla discovers and loads 32 bit dlls in both the plugin and stand alone.
can i repeat the final command for make win64 by exporting a different set of paths? this isnt a big deal for me since my dlls are all 32 bit.

thank you so much for your help, i would like to make this available for other fedora users but im not sure how.
on another note. do you have a "buy me a coffee" button anywhere for me to make a donation for your hard work?

edit: FYI the export function worked as well

User avatar
falkTX
Established Member
Posts: 6646
Joined: Sat Jan 09, 2010 3:04 pm

Re: More Carla Questions

Postby falkTX » Wed Mar 14, 2018 7:25 pm

great to know it worked! :)

jerdboyd wrote:can i repeat the final command for make win64 by exporting a different set of paths?

you need to adapt them to mingw64.
something like this:

Code: Select all

export PATH=/usr/x86_64-w64-mingw32/bin:$PATH
export AR=x86_64-w64-mingw32-ar
export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++
export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
unset CFLAGS
unset CXXFLAGS
export LDFLAGS="-static"


jerdboyd wrote:thank you so much for your help, i would like to make this available for other fedora users but im not sure how.

never used fedora, so I dont know either :(

jerdboyd wrote:on another note. do you have a "buy me a coffee" button anywhere for me to make a donation for your hard work?

yes, the kxstudio donations page.
http://kxstudio.linuxaudio.org/Donations
Thanks in advance! :)

jerdboyd
Established Member
Posts: 12
Joined: Wed Mar 07, 2018 7:31 pm

Re: More Carla Questions

Postby jerdboyd » Thu May 24, 2018 1:52 am

Hello again. i've recently upgraded my system to the latest fedora and i'm having issues with re-installing carla.

i've got all the wine-devel packages installed but im still getting this error when running make wine32

JackBridge1.cpp:22:11: fatal error: windows.h: No such file or directory
# include <windows.h>

any thoughts?


Return to “Plugins, Effects and Instruments”

Who is online

Users browsing this forum: No registered users and 1 guest