sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    LD_LIBRARY_PATH ... call executables and dynamic libraries

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 4.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      gmolina1
      last edited by

      Hello All,

      I am dealing with some weird behaviour. I am trying to make SketchUp call Emp. Since Emp requires some dynamic libraries to be available, what I am doing is to add the path where they are located to the ENV["LD_LIBRARY_PATH"] (see THIS).

      Then, when I call Emp from the Ruby Console, it works (I am using THIS method). However, when I call the same method from an HTMLDialog using a callback, it does not work, saying that my dynamic libraries are not available.

      Any suggestions? Is this the recommended method?

      THANKS!

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        ENV["LD_LIBRARY_PATH"] is for standalone Ruby. I'm surprised if it works at all in embedded Ruby.
        Same for Open3. I've heard of nothing but problems with it under SketchUp embedded Ruby.

        Suggest you try to wrap Emp using the Ruby Fiddle library ...
        http://ruby-doc.org/stdlib-2.2.4/libdoc/fiddle/rdoc/Fiddle/Importer.html

        P.S. - Your code is hard to read on GitHub because your indents are being replaced with 8 spaced TABs. Ruby looks best with 2 space indents. Most code editors can replace TAB with space characters as you type, and you will not get these giants indents when you post code.

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement