falkTX / kuriborosu

Audio and MIDI file render through Carla
GNU Affero General Public License v3.0
22 stars 0 forks source link

compile 101 #3

Closed coderofsalvation closed 3 years ago

coderofsalvation commented 3 years ago

Very interesting approach! Thx!

My attempt at compiling this:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    GalliumOS 3.1
Release:    18.04
Codename:   bionic
$ uname -a 
Linux  4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ git clone https://github.com/falkTX/kuriborosu
$ cd kuriborosu/src
$ git clone https://github.com/falkTX/Carla
$ make
src/kuriborosu.c: cannot find "CarlaNativePlugin.h"
$ vi src/kuriborosu.c
--- #include "CarlaNativaPlugin.h"
+++ #include "Carla/source/includes/CarlaNativePlugin.h"
$ vi src/Makefile
--- BASE_FLAGS += $(shell pkg-config --cflags carla-host-plugin sndfile) -I./Carla/source/includes
$ make
E: cannot find config.h
$ vi src/Makefile
--- BASE_FLAGS += $(shell pkg-config --cflags carla-host-plugin sndfile) -I./Carla/source/includes -I./Carla/source/backend
+++ BASE_FLAGS += $(shell pkg-config --cflags carla-host-plugin sndfile) -I./Carla/source/includes -I./Carla/source/backend -DREAL_BUILD
$ make
Package carla-host-plugin was not found in the pkg-config search path.
Perhaps you should add the directory containing `carla-host-plugin.pc'
to the PKG_CONFIG_PATH environment variable
No package 'carla-host-plugin' found
Linking kuriborosu
../build/kuriborosu.c.o: In function `main':
kuriborosu.c:(.text.startup.main+0xbf): undefined reference to `carla_get_library_folder'
kuriborosu.c:(.text.startup.main+0x1ce): undefined reference to `carla_get_native_rack_plugin'
kuriborosu.c:(.text.startup.main+0x206): undefined reference to `carla_create_native_plugin_host_handle'
kuriborosu.c:(.text.startup.main+0x233): undefined reference to `carla_load_file'
kuriborosu.c:(.text.startup.main+0x243): undefined reference to `carla_get_last_error'
kuriborosu.c:(.text.startup.main+0x28c): undefined reference to `carla_host_handle_free'
kuriborosu.c:(.text.startup.main+0x361): undefined reference to `carla_add_plugin'
kuriborosu.c:(.text.startup.main+0x38c): undefined reference to `carla_load_file'
kuriborosu.c:(.text.startup.main+0x398): undefined reference to `carla_get_last_error'
kuriborosu.c:(.text.startup.main+0x3af): undefined reference to `carla_get_last_error'
kuriborosu.c:(.text.startup.main+0x406): undefined reference to `sf_open'
kuriborosu.c:(.text.startup.main+0x422): undefined reference to `sf_command'
kuriborosu.c:(.text.startup.main+0x436): undefined reference to `sf_command'
kuriborosu.c:(.text.startup.main+0x55e): undefined reference to `sf_writef_float'
kuriborosu.c:(.text.startup.main+0x5e2): undefined reference to `sf_close'
kuriborosu.c:(.text.startup.main+0x61f): undefined reference to `carla_get_real_plugin_name'
kuriborosu.c:(.text.startup.main+0x642): undefined reference to `carla_set_parameter_value'
kuriborosu.c:(.text.startup.main+0x64c): undefined reference to `carla_get_real_plugin_name'
kuriborosu.c:(.text.startup.main+0x66d): undefined reference to `carla_get_real_plugin_name'
kuriborosu.c:(.text.startup.main+0x776): undefined reference to `sf_writef_float'
kuriborosu.c:(.text.startup.main+0x810): undefined reference to `carla_get_current_parameter_value'
kuriborosu.c:(.text.startup.main+0x86a): undefined reference to `carla_get_current_parameter_value'
collect2: error: ld returned 1 exit status
Makefile:49: recipe for target '../bin/kuriborosu' failed
make: *** [../bin/kuriborosu] Error 1

Any pointers?

falkTX commented 3 years ago

This needs carla installed as shared library, with its pkg-config on a place where pkg-config tool can find it. There is nothing that needs to be modified on the makefiles to get this to build.

falkTX commented 3 years ago

If you already have carla installed, then it is just too old. This is a new project, so I am not bothering supporting old carla versions.

coderofsalvation commented 3 years ago

Thanks for commenting.

If you already have carla installed, then it is just too old.

As you can see in the terminal output, I've cloned the latest github master-branch (didn't compile it though). I'm running the Carla binary from the latest release @ https://kx.studio/Applications:Carla

This needs carla installed as shared library, with its pkg-config on a place where pkg-config tool can find it.

How does one do this? Do I need to install carla by adding some apt repository?

falkTX commented 3 years ago

this depends on carla, so you need to install carla first.