Git Product home page Git Product logo

Comments (10)

AshleyF avatar AshleyF commented on May 12, 2024

Hello Angelique,

Which sample are you trying to run and what errors/issues are you seeing?

For example, the LinuxSpeechSample has project references in the .csproj to Microsoft.Psi.Audio.Linux and Microsoft.Psi.CognitiveServices.Speech. Similarly for other samples. Having cloned the repo, you should be able to build from source this way — no NuGets required.

If instead you're developing your own stand-alone app and would rather not have source-level dependencies, the built binaries are also published as NuGets (e.g. Microsoft.Psi.Audio.Linux) and can be added as package references to your project in VS Code or at the command-line.

Hopefully that helps. Let us know how it goes.

from psi.

angeliquetaylor avatar angeliquetaylor commented on May 12, 2024

Hi Ashley,

Sorry, I have to back track a bit because tried resolving my prior issue and now the psi system won't build. I'm getting the following error on Linux, Ubuntu 16.04

g++: error: /libavdevice/libavdevice.so: No such file or directory
g++: error: /libavfilter/libavfilter.so: No such file or directory
g++: error: /libswresample/libswresample.so: No such file or directory
g++: error: /libavcodec/libavcodec.so: No such file or directory
g++: error: /libavformat/libavformat.so: No such file or directory
g++: error: /libavutil/libavutil.so: No such file or directory
g++: error: /libswscale/libswscale.so: No such file or directory
make: *** [Microsoft.Psi.Media.Native.so] Error 1
Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed

  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load �, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ��n, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ���, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load �_Y�, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load �?^�, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ��, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    ./build.sh: line 14: cd: ./Sources/Integrations/ROS/Microsoft.ROS/: No such file or directory
    Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ��, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ��, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ��, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ���, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load �_��, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load ����, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    Failed to load �?�, error: /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so: cannot open shared object file: No such file or directory
    The library libhostfxr.so was found, but loading it from /usr/share/dotnet/host/fxr/5.0.0-alpha.1.19564.1/libhostfxr.so failed
  • Installing .NET Core prerequisites might help resolve this problem.
    https://go.microsoft.com/fwlink/?linkid=2063370
    ./build.sh: line 24: cd: ./Samples/PsiRosTurtleSample/: No such file or directory

Any ideas why I'm getting this error? I tried adding the path to the .so files to /etc/ld.so.conf and then I run sudo ldconfig but this did not resolve the issue.

Also, the installation link for .NET Core on Linux isn't working anymore: https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x

from psi.

angeliquetaylor avatar angeliquetaylor commented on May 12, 2024

Hi Ashley,

I see that the Makefile uses the environment variable FFMPEGLibDir. I installed ffmpeg from here: https://ffmpeg.org/download.html

However, I'm not sure what path to set FFMPEGLibDir to. Can you help me with this?

from psi.

xiangzhi avatar xiangzhi commented on May 12, 2024

I just want to chip in since I'm also trying to get it working on our own Linux machines.

The way C#/Psi packages are built is very different from g++/cmake that are common on Linux systems. I was able to get them to build after I installed dotnet-sdk-2.2 and mono-devel:

Some packages should still fail to build since they have a optional requirements like FFMPEG, but you should see a bunch of build succeeded. Another thing you can try is to navigate to the sample file location and build it yourself using the CLI commands. dotnet build and run it with dotnet run

If you aren't actively changing the runtime/components, I would stick with building applications using nugets. The intellisense (auto-complete) didn't work for me with the whole repo but works perfectly with nuget packages. Here's an example:

mkdir THIS_IS_MY_PROGRAM && cd THIS_IS_MY_PROGRAM
dotnet new console
dotnet add package Microsoft.Psi.Runtime --version 0.10.16.1-beta

Edit program.cs and add all the codes you want to run. To build and run it, just type dotnet run

from psi.

angeliquetaylor avatar angeliquetaylor commented on May 12, 2024

Hi @xiangzhi! Thanks for your response. I followed the instructions to install dotnet-sdk-2.2 and mono-devel. However, I keep getting this error: ./build.sh: line 3: dotnet: command not found

Did you encounter this problem? Any idea what I might be missing?

from psi.

xiangzhi avatar xiangzhi commented on May 12, 2024

Hi @xiangzhi! Thanks for your response. I followed the instructions to install dotnet-sdk-2.2 and mono-devel. However, I keep getting this error: ./build.sh: line 3: dotnet: command not found

Did you encounter this problem? Any idea what I might be missing?

I'd try reopening the terminal. Could you also try to just type dotnet into the terminal and see what you get?

from psi.

angeliquetaylor avatar angeliquetaylor commented on May 12, 2024

Hi @xiangzhi! Thanks for your response. I followed the instructions to install dotnet-sdk-2.2 and mono-devel. However, I keep getting this error: ./build.sh: line 3: dotnet: command not found
Did you encounter this problem? Any idea what I might be missing?

I'd try reopening the terminal. Could you also try to just type dotnet into the terminal and see what you get?

I tried reopening a new terminal and just typing dotnet in the terminal but I still get the same error. I look around to see what the issue is. Thanks!

from psi.

xiangzhi avatar xiangzhi commented on May 12, 2024

I tried reopening a new terminal and just typing dotnet in the terminal but I still get the same error. I look around to see what the issue is. Thanks!

My suspicion is that dotnet-sdk wasn't installed correctly. Good luck!

from psi.

angeliquetaylor avatar angeliquetaylor commented on May 12, 2024

Hi forgot to set my environment variable. I added this to my bashrc:

export DOTNET_ROOT=$HOME/Documents/dotnet
export PATH=$PATH:$HOME/Documents/dotnet

Replace $HOME/Documents with the path to dotnet

The simple app works now. Thanks!

from psi.

AshleyF avatar AshleyF commented on May 12, 2024

Glad it works now. I'm closing this issue, but please feel free to reopen it if you're still having trouble.

from psi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.