How to compile from source on Linux/Gentoo

Official support for: zynaddsubfx.sourceforge.net
Post Reply New Topic
RELATED
PRODUCTS

Post

Hello!

Since ZynAddSubFX from the ebuilds is producing a bug that does not allow for Intrument loading, I decided to compile it from source. However, going to 'src/' directory and typing 'make' did not produce any executable, or so it seems to me. Looking on the net I found no relevant documentation about building Zyn.

How does one proceed? :(


Thanks in Advance,
muadib25

Post

Going into src/ and running 'make' (assuming no compile error) should produce the executable 'zynaddsubfx' in the same folder.
I would make sure that you have the dependencies installed (fltk 1.x, fftw 3.x, zlib, mxml, dev headers for some audio system).

If the makefile system is just not working, then I would try the cmake system, there are brief instructions on how to use it in doc/building.txt .
One of the developers on the ZynAddSubFX open source synth
The author of the Zyn-Fusion UI for ZynAddSubFX

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
Oops, I hadn't seen the 'doc/' dir, my bad.

Btw, Here's the output of 'make':

Code: Select all (#)

$ make
make -C UI all
make[1]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/UI'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/UI'
make subdirs
make[1]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src'
make -C DSP
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/DSP'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/DSP'
make -C Effects
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Effects'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Effects'
make -C Input
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Input'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Input'
make -C Misc
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Misc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Misc'
make -C Output
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Output'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Output'
make -C Params
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Params'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Params'
make -C Samples
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Samples'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Samples'
make -C Synth
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Synth'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Synth'
make -C Seq
make[2]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Seq'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src/Seq'
make[1]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src'
make objs
make[1]: Entering directory '/home/orpheus/ZynAddSubFX-2.4.1/src'
make[1]: Nothing to be done for 'objs'.
make[1]: Leaving directory '/home/orpheus/ZynAddSubFX-2.4.1/src'
rm -f zynaddsubfx zynaddsubfx.exe
rm -f Make.deps 
g++ -shared  -o zynaddsubfx.so */*.o *.o -lm  -lmxml -lz -lfftw3 -lpthread 
I can't seem to find any executable, unfortunately. 'ls' outputs this:

Code: Select all (#)

ls
CMakeLists.txt  Misc     Tests                   zynaddsubfx.nsi
DSP             Output   UI                      zynaddsubfx.so
Effects         Params   globals.h               zynaddsubfx_gcc.def
Input           Samples  launch_zynaddsubfx.bat  zynaddsubfx_icon.svg
Makefile        Seq      main.cpp
Makefile.inc    Synth    main.o
Is there anything I do wrong?

Post

> g++ -shared -o zynaddsubfx.so */*.o *.o -lm -lmxml -lz -lfftw3 -lpthread
Well, there is your problem.
It looks like your output is a dssi plugin (.so).
I would check through Makefile.inc and make sure that it is set to build the standalone and not the plugin.
One of the developers on the ZynAddSubFX open source synth
The author of the Zyn-Fusion UI for ZynAddSubFX

Post

Yes you are right! It compiled now!
And the instruments can also change! Thank you Fundamental! :D

Heading on to make some music!

Post Reply

Return to “ZynAddSubFX”