[GUIDE] Compile Pure Data Extended on UDOO

Discussion in 'Application & Utilities' started by killkrt, Nov 30, 2013.

  1. npg000

    npg000 New Member

    Joined:
    Jun 25, 2014
    Messages:
    4
    Likes Received:
    0
    Dear all,

    I've installed PD-extended successfully on UDOO Quad, I only have two issues regard the GEM OpenGL wrapper and HDMI audio.

    • OpenGL does not work at all on UDOO, I usually do some tests with http://glsl.heroku.com/ that does not work at all, and with GEM I have "GL: Invalid Enumerant" error. I've installed every kind of GL related library from apt-get to make it work but nothing to do...also tried to switch to openbox that does not boot...!

    • Audio over HDMI doesn't work at all and while Audio works perfectly on Miller's Vanilla Version, it is not working at all with the compiled extended.

    Thank you!

    Franz
     
  2. delba

    delba Administrator Staff Member

    Joined:
    May 8, 2013
    Messages:
    1,063
    Likes Received:
    9
    Thanks for the feedbacks npg000. What Distro are you using?
     
  3. npg000

    npg000 New Member

    Joined:
    Jun 25, 2014
    Messages:
    4
    Likes Received:
    0
    Hi delba,

    I'm on lubuntu 12.04 LTS with PD-Extended 0.43.4
     
  4. batchku

    batchku New Member

    Joined:
    Jul 11, 2013
    Messages:
    17
    Likes Received:
    0
    hello,
    do you have your instructions for how to get pd-extended going on the Udoo posted somewhere?

    ali
     
  5. glitchpop

    glitchpop New Member

    Joined:
    Jul 24, 2014
    Messages:
    2
    Likes Received:
    0
    Hi all. I am very excited about this as I like to use Pd Extended with GEM for interactive A/V installations and would love a dedicated device that can run it. In the past the problem has been OpenGL Es on ARM devices but according the Udoo homepage Udoo now supports OpenGL as well so any progress on this? Will GEM run on Udoo now? If so I will buy one straight away :cool:
     
  6. glitchpop

    glitchpop New Member

    Joined:
    Jul 24, 2014
    Messages:
    2
    Likes Received:
    0
    Bump. So does anyone know? Is the above achievable ?
     
  7. alexandros301

    alexandros301 Member

    Joined:
    Mar 22, 2014
    Messages:
    40
    Likes Received:
    0
    It does, AFAIK. If you use SSH to program Udoo, GEM will work fine. If you use it headless, then it will only create a fullscreen window (haven't tried, read it in Pd's mailing list), which doesn't sound so much of a problem.
     
  8. jack

    jack New Member

    Joined:
    Aug 23, 2014
    Messages:
    1
    Likes Received:
    0
    Hello,

    Gem works quite fine on UDOO board (here with VivanteGC2000). The problem is with shaders : i can't run a patch using them. When i try to load a fragment shader (a basic shader that works on my laptop), I get :
    [glsl_fragment]: compile Info_log:
    [glsl_fragment]: (10:0) : error : undefined identifier: 'gl_TextureMatrix'
    (10:0) : error : undefined identifier: 'gl_TexCoord'
    (12:0) : error : undefined identifier: 'gl_TexCoord'
    (12:0) : error : undefined identifier: 'gl_TexCoord'
    (13:0) : error : undefined identifier: 'xs1'
    (14:0) : error : undefined identifier: 'xs2'
    (16:0) : error : undefined identifier: 'gl_TexCoord'
    (16:0) : error : undefined identifier: 'gl_TexCoord'
    (17:0) : error : undefined identifier: 'ys1'
    (18:0) : error : undefined identifier: 'ys2'
    (20:0) : error : undefined identifier: 'C'
    (20:0) : error : undefined identifier: 'xs3'
    (20:0) : error : undefined identifier: 'ys3'

    error: [glsl_fragment]: shader not loaded
    ++

    Jack
     
  9. npg000

    npg000 New Member

    Joined:
    Jun 25, 2014
    Messages:
    4
    Likes Received:
    0
    Still getting the "GL: invalid enumerant" when trying to use every GEM object :(
    Anyone's getting GEM running properly on UDOO here?
    What alexandros301 means with "If you use SSH to program Udoo"?

    Thanks!
     
  10. alexandros301

    alexandros301 Member

    Joined:
    Mar 22, 2014
    Messages:
    40
    Likes Received:
    0
    I mean to log in Udoo with ssh through a terminal (on Linux and OS X, Windows needs Putty, I think) to connect to Udoo from you laptop (or desktop). That's how I use Udoo with Pd-0.44 (I think) installed via apt-get and Gem works fine (on Debian). There's a tutorial on Udoo's website on how to log in via ssh.
     
  11. Masquime

    Masquime New Member

    Joined:
    May 4, 2017
    Messages:
    13
    Likes Received:
    3
    Hello,
    I'm new with Udoo and I planned to you use Udoo neo basic with puredata and arduino pinout and gpio . But I encounter some problems...

    First, it was painfull to install puredata, I failed to compil pd-extended and pd vanilla 0.47 udoo version (and I don't know why, process stops after I launch ./autogen.sh), so finally it was a successfull to installed Pd 0.45 via apt-get.
    But when I install gpio external it doesn't works. This is what i got in the pd console :
    /usr/lib/pd/extra/gpio/gpio.l_arm: /usr/lib/pd/extra/gpio/gpio.l_arm: cannot open shared object file: No such file or directory
    gpio 53
    ...couldn't create

    Edit : I have a problem when I hit "make" in the gpio directory, I've got :
    make: Nothing to be done for 'current'

    I'm on Udoobuntu 2.1.2 (Ubuntu 14.04) .
    Someone have an idea ?

    Thanks for your help.
     
    Last edited: May 4, 2017
  12. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,236
    Likes Received:
    561
    The Udoo Quad is no Udoo Neo, the Gpio part of the Dual/Quad is different than from the Neo. I think you have to recompile the gpio.l_arm after you have checked the IO ports of the Neo.
    I got this Theremin Pure Data demo working without big issues on the Neo. It is using the Arduino part for I/O of sensors.
     
  13. Masquime

    Masquime New Member

    Joined:
    May 4, 2017
    Messages:
    13
    Likes Received:
    3
    Watervl, thank you for your reply and your link
    I anticipated something like you said, a compatibility problem with Udoo Neo.
    My problem is that I need arduinos pins + gpio pins for my project, (because there is not enough arduinos pins for my project on the neo board).
    And I really don't know how to recompile the gpio.l_arm, I'm not a advanced programer.
     
  14. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,236
    Likes Received:
    561
    If you look at this file https://github.com/cmuartfab/Udoo/blob/master/puredata/gpio/gpio-help.pd it referes to Gpio 88 (pin 53):
    #X obj 16 188 gpio 88;

    There is no Gpio 88 (pin 53) on the Neo on the Linux side, see image below.
    You could try for example gpio 21 (pin 33).
    [​IMG]
     
  15. Masquime

    Masquime New Member

    Joined:
    May 4, 2017
    Messages:
    13
    Likes Received:
    3
    waltervl, I'd already supsected that, I tried other pins, with the same issue...
     
  16. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,236
    Likes Received:
    561
    You could use Python to communicate with PD https://guitarextended.wordpress.co...nd-pure-data-communicate-on-the-raspberry-pi/
    You could use this Python GPIO libary to set GPIO from Python https://github.com/smerkousdavid/Neo.GPIO
    Watch out! This library also adresses Arduino GPIO so you better remove the bold gpio numbers. Even better is to remove all Gpio that you are not using.

    self.gpios = ["178", "179", "104", "143", "142", "141", "140", "149", "105", "148", "146", "147", "100", "102",

    "102", "106",
    "106", "107", "180", "181", "172", "173", "182", "124",
    "25", "22", "14", "15", "16", "17", "18", "19", "20", "21", "203", "202", "177", "176", "175",
    "174", "119", "124", "127", "116", "7", "6", "5", "4"]
     
  17. Masquime

    Masquime New Member

    Joined:
    May 4, 2017
    Messages:
    13
    Likes Received:
    3
    Thank you for your advise, I never used python or prohram with it so, I'm going to learn and experiment ! :)
     
    waltervl likes this.

Share This Page