brummer10 / neural-amp-modeler-ui

This is a GUI for the Neural Amp Modeler LV2 plugin
46 stars 3 forks source link

Unable to make on arch linux #6

Open crazytelli opened 4 months ago

crazytelli commented 4 months ago

OS: Arch Linux Kernel version: 6.10

I'm getting the following output/error when trying to make.

for         Linux
with        cc
using       ld
and         xxd -i
egrep: warning: egrep is obsolescent; using grep -E
 Submodule up to date
 ================================================
 Building object file for Resources 
 Building object file b64_encode.o 
 Building object file xadjustment.o 
 Building object file xadjustment_private.o 
 Building object file xasprintf.o 
 Building object file xchildlist.o 
 Building object file xchildlist_private.o 
 Building object file xcolor.o 
 Building object file xfilepicker.o 
 Building object file xpngloader.o 
 Building object file xputty.o 
 Building object file xsvgloader.o 
 Building object file xwidget.o 
 Building object file xwidget-linux.o 
 Building object file xwidget-mswin.o 
 Building object file xwidget_private.o 
 Building object file xbutton.o 
 Building object file xbutton_private.o 
 Building object file xcombobox.o 
 Building object file xcombobox_private.o 
 Building object file xdrawing_area.o 
 Building object file xdrawing_area_private.o 
 Building object file xframe.o 
 Building object file xframe_private.o 
 Building object file xkeyboard.o 
 Building object file xknob.o 
 Building object file xknob_private.o 
 Building object file xlabel.o 
 Building object file xlabel_private.o 
 Building object file xlistbox.o 
 Building object file xlistbox_private.o 
 Building object file xlistview.o 
 Building object file xlistview_private.o 
 Building object file xmenu.o 
 Building object file xmenu_private.o 
 Building object file xmeter.o 
 Building object file xmeter_private.o 
 Building object file xmultilistview.o 
 Building object file xmultilistview_private.o 
 Building object file xplayhead.o 
 Building object file xplayhead_private.o 
 Building object file xslider.o 
 Building object file xslider_private.o 
 Building object file xtabbox.o 
 Building object file xtabbox_private.o 
 Building object file xtooltip.o 
 Building object file xtooltip_private.o 
 Building object file xtuner.o 
 Building object file xtuner_private.o 
 Building object file xvaluedisplay.o 
 Building object file xvaluedisplay_private.o 
 Building object file xwaveview.o 
 Building object file xwaveview_private.o 
 Building object file xdirectory-dialog.o 
 Building object file xfile-dialog.o 
 Building object file xmessage-dialog.o 
 Building object file xmidi_keyboard.o 
 Building object file xsavefile-dialog.o 
 Building object file xdgmimealias.o 
 Building object file xdgmime.o 
 Building object file xdgmimecache.o 
 Building object file xdgmimeglob.o 
 Building object file xdgmimeicon.o 
 Building object file xdgmimeint.o 
 Building object file xdgmimemagic.o 
 Building object file xdgmimeparent.o 
 Build static library libxputty.a 
 =================== DONE =======================
 Compiling Neural_Amp_Modeler_ui.so 
Neural_Amp_Modeler.c: In function ‘plugin_create_controller_widgets’:
Neural_Amp_Modeler.c:323:5: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  323 |     asprintf(&ps->filepicker->filter ,"%s", ".nam");
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Neural_Amp_Modeler.c: In function ‘file_menu_callback’:
Neural_Amp_Modeler.c:219:5: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  219 |     asprintf(&ps->fname, "%s%s%s", ps->dir_name, PATH_SEPARATOR, ps->filepicker->file_names[v]);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 =================== DONE =======================
brummer10 commented 4 months ago

This is "just" a compiler warning which could be easily switched of by add the compile flag -Wno-unused-result . It's not a error. In fact, here we didn't care about the return value as it didn't matter in this case. You should find the build in the ./bin folder anyway.

brummer10 commented 4 months ago

I've pushed a fix for it to github now, implement the -Wno-unused-result flag.

crazytelli commented 4 months ago

Thanks for the quick response.

I can see the files in ~/.lv2/ as shown below:

neural-amp-ui-file


But when I launch Carla or Ardour I'm not able to bring the UI.

neural-amp-ui

brummer10 commented 4 months ago

So you've run make install could you check the content of the manifest.ttl file there, it should be

@prefix lv2:  <http://lv2plug.in/ns/lv2core#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix state: <http://lv2plug.in/ns/ext/state#> .

<http://github.com/mikeoliphant/neural-amp-modeler-lv2>
    a lv2:Plugin;
    lv2:binary <neural_amp_modeler.so>;
    rdfs:seeAlso <neural_amp_modeler.ttl>;
    rdfs:seeAlso <Neural_Amp_Modeler_ui.ttl> .

you may also check the log window from carla,

crazytelli commented 4 months ago

manifest.ttl file:

@prefix lv2:  <http://lv2plug.in/ns/lv2core#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix state: <http://lv2plug.in/ns/ext/state#> .

<http://github.com/mikeoliphant/neural-amp-modeler-lv2>
    a lv2:Plugin;
    lv2:binary <neural_amp_modeler.so>;
    rdfs:seeAlso <neural_amp_modeler.ttl>;
    rdfs:seeAlso <Neural_Amp_Modeler_ui.ttl> .

Carla log:

======= Starting engine =======
======= Engine started ========
Carla engine started, details:
  Driver name:  JACK
  Sample rate:  48000
  Process mode: Multi client
[carla] Carla assertion failure: "newFrames > 0" in file CarlaEngineInternal.cpp, line 260
brummer10 commented 4 months ago

mm, then I've no idea what goes wrong. Are you able to load any other X11 based plugin GUI's like the guitarix lv2 plugs, or this one https://github.com/brummer10/ImpulseLoader.lv2 or this one https://github.com/brummer10/Ratatouille.lv2

do you use wayland?

j1-dev commented 2 months ago

I'm having the same problem using arch and wayland. I also tried installing xorg-xwayland which supposedly let's you run X11 applications in wayland but it doesn't seem to work