Open CarlosJohansson opened 3 years ago
Hi @CarlosJohansson, thanks for having shared your problem by opening an issue, so that you may receive help from more people and so that the solution may help all teams.
The Syntacts Quick Start guide applies to operating systems for which Syntacts binary releases are available (macOS and Windows). For Linux operating systems, including for the Raspberry Pi, an extra step is needed: compiling the source code to build the GUI and libraries.
From the tutorials linked in the README right below Quick Start, you will find the Building tutorial, from its last section Building on Linux.
Regarding:
Note that you’ll need to install additional development files for any features you want to support (e.g., GTK+3, JACK).
You can install these dependencies from a terminal:
sudo apt install cmake libasound2-dev libgtk-3-dev
I have found package names in this list: https://www.raspberryconnect.com/raspbian-packages/77-raspbian-libdevel. If you want Jack audio connection support, you may add libjack-dev
(v1) or libjack-jackd2-dev
(v2).
Let us know if that helps!
tagging on to this issue; I'm also having a problem with the build. I have followed on the instructions above and when I try to build I get stuck at [ 93%] Linking CXX executable rtti. Has anyone else faced this issue or know how to fix it?
tagging on to this issue; I'm also having a problem with the build. I have followed on the instructions above and when I try to build I get stuck at [ 93%] Linking CXX executable rtti. Has anyone else faced this issue or know how to fix it?
Hi @sriGanna,
Is there more contextual information than [ 93%] Linking CXX executable rtti
from the compilation error trace?
Can you also try to reconfigure by appending -DCMAKE_VERBOSE_MAKEFILE=ON' to
cmake .. -DCMAKE_BUILD_TYPE="Release"` and recompile to see if you get more clues?
(https://cmake.org/cmake/help/latest/variable/CMAKE_VERBOSE_MAKEFILE.html)
Hi, these are the steps we took to get Syntacts built on the Raspberry Pi4 and have tested python and c examples. We pushed a branch called cyborg-crafts that has an updated CMakeLists.txt file
Instructions:
// Installs sudo apt install puredata sudo apt install python3 idle3 sudo apt-get install python3-pip sudo apt-get install syntacts sudo apt-get install libxrandr-dev sudo apt-get install libxinerama-dev sudo apt-get install libxcursor-dev sudo apt-get install libxi-dev sudo apt-get install libgtk-3-dev sudo apt-get install libasound-dev
// Audio injector "driver" which needs to be downloaded from their website: https://github.com/Audio-Injector/Octo sudo dpkg -i audioinjector.octo.setup_0.4_all.deb
// Pull syntacts git clone git@github.com:WHC2021SIC/Syntacts.git
// Update all submodules git submodule update --init --recursive
// Create build directory mkdir build
// Enter build directory cd mkdir
// Prepare for building cmake .. -DCMAKE_BUILD_TYPE="Release"
// Verify in CMakeCache.txt that PA_USE_ALSA is set to on PA_USE_ALSA:BOOL=ON
// Build cmake --build .
// Verify audioinjector board shows up by running: ./examples/devices
// run pycharm
// Start a new project // use Syntacts/python as your directory // Setup configuration to run example_devices.py // Verify audio injector appears in set of devices
Regarding the Syntacts GUI instalatiion part of the Quick Start guide, it states:
Get the latest Release and extract the files.
Run the GUI executable syntacts_gui in the top level directory.
However, the "source" option of the release (which we believe is the right one, since we're meant to run it on the Raspberry unix distro, and not Windows or Mac) does not contain an executable "syntacts_gui" file. By trying to use the same file in the Mac release, it doesn't run, only presenting us with an "impossible to execute the binary file / error in the exec format" message.
We also tried to run the python examples, however they seem to be lacking the Syntacts library, which we guess would be installed by the file we're missing.
Are we missing something? We already installed Octo and we've been trying different solutions for the past week (like installing a different linux distro on the Raspberry pi, which didn't pan out).
@WHC2021SIC/sic-chairs