Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » ZynAddSubFX
Thread Read
How to compile from source on Linux/Gentoo
muadib25
KVRer
- profile
- pm
PostPosted: Fri Sep 03, 2010 3:20 am reply with quote
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? Sad


Thanks in Advance,
muadib25
^ Joined: 03 Sep 2010  Member: #238799  
fundamental
KVRist
- profile
- pm
PostPosted: Fri Sep 03, 2010 3:39 am reply with quote
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 .
----
ZynAddSubFX developer
^ Joined: 21 Oct 2008  Member: #191933  
muadib25
KVRer
- profile
- pm
PostPosted: Fri Sep 03, 2010 3:53 am reply with quote
Oops, I hadn't seen the 'doc/' dir, my bad.

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

$ 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:
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?
^ Joined: 03 Sep 2010  Member: #238799  
fundamental
KVRist
- profile
- pm
PostPosted: Fri Sep 03, 2010 8:51 am reply with quote
> 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.
----
ZynAddSubFX developer
^ Joined: 21 Oct 2008  Member: #191933  
muadib25
KVRer
- profile
- pm
PostPosted: Fri Sep 03, 2010 9:38 am reply with quote
Yes you are right! It compiled now!
And the instruments can also change! Thank you Fundamental! Very Happy

Heading on to make some music!
^ Joined: 03 Sep 2010  Member: #238799  
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012