Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find Carla on Linux #588

Open
minijackson opened this issue Oct 7, 2023 · 0 comments
Open

Cannot find Carla on Linux #588

minijackson opened this issue Oct 7, 2023 · 0 comments

Comments

@minijackson
Copy link

minijackson commented Oct 7, 2023

Hello, and thanks for this amazing piece of software!

Right now, the Carla Plugin Host and Ildaeil modules can't find Carla on my NixOS system, as it is not installed in /usr/local/lib nor /usr/lib.

What do you think about allowing an environment variable to specify the absolute path to Carla's lib directory?

Related code:

  • else if (system::exists("/usr/local/lib/carla"))
    {
    binaryDir = "/usr/local/lib/carla";
    resourceDir = "/usr/local/share/carla/resources";
    }
    else if (system::exists("/usr/lib/carla"))
    {
    binaryDir = "/usr/lib/carla";
    resourceDir = "/usr/share/carla/resources";
    }
  • else if (system::exists("/usr/local/lib/carla"))
    {
    fBinaryPath = "/usr/local/lib/carla";
    carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_BINARIES, 0, "/usr/local/lib/carla");
    carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/usr/local/share/carla/resources");
    }
    else if (system::exists("/usr/lib/carla"))
    {
    fBinaryPath = "/usr/lib/carla";
    carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_BINARIES, 0, "/usr/lib/carla");
    carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/usr/share/carla/resources");
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant