HISE Logo Forum
    • Categories
    • Register
    • Login

    Unable to find libncurses.6.dylib when launching Hise + Faust

    Scheduled Pinned Locked Moved General Questions
    23 Posts 6 Posters 1.4k Views
    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.
    • ulrikU
      ulrik
      last edited by

      I've successfully build Hise with Faust, however Hise crashes with this message:
      I'm running MacOS 13.0.1 on a M1

      Termination Reason:    Namespace DYLD, Code 1 Library missing
      Library not loaded: /opt/local/lib/libncurses.6.dylib
      Referenced from: <E0F3F783-5955-3BDF-BB3D-2B65F065749D> /Users/USER/Music/*/libfaust.2.54.9.dylib
      Reason: tried: '/opt/local/lib/libncurses.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libncurses.6.dylib' (no such file), '/opt/local/lib/libncurses.6.dylib' (no such file), '/usr/local/lib/libncurses.6.dylib' (no such file), '/usr/lib/libncurses.6.dylib' (no such file, not in dyld cache)
      (terminated at launch; ignore backtrace)
      

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @ulrik
        last edited by

        @ulrik So I installed libncurses with brew but still no luck finding that lib

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @ulrik
          last edited by

          @ulrik this is the Faust file I downloaded and installed in the tools/faust folder like this

          Faust-2.54.9-x64.dmg

          Skärmavbild 2023-01-01 kl. 22.56.48.png

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          ulrikU 1 Reply Last reply Reply Quote 0
          • ulrikU
            ulrik @ulrik
            last edited by

            @ulrik I installed ncurses with mac ports and Faust will find the lib :)
            but, it complains about ncurses not being x86_64, I thought it was universal?

            Any thoughts?

            (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),
            

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            ulrikU 1 Reply Last reply Reply Quote 0
            • ulrikU
              ulrik @ulrik
              last edited by

              @ulrik Ok solved, I had to install ncurses +universal

              Using Macports I installed the library using:

              sudo port install ncurses +universal
              

              and now Hise is up running :)

              I didn't know you had to install other libraries to run Faust, maybe it's a good idea to make a note of that in the documentation?

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              MikeBM DabDabD 2 Replies Last reply Reply Quote 3
              • MikeBM
                MikeB @ulrik
                last edited by

                @ulrik
                You are the only one here who asks questions here and then answers them straight away - amazing - Happy New Year Ulrik. :-)

                "One hour of trial and error can save 10 minutes of reading the manual."
                "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                ulrikU 1 Reply Last reply Reply Quote 1
                • ulrikU
                  ulrik @MikeB
                  last edited by

                  @MikeB Haha, yes sometimes talking to yourself will give you the right answers :)
                  Happy new year to you Mike 🚀

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  Christoph HartC 1 Reply Last reply Reply Quote 2
                  • Christoph HartC
                    Christoph Hart @ulrik
                    last edited by

                    @ulrik never heard of that library and I didn‘t need to install it for Faust. What OS version and Faust version are you using?

                    Maybe @sletz can jump in now that he has new free time because all his students are using ChatGPT anyway :)

                    ulrikU 1 Reply Last reply Reply Quote 1
                    • ulrikU
                      ulrik @Christoph Hart
                      last edited by

                      @Christoph-Hart I'm using MacOS Ventura 13.0.1 (22A400)
                      and Faust-2.54.9-x64

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      ulrikU 1 Reply Last reply Reply Quote 0
                      • ulrikU
                        ulrik @ulrik
                        last edited by

                        @ulrik I'm following the helpful video by Tania here:
                        https://forum.hise.audio/topic/7021/faust-hise-video-tutorials-hny-2023

                        and I get an error when Hise try to find the "stdfaust.lib"

                        Skärmavbild 2023-01-02 kl. 11.16.07.png

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

                        Christoph HartC 1 Reply Last reply Reply Quote 0
                        • Christoph HartC
                          Christoph Hart @ulrik
                          last edited by

                          @ulrik you need to set the FaustPath in the macOS settings. Also check the sticky post with the build instructions.

                          ulrikU 1 Reply Last reply Reply Quote 1
                          • ulrikU
                            ulrik @Christoph Hart
                            last edited by

                            @Christoph-Hart Ok, I'll take a look, thanks!

                            Hise Develop branch
                            MacOs 15.3.1, Xcode 16.2
                            http://musikboden.se

                            ulrikU 1 Reply Last reply Reply Quote 0
                            • ulrikU
                              ulrik @ulrik
                              last edited by

                              @Christoph-Hart Ok, I've set the Faust path but now Hise crash every time I create a new dsp file and load it
                              This is my journey:

                              • No problems building Hise with Faust enabled
                              • Launching Hise after successful build result ina message saying "libfaust.2.........dylib can not be opened because its identity is not confirmed"

                              Skärmavbild 2023-01-02 kl. 12.15.21.png

                              So I use the terminal to make it trustworthy

                              xattr -cr /Users/ulrikboden/Music/Hise/HISE-develop/tools/faust/lib/libfaust.2.54.9.dylib
                              

                              This will make Hise open, I set the path to Faust in the settings

                              Skärmavbild 2023-01-02 kl. 12.36.25.png

                              and start exploring this exciting new world of Faust :)

                              I create the dsp Network file and load the "core.faust"

                              however it ends abruptly when I create a "New File" in core.faust, Hise crashing.

                              So I open the project again, (the "New file" I created in core.faust is there, I just need to load it, but as soon as I try Hise crash again.

                              If I open the created .dsp file in an external editor it says:

                              // Faust Source File: CompressorST
                              // Created with HISE on 2023-01-02
                              import("stdfaust.lib");
                              process = _, _;
                              

                              and that looks good, right?

                              and this is my network file

                              <?xml version="1.0" encoding="UTF-8"?>
                              
                              <Network ID="STCompressor" Version="0.0.0">
                                <Node FactoryPath="container.chain" ID="STCompressor" Bypassed="0">
                                  <Nodes>
                                    <Node ID="faust" FactoryPath="core.faust" Bypassed="0">
                                      <Properties>
                                        <Property ID="ClassId" Value=""/>
                                        <Property ID="NumParameters" Value="0"/>
                                      </Properties>
                                      <Parameters/>
                                      <SwitchTargets/>
                                    </Node>
                                  </Nodes>
                                  <Parameters/>
                                </Node>
                              </Network>
                              

                              What am I doing wrong?

                              Hise Develop branch
                              MacOs 15.3.1, Xcode 16.2
                              http://musikboden.se

                              1 Reply Last reply Reply Quote 0
                              • S
                                sletz
                                last edited by

                                /opt/local/lib/libncurses.6.dylib : yes I recently realized that our recent Faust binary packages have several /opt/local/lib/xxx dependancies (because we build them using a MacPorts installed LLVM version), which is bad :anguished_face: . But embedding LLVM without any dependancies is not so easy. Still fighting to find a proper solution.

                                FortuneF ulrikU 2 Replies Last reply Reply Quote 0
                                • S
                                  sletz
                                  last edited by sletz

                                  @Christoph-Hart Here is Chat GPT answer 😧 !

                                  How to build LLVM on macOS without any dependancies ?

                                  To build LLVM on macOS without any dependencies, you will need to build the LLVM source code from scratch. This process involves downloading the LLVM source code, configuring the build environment, and compiling the source code using a suitable compiler.

                                  Here are the general steps you will need to follow to build LLVM on macOS without any dependencies:

                                  Download the LLVM source code. You can obtain the latest stable release of LLVM from the LLVM website (https://llvm.org/releases/), or you can check out the latest development version of LLVM from the LLVM Git repository (https://github.com/llvm/llvm-project).
                                  Configure the build environment. LLVM uses the CMake build system, which requires you to specify a number of build options and configuration variables. You will need to create a build directory and run CMake to generate the build files for LLVM.
                                  Compile the source code. Once the build files have been generated, you can use a suitable compiler (such as Clang or GCC) to compile the LLVM source code. You can use the make command to build LLVM, or you can use a build tool such as Ninja to build LLVM more quickly.
                                  Install LLVM. Once the LLVM source code has been compiled, you will need to install it on your system. You can do this by running the make install command from the build directory.

                                  Note that building LLVM from scratch can be a complex process, and it may require a significant amount of time and resources. If you are not familiar with building software from source code, you may want to consider using a pre-built version of LLVM instead. This will allow you to use LLVM without the need to build it yourself.

                                  1 Reply Last reply Reply Quote 0
                                  • FortuneF
                                    Fortune @sletz
                                    last edited by

                                    @sletz Screen Shot 2023-01-02 at 20.55.18.png

                                    Same issue here. Monterey - M1 - Xcode 13.1

                                    1 Reply Last reply Reply Quote 0
                                    • ulrikU
                                      ulrik @sletz
                                      last edited by ulrik

                                      @sletz Is it possible to get hands on an older Faust binary package?
                                      It was...

                                      Hise Develop branch
                                      MacOs 15.3.1, Xcode 16.2
                                      http://musikboden.se

                                      ulrikU 1 Reply Last reply Reply Quote 0
                                      • ulrikU
                                        ulrik @ulrik
                                        last edited by

                                        @ulrik Ok, I installed older Faust binaries "Faust-2.50.6-x64" and I have no more crashes :)

                                        I still have to use the "xattr -cr /path to the libfaust.dylib, but that's a Mac thing....

                                        Hise Develop branch
                                        MacOs 15.3.1, Xcode 16.2
                                        http://musikboden.se

                                        ulrikU 1 Reply Last reply Reply Quote 0
                                        • S
                                          sletz
                                          last edited by

                                          What was the crash? Any crash log?

                                          ulrikU 1 Reply Last reply Reply Quote 0
                                          • ulrikU
                                            ulrik @sletz
                                            last edited by

                                            @sletz sorry for late answer, no crash logs I'm afraid 😔

                                            Hise Develop branch
                                            MacOs 15.3.1, Xcode 16.2
                                            http://musikboden.se

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            30

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.3k

                                            Posts