Comments (10)
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.
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.
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.
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
:
- https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1604 (Make sure you install the 2.2 version and not 3.0 )
- https://www.mono-project.com/download/stable/#download-lin
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.
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.
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.
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.
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.
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.
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)
- FFmpeg probelm HOT 2
- Question about "FFMPEGMediaSource.cs" HOT 2
- Request to make Microsoft.Psi.MixedReality.StereoKitTransforms properties public HOT 3
- Troubles with RemoteImporter HOT 6
- Will the implementation of "Continual Learning about Objects in the Wild: An Interactive Approach" be opensource? HOT 2
- PSI on Oculus Quest (Android) HOT 4
- Publicizing StereoKitTransforms properties HOT 1
- `NullReferenceException` in MixedReality.cs HOT 1
- Thread-safety bug for the pipeline's stopping state HOT 1
- HoloLens 2 ir cam intrinsics HOT 4
- Fix missing project Microsoft.Psi.Audio.Windows in solution HoloLensCapture.sln
- \psi Studio's 3D panel not rendering properly when using the integrated GPU (but ok with an external monitor) HOT 1
- [Bug]: Hitting an exception when attempting to start hololenscaptureapp in hololens2 using VS2022 HOT 5
- Memory usage of SharedImagePool keeps growing HOT 3
- Poor Serialization Performance for the Diagnostics's `TrackMessageSize` HOT 4
- [Question] Subpipline stop without stopping parent pipline HOT 5
- .NET Native Support
- PsiStoreReader has an inconsistent output for indexed entries on different projects (DotNet vs. UWP) same x64 architecture HOT 2
- Could not load file or assembly 'Microsoft.Psi.Media_Interop.Windows.x64, Version=0.18.72.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. HOT 2
- PsiStudio not displaying correctly properties with new visualizers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psi.