synthv1 build error

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
vim
Established Member
Posts: 4
Joined: Wed Jan 25, 2017 7:43 am

synthv1 build error

Post by vim »

When I try to build the program I get this error:

Code: Select all

make[1]: Entering directory '/home/x000ff4/Свалени/synthv1-0.8.0'
cd src/ && ( test -e Makefile.src_core || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/x000ff4/Свалени/synthv1-0.8.0/src/src_core.pro -o Makefile.src_core ) && make -f Makefile.src_core 
make[2]: Entering directory '/home/x000ff4/Свалени/synthv1-0.8.0/src'
make[2]: Nothing to be done for 'first'.
make[2]: Leaving directory '/home/x000ff4/Свалени/synthv1-0.8.0/src'
make[1]: Leaving directory '/home/x000ff4/Свалени/synthv1-0.8.0'
make[1]: Entering directory '/home/x000ff4/Свалени/synthv1-0.8.0'
cd src/ && ( test -e Makefile.src_jack || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/x000ff4/Свалени/synthv1-0.8.0/src/src_jack.pro -o Makefile.src_jack ) && make -f Makefile.src_jack 
make[2]: Entering directory '/home/x000ff4/Свалени/synthv1-0.8.0/src'
g++ -c -m64 -pipe -ffast-math -I/usr/include/alsa -I/usr/local/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc_jack -I.ui_jack -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o .obj_jack/synthv1_jack.o synthv1_jack.cpp
synthv1_jack.cpp: In member function ‘int synthv1_jack::process(jack_nframes_t)’:
synthv1_jack.cpp:226:63: error: too few arguments to function ‘jack_nframes_t jack_midi_get_event_count(void*, jack_nframes_t)’
   const uint32_t nevents = ::jack_midi_get_event_count(midi_in);
                                                               ^
In file included from synthv1_jack.cpp:29:0:
/usr/local/include/jack/midiport.h:52:1: note: declared here
 jack_midi_get_event_count(void*          port_buffer,
 ^
synthv1_jack.cpp:229:44: error: too few arguments to function ‘int jack_midi_event_get(jack_midi_event_t*, void*, jack_nframes_t, jack_nframes_t)’
    ::jack_midi_event_get(&event, midi_in, n);
                                            ^
In file included from synthv1_jack.cpp:29:0:
/usr/local/include/jack/midiport.h:69:1: note: declared here
 jack_midi_event_get(jack_midi_event_t *event,
 ^
Makefile.src_jack:523: recipe for target '.obj_jack/synthv1_jack.o' failed
make[2]: *** [.obj_jack/synthv1_jack.o] Error 1
make[2]: Leaving directory '/home/x000ff4/Свалени/synthv1-0.8.0/src'
synthv1_jack.mak:42: recipe for target 'sub-src-src_jack-pro-make_first' failed
make[1]: *** [sub-src-src_jack-pro-make_first] Error 2
make[1]: Leaving directory '/home/x000ff4/Свалени/synthv1-0.8.0'
Makefile:115: recipe for target 'jack' failed
make: *** [jack] Error 2
User avatar
rncbc
Established Member
Posts: 1068
Joined: Mon Apr 19, 2010 12:20 pm
Has thanked: 45 times
Been thanked: 269 times
Contact:

Re: synthv1 build error

Post by rncbc »

are you sure you have the right JACK development headers and libraries installed ?

i suspect the files you have under /usr/local/include/jack are either on an alternative reality or are way too old to make any sense :)

byee
Martin Tarenskeen
Established Member
Posts: 7
Joined: Sun Apr 13, 2008 2:28 pm

Re: synthv1 build error

Post by Martin Tarenskeen »

Hi,

I was having the same (or similar) compiling problems trying to compile synthv1, samplv1, and drumkv1 on my Linux Fedora system.
Same problem still existed on version 0.8.1, 0.8.2, and 0.8.3

I don't know exactly where the error is, but I managed to compile succesfully this strange way:

(After unpacking the source archive and going into the source directory. The configure options I use may be different for your system)

Code: Select all

./configure --prefix=/usr --libdir=/usr/lib64
make lv2
sudo make install lv2
make
make install
In other words: first make and install the lv2 target and after that compilation might be succesful.
Don't ask me why, it's still an error in the synthv1 source and build files somewhere that needs some kind of fixing.

I'm glad this works for me. But can anyone explain to me why?
User avatar
rncbc
Established Member
Posts: 1068
Joined: Mon Apr 19, 2010 12:20 pm
Has thanked: 45 times
Been thanked: 269 times
Contact:

Re: synthv1 build error

Post by rncbc »

@Martin Tarenskeen et al.

first of before you start ANY rebuild you shall have a clean and lean source tree:

Code: Select all

./autogen.sh clean  # clean slate
./autogen.sh        # new 'configure' script
then building from source should always go as usual:

Code: Select all

./configure --prefix=/usr
make
sudo make install
if for some reason it fails, i'd recommend for you to remove and purge ANY previous installation be that from source or binary distro-packaging.

especially, look after any pre-existing/installed "libsynthv1.so.*", the core engine shared object, which is common to both lv2 plugin and jack forms, wherever you might find it, then remove or uninstall it, using:

Code: Select all

find /usr -name "libsynthv1.so*" -ls   # -delete maybe?
for instance, and only after then you may retry the above build and install procedure as usual--the same applies to all recent vee-ones ie. also to samplv1 and drumkv1.

hth.
cheers
Martin Tarenskeen
Established Member
Posts: 7
Joined: Sun Apr 13, 2008 2:28 pm

Re: synthv1 build error

Post by Martin Tarenskeen »

Thanks,

Seems to work and is better than the workaround that I suggested.
Post Reply