Please login or register.

Login with username, password and session length

News:

Registration is only required if you want to post, and is not needed to read any posts. To avoid excess 'spam' accounts, all accounts where no posts have been made will be deleted after two weeks. Please register again if you wish to post.

Author Topic: Compiling with Sound : Linux  (Read 380 times)

March 21, 2019, 02:53:48 AM
  • Member
  • **
  • Posts: 5
    • View Profile
Looking at the code briefly, it looks like I might need to download and compile the sound libraries separately. Would this be an accurate statement?

When I added #define WITH_SOUND, it said it couldn't find sndfile.h.

So before I went down a rabbit hole, I thought I would ask.
 

March 21, 2019, 06:09:16 AM
Reply #1
  • Administrator
  • Member
  • *****
  • Posts: 89
    • View Profile
Yes, that is correct. I was actually hoping to set this up properly as my next task.

March 21, 2019, 10:23:57 PM
Reply #2
  • Administrator
  • Member
  • *****
  • Posts: 89
    • View Profile
The is my 'recipe' for building with sound, applicable for Linux and macOS:

Libsndfile:
Download and uncompress libsndfile-1.0.28.tar.gz from http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
Create a folder for the output, referred to as <Somewhere> (Absolute path)
Change directory to where you've uncompressed libsndfile, then:
Code: [Select]
./configure --disable-shared --prefix=<Somewhere>
make
make install
cd <Somewhere>
cp -a lib <BridgeCommandSourceLocation>/libs/libsndfile/

Portaudio (Note for Linux compilation, remove the --disable-mac-universal option):
Download and uncompress pa_stable_v190600_20161030.tgz from http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
Change directory to where you've uncompressed Portaudio, then:
Code: [Select]
./configure --disable-mac-universal --disable-shared --enable-static
make
cd lib/.libs/
cp * <BridgeCommandSourceLocation>/libs/portaudio/lib/

Bridge Command:
Change to where you have the Bridge Command source then
Code: [Select]
make -f MakefileWithSound