Coder Social home page Coder Social logo

Comments (4)

McMartin avatar McMartin commented on July 3, 2024 1

Hi @pknock-Fender

I don't see how linking libtorch is related to the "Invalid Audio IO Settings" you originally reported. If the "Invalid Audio IO Settings" have been fixed, please close this issue. I'm happy to discuss linking libtorch in a new issue.

from frut.

McMartin avatar McMartin commented on July 3, 2024

Hi @pknock-Fender

Thank you for using FRUT!

Could you please attach (in a new comment):

  • the .jucer project file or the Makefile generated by Projucer, and
  • the CMakeLists.txt file you use with FRUT?

Feel free to edit/remove any sensitive information from these files. You might have to append the .txt extension to make GitHub accept the attachments.

With these files, I should be able to figure out what is different between the two ways of building your project.

from frut.

pknock-Fender avatar pknock-Fender commented on July 3, 2024

Thanks so much for your help @McMartin. I've taken a little more time to narrow it down, and I've found that the problem is in trying to link libtorch into the project.

From what I understand, after generating the CMakeLists.txt file, in order to link libtorch, I need to do the following. The example I followed can be found here and here.

  • In CMakeLists.txt, add:
find_package(Torch REQUIRED)
...

# Note that this occurs after the jucer_project_end() line.
target_link_libraries("<TARGET_NAME>_Shared_Code" PRIVATE torch)
  • When building, do the following (on linux):
    cmake .. -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/path/to/libtorch ..

Here are the jucer and CMakeLists files. It's all fairly boilerplate except for a couple extra search paths in the jucer proejct.
CMakeLists.txt
MicroTCN.txt

If I don't link libtorch, I get the settings I expect, but I won't be able to use it in my plugin. All the examples I've looked at in figuring out how to link libtorch use the above modifications to CMakeLists to do it. I haven't been able to successfully link libtorch in the projucer, so I don't have a direct comparison in that regard.

from frut.

pknock-Fender avatar pknock-Fender commented on July 3, 2024

Sorry about that. Something I considered trying is to compile it as a VST instead of standalone and see if I can get it to work that way. Either way, I'll follow up with this. Thanks again for your help

from frut.

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.