-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running syntacts on linux background #4
Comments
Im trying to generate the library i need for linux to run scripts like the example.py but cannot until i have the library for linux. Thank you! |
@zkarach1, thank you for your question. Your error is being caused by your choice of C++ compiler. The std filesystem library is not implemented by all compilers. While we haven't done extensive testing of Syntacts on Linux systems, Clang and GNU C++ compilers should work. Please reference our tutorial page here: |
@gadzooks00 , this may require some changes to Syntacts in Library.cpp. Some compilers still implement the feature in |
@zkarach1 , the more information you share about your compiler, OS, and build environment, the better we can assist you. |
hi so these r the compiler available on my computer OS 👍 Distributor ID: Ubuntu |
Hi so
hi so I am running with clang and I adjusted the Library.cpp file to have #include <experimental/filesystem> and namespace fs = std::experimental::filesystem; |
@zkarach1 |
hi thanks so much! the Libary.cpp file works but now I still get the error in the Session.cpp file as shown above |
Enable C++17 features on your compiler for |
@zkarach1 Has that resolved your issue? |
Hi so right now I was able to build in Linux after updating everything. I had to update my Ubuntu to a newer version. However now even though I can run the scripts I am not getting any outputs. For example I run the example.devices.py file but get no outputs. So I went into the Syntact.py file and looked in the Session class and the n variable is always being assigned to 0, which I am guessing is because the python script is not able to find any devices? I try running other files like example_basic.py and though they run there is no output. Like there are no errors but a signal is not outputted. I tried running this on windows and everything works so I am guessing there is something I need to change for windows? Please let me know! |
Hi just updated it with a new question about trying to output a signal
…On Mon, Aug 16, 2021 at 7:29 PM Zane Zook ***@***.***> wrote:
@zkarach1 <https://github.com/zkarach1> Has that resolved your issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQKOVCTAM47SMBUSVOV5STT5GNPDANCNFSM5AMELSOQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
@zkarach1 Are you able to run any of the C++ examples or examples with any of the other APIs besides python on the Linux system? It would help us narrow down if the issue is from a linux import or on from a python implementation in linux. |
I have not tried that as there were only python examples in the file and in the video. Do you have a c++ file to test? Or I can try writing one but im more confident in python haha |
If you have not already, please try following the instructions here to build Syntacts on your system: After that please try following these instructions to use the C++ api: If you can get through the session subsection of the later tutorial set and then screenshot the output, that would help clarify where the sound device identification problem is occurring. |
@zkarach1 In addition to the above step. Could you please try to build Portaudio alone using the following repository and then run the "pa_devs.c" example: That will similarly help us narrow down the issue. |
hi so i git cloned the repository and then ran the file like this and here is the output: |
@zkarach1 Could you please clarify what you mean when you say:
For your next comments it looks like you are trying to use gcc in a similar way as python. Gcc only compiles the source code. The actual example will be built as an executable in the specified destination. When I refer to running the Syntacts example, I mean to build and install Syntacts as per the instruction here https://www.syntacts.org/tutorials/building/, then to navigate to its installation location, and find the executable for the relevant example and run it. The instructions provided here https://www.syntacts.org/tutorials/cpp/ are to create a standalone program using the Syntacts API and as such should be stored in a separate directory from Syntacts and simply link to the Syntacts installation or fetch it from GitHub. Please confirm that Syntacts is properly built and installed on your system and run the included example_devices program in your relevant build folder. For PortAudio, you will similarly need to compile the code using Gcc with example and then run the relevant program. More instruction are provided by PortAudio here: http://portaudio.com/docs/v19-doxydocs/compile_linux.html |
RUNNING THE MYAPP: Hi so for the first thing I did is get syntacts from github and I did that and have the folder on my computer. and then to run the myApp I just do the command ./myApp And I have a vibration output on my speakers that are connected to the mahi amplifier but I also have this error: |
Hi I am a little confused on how to run portaudio pa_dev.c? |
hey @gadzooks00 just wanted to check in if you were able to see my messages above! thank you |
@zkarach1 Yes, thank you for the screenshots and information. I am looking into this. |
@zkarach1 After testing out a couple of items on the syntacts side and reviewing the information you have provided, the issue seems to be on either the driver for your sound device or the sound device itself. While the system is able to identify that there is a sound device for ASLA, as per your screenshot from pa-devs, the same pa_linux_alsa.c error is being thrown. Since this is an issue upstream from Syntacts, there is not a software fix that we can include from our end. I would recommend checking to make sure the most updated stable audio drivers are being used on your system or to switch to another audio platform that your system is not having any connectivity issues with. |
Hi
I am having some trouble running syntacts in ubuntu with a linux background. I follow the steps in this link https://www.syntacts.org/tutorials/building/ and am able to run all the commands except for the final one :
sudo cmake --build . --target install
I get the follow error when I run the above command:
The text was updated successfully, but these errors were encountered: