Skip to content
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

WHC syntacts installation problems #1

Open
CarlosJohansson opened this issue Apr 28, 2021 · 4 comments
Open

WHC syntacts installation problems #1

CarlosJohansson opened this issue Apr 28, 2021 · 4 comments

Comments

@CarlosJohansson
Copy link

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

@ChristianFrisson
Copy link
Member

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!

@sriGanna
Copy link

sriGanna commented Jun 5, 2021

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?

@ChristianFrisson
Copy link
Member

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)

@ADataDate
Copy link
Member

ADataDate commented Jun 8, 2021

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 [email protected]: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants