Comments (4)
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.
Thank you for using FRUT!
Could you please attach (in a new comment):
- the
.jucer
project file or theMakefile
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.
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.
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)
- Reprojucer.cmake doesn't support the setting `USE_IPP_LIBRARY_ONE_API`
- Reprojucer.cmake doesn't support the setting `USE_MKL_LIBRARY_ONE_API`
- JUCE 7 causing "Undefined symbols for architecture x86_64" HOT 8
- Question: Release build containing local build strings HOT 3
- Trailing whitespace bug on JUCEOPTIONS definitons in modules HOT 1
- Error during cmake --build . --target install ("JUCE requires c++17 or later") HOT 8
- Not finding AudioUnitSDK files inside of juce_audio_plugin_client module HOT 6
- "math cannot parse the expression" Error in Reprojucer when configuring a project HOT 5
- Call different jucer_appconfig_header based on exporter? HOT 3
- CMake cannot find contents of JUCE/modules HOT 3
- CMake Error at Jucer2CMake/CMakeLists.txt:22 (message): JUCE_ROOT must be defined HOT 1
- FRUT with Mac OS
- MacOS/iOS compilation/signing Workflow
- Undefined symbols for architecture x86_64 when building FRUT on macos 11 HOT 1
- JUCE ARA PluginDemo build Projucer/FRUT discrepancy
- EXTRA_LINKER_FLAGS are OTHER_LIBTOOLFLAGS in Xcode Project
- How to use target_link_libraries HOT 1
- [Windows / MSVC] Issues while building a basic JUCE example HOT 1
- [Juce8][WebView] Additionnal deployment needed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frut.