• phil123456

    • in the helloworld example, the fact that I called it main while the code itself referred to helloworld
    • in my own code (the one I had trouble with in the first place) ..no bloody idea

    maybe the fact I cleaned all the remaining main.pd_linux on the file system solved the issue

    anyway , hail to "LD_DEBUG=libs ..."

    posted in technical issues read more
  • phil123456

    @seb-harmonik.ar just edited, ... again ...:-)

    now, my own code works just fine without modif, jee what the hell

    anyway, I finaly found a way to debug PD library loading

    posted in technical issues read more
  • phil123456

    I removed all other instances of my main library I found on my drive, now I only get 1 "succeeded"

    I updated pd

    sudo apt-get install --only-upgrade pd
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Note, selecting 'puredata-core' instead of 'pd'
    puredata-core is already the newest version (0.47.1-3).
    0 upgraded, 0 newly installed, 0 to remove and 232 not upgraded.
    
    

    I used **pd-lib-builder **make file

    same story

    I found a way to debug library loading:

    LD_DEBUG=libs /usr/bin/pd
    
    ...
    
          7840: calling init: /usr/local/lib/pd-externals/main/main.pd_linux
          7840: 
          7840: /usr/local/lib/pd-externals/main/main.pd_linux: error: symbol lookup error: undefined symbol: main_setup (fatal)
          7840: /usr/local/lib/pd-externals/main/main.pd_linux: error: symbol lookup error: undefined symbol: setup (fatal)
    

    fixed the code and...YES !!!

    hope this also helps anyone stumbling upon this sort of issues

    posted in technical issues read more
  • phil123456

    maybe I ran a package update at some time....

    as stated above, I used a simpler "hello world" code, same issue

    here is the code

    #include "m_pd.h"
    
    static t_class *helloworld_class;
    
    typedef struct _helloworld {
      t_object  x_obj;
    } t_helloworld;
    
    void helloworld_bang(t_helloworld *x)
    {
      post("Hello world !!");
    }
    
    void *helloworld_new(void)
    {
      t_helloworld *x = (t_helloworld *)pd_new(helloworld_class);
    
      return (void *)x;
    }
    
    void helloworld_setup(void) {
      helloworld_class = class_new(gensym("helloworld"),
            (t_newmethod)helloworld_new,
            0, sizeof(t_helloworld),
            CLASS_DEFAULT, 0);
      class_addbang(helloworld_class, helloworld_bang);
    }
    

    here is the make file

    CC= cc
     
    CFLAGS= -std=gnu99 -DPD -DVERSION='"0.0"' -fPIC -O6 -funroll-loops -fomit-frame-pointer -Wall -W -g -Wno-unused-parameter  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wimplicit-function-declaration -Wint-conversion
     
    INCLUDES= -I/usr/include/pd
     
    LIBS= -lpng -lbcm2835 -lc
     
    CFLAGS2= -rdynamic -shared -fPIC -Wl,-rpath,"\$ORIGIN",--enable-new-dtags
    
    pd-plugin: $(patsubst %.c,build/%.o,$(wildcard *.c)) 
        $(CC) $(CFLAGS2) -o build/main.pd_linux $^ -lc -lpng  -lbcm2835
    
    # how to build the .o files from .cpp files for the above rules
    build/%.o: %.c
        $(info ----------------------------- $< -----------------------------------------------------------------------------------------------)
        @if $(CC) $(CFLAGS) $(INCLUDES) $(LIBS) -c  $< -o $@  ; then \
    echo "COMPILED OK !!" ; \
    else echo "ERROR" ; fi
    
    clean:
        rm build/*
    
    install:
        mkdir -p /usr/lib/puredata/extra/main/
        @sudo rm -rf /usr/lib/puredata/extra/main/*.*
        @sudo cp build/main.pd_linux /usr/lib/puredata/extra/main/main.pd_linux
        $(info /usr/lib/puredata/extra/main/main.pd_linux)
    
    

    posted in technical issues read more
  • phil123456

    no I just did not paste the zillion paths pd tried to open

    https://github.com/pure-data/externals-howto

    I dont thin the code is the issue since I tried mine and this one
    I'll restart the raspberry pi

    posted in technical issues read more
  • phil123456

    no idea..and it was working for a while....

    the problem is that pd complains but is not really constructive on the verbose level

    also my plugin is supposed to write stuffs in the syslog, cant find anything

    I used a helloworld example, same thing...wtf...

    posted in technical issues read more
  • phil123456

    Hello,

    I wrote an external a while ago and now I cant load it anymore
    it's on a respberry pi, so I did not change anything about the setup nor the version of puredata nor reinstall the box

    I noticed something strange is happening, in verbose mode, it tries tons of different paths, then says it can find the external (2 times) but then it fails to create it

    how can I solve/debug this ?

    regards

    tried /usr/lib/puredata/extra/main/main.l_arm and failed
    tried /usr/lib/puredata/extra/main/main.pd_linux and succeeded <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    tried /usr/lib/puredata/extra/main/main.pd and failed
    ...
    tried /usr/lib/puredata/extra/main.pd_linux and failed
    tried /usr/lib/puredata/extra/main/main.l_arm and failed
    tried /usr/lib/puredata/extra/main/main.pd_linux and succeeded <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    tried /usr/lib/puredata/extra/main.pd and failed
    ...
     main 13
    ... couldn't create
    

    posted in technical issues read more
  • phil123456

    thanks, I'll check these out

    posted in patch~ read more
  • phil123456

    Hello,

    I fiddled around with clipping, but, does anyone knows how to create this sound in puredata ?

    pedal : Shin-ei Companion FY-2 Fuzz Box

    regards

    posted in patch~ read more
  • phil123456

    thanks guys, I'll have a look at these :-)

    posted in patch~ read more

Internal error.

Oops! Looks like something went wrong!