Code Monkey home page Code Monkey logo

Comments (4)

evpobr avatar evpobr commented on June 9, 2024

Hi @PlatinumLucario. probably its better to use ready solution, something like aybe/libsndfile.NET. And i'm not sure Vcpkg can help here with C#, i guess you just need to install your distro libsndfile package.

It would be nice to add some additional info, logs, full error messages etc.

from libsndfile.

PlatinumLucario avatar PlatinumLucario commented on June 9, 2024

Hi @PlatinumLucario. probably its better to use ready solution, something like aybe/libsndfile.NET. And i'm not sure Vcpkg can help here with C#, i guess you just need to install your distro libsndfile package.

It would be nice to add some additional info, logs, full error messages etc.

Hi @evpobr. Apologies for not providing logs earlier. Here's the entire debug log for the application that I was working with that relied on libsndfileSharp:
vscode-debug.log

System Info:

administrator@MS-7984:~$ hostnamectl
 Static hostname: MS-7984
       Icon name: computer-desktop
         Chassis: desktop
      Machine ID: fcfd74acc4c24d3cbdb1bb6a4d6ada39
         Boot ID: cb618270bff74d2cad35c4aae309e5b0
Operating System: Ubuntu 22.04.3 LTS              
          Kernel: Linux 5.15.0-75-generic
    Architecture: x86-64
 Hardware Vendor: MSI
  Hardware Model: MS-7984
administrator@MS-7984:~$ uname -a
Linux MS-7984 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
administrator@MS-7984:~$ 

And upon testing out the actual C library with sndfile-play in Ubuntu, it works. But the C# binding for libsndfile seems to tell me that it's missing libsndfile, despite the library and its dependencies being in the same directory as the executable.

So I'm not exactly sure what it's trying to find that it can't find. Also the libsndfile.NET repo is really outdated, more so than the one provided in the Bassoon repo from Gitlab (which I'm using).

from libsndfile.

evpobr avatar evpobr commented on June 9, 2024

Maybe the library name is problem. Try libsndfile-1 name please.

Maybe the problem is here: https://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable

from libsndfile.

PlatinumLucario avatar PlatinumLucario commented on June 9, 2024

Hi @evpobr, I did try those, and even renaming the library to libsndfile1, it didn't make any difference. As for the second answer, it was interesting, 'cause normally you'd think if all the libraries are in the same directory as the executable, the executable would run them, right? Well, it turns out I was wrong.

Because when I installed the libsndfile1-dev package, the C# bindings for libsndfile suddenly worked!

So I'm actually wondering if this is because the Linux executables don't look in the same directory as to where it's located, unless it's somehow specified to do so?

from libsndfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.