grame-cncm / faustlive

Advanced self-contained prototyping environment for the Faust programming language
Other
80 stars 18 forks source link

build on ubuntu 18 / jack version #23

Closed misterinterrupt closed 5 years ago

misterinterrupt commented 5 years ago

Hi there, just getting into FAUST in general so I am trying to use faustlive, thanks for your awesome work!

I recently tried to build faustlive using the Makefile in the Build dir on Ubuntu 18.04.2 LTS. I ran into a few problems and looking for some guidance on what version of jack it relies on and maybe if you know, which packages to use for said versions, but any help is appreciated.

This is the error I got:

/usr/local/include/faust/midi/jack-midi.h:86:17: error: ‘jack_midi_reset_buffer’ was not declared in this scope
                 jack_midi_reset_buffer(port_buf_out);
                 ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/faust/midi/jack-midi.h:86:17: note: suggested alternative: ‘jack_midi_clear_buffer’
                 jack_midi_reset_buffer(port_buf_out);
                 ^~~~~~~~~~~~~~~~~~~~~~
                 jack_midi_clear_buffer

I also see this at the start of the compilation..

~/PROJECTS/faustlive/Build$ make
make unix
make[1]: Entering directory '/home/interrupt/PROJECTS/faustlive/Build'
mkdir fldir
cd fldir && qmake .. FAUST=faust  QMAKE_CFLAGS_ISYSTEM=-I
Info: creating stash file /home/interrupt/PROJECTS/faustlive/Build/fldir/.qmake.stash
Project MESSAGE: Using Faust libs from /usr/local/lib
Project MESSAGE: Using Faust incl from /usr/local/include
Project MESSAGE: Generates FaustLive version 2.5.2
Project MESSAGE: Uses dynamic link for Faust libs
Project MESSAGE: Jack included
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/all.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/analyzers.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/basics.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/compressors.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/delays.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/demos.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/dx7.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/envelopes.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/filters.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/hoa.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/instruments.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/maths.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/maxmsp.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/mi.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/misceffects.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/noises.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/oscillators.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/phaflangers.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/physmodels.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/reducemaps.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/reverbs.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/routes.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/sf.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/signals.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/soundfiles.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/spats.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/stdfaust.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/synths.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/tonestacks.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/tubes.lib'
RCC: Error in '../../Resources/application.qrc': Cannot find file 'Libs/vaeffects.lib'
make -C fldir -j 4
make[2]: Entering directory       >>> ...compilation continues until Jack errors above

idk what it means, maybe QT related I've got QT5 installed, I believe.

sletz commented 5 years ago
misterinterrupt commented 5 years ago

Thanks @sletz! looks like the packages available are on major version 3 at this point. is there an alternative to using Jack? I'll install from one of these https://pkgs.org/download/libjack-dev

misterinterrupt commented 5 years ago

I got another failure, any thoughts on what this might be? ((If there is a better place for build questions, please let me know and I will move my queries there))

g++ -Wl,-O1 -o ../FaustLive/FaustLive tmp/main.o tmp/utilities.o tmp/AudioCreator.o tmp/AudioFader_Implementation.o tmp/FLErrorWindow.o tmp/FLExportManager.o tmp/FLHelpWindow.o tmp/FLMessageWindow.o tmp/FLPreferenceWindow.o tmp/FLPresentationWindow.o tmp/FLRemoteDSPScanner.o tmp/FLStatusBar.o tmp/FLToolBar.o tmp/SimpleParser.o tmp/FLApp.o tmp/FLComponentItem.o tmp/FLComponentWindow.o tmp/FLFileWatcher.o tmp/FLInterfaceManager.o tmp/FLSessionManager.o tmp/FLSettings.o tmp/FLWindow.o tmp/FLWinSettings.o tmp/FLServerHttp.o tmp/HTTPWindow.o tmp/JA_audioFactory.o tmp/JA_audioFader.o tmp/JA_audioManager.o tmp/JA_audioSettings.o tmp/qrc_application.o tmp/qrc_styles.o tmp/moc_AudioCreator.o tmp/moc_AudioManager.o tmp/moc_AudioSettings.o tmp/moc_FLErrorWindow.o tmp/moc_FLExportManager.o tmp/moc_FLHelpWindow.o tmp/moc_FLMessageWindow.o tmp/moc_FLPreferenceWindow.o tmp/moc_FLPresentationWindow.o tmp/moc_FLRemoteDSPScanner.o tmp/moc_FLStatusBar.o tmp/moc_FLToolBar.o tmp/moc_FLApp.o tmp/moc_FLComponentItem.o tmp/moc_FLComponentLabel.o tmp/moc_FLComponentWindow.o tmp/moc_FLFileWatcher.o tmp/moc_FLSessionManager.o tmp/moc_FLSettings.o tmp/moc_FLWindow.o tmp/moc_FLWinSettings.o tmp/moc_FLServerHttp.o tmp/moc_HTTPWindow.o tmp/moc_QTUI.o tmp/moc_JA_audioManager.o   -L/usr/local/lib -L/usr/lib/llvm-6.0/lib -lLLVM-6.0 -lmicrohttpd -lsndfile -lcurl -lz -ldl -lHTTPDFaust -lOSCFaust -lfaust -Wl,-rpath,/usr/local/lib -lasound -ltinfo -ljack -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lHTTPDFaust
/usr/bin/ld: cannot find -lfaust
collect2: error: ld returned 1 exit status
Makefile:311: recipe for target '../FaustLive/FaustLive' failed
make[2]: *** [../FaustLive/FaustLive] Error 1
make[2]: Leaving directory '/home/interrupt/PROJECTS/faustlive/Build/fldir'
Makefile:37: recipe for target 'unix' failed
make[1]: *** [unix] Error 2
make[1]: Leaving directory '/home/interrupt/PROJECTS/faustlive/Build'
Makefile:30: recipe for target 'all' failed
make: *** [all] Error 2

I believe I have libmicrohttpd installed..

 (master)interrupt@operation:~/PROJECTS/faustlive/Build$ which microhttpd
 (master)interrupt@operation:~/PROJECTS/faustlive/Build$ sudo apt install libmicrohttpd-dev -V
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libmicrohttpd-dev is already the newest version (0.9.59-1).
misterinterrupt commented 5 years ago

oh, looks like it comes from faust

misterinterrupt commented 5 years ago

thanks again for the help, @sletz! Now I have faust installed and faustlive up and running, whoop!

max22- commented 4 years ago

hi @misterinterrupt, i have the same problem : /usr/bin/ld: cannot find -lHTTPDFaust /usr/bin/ld: cannot find -lfaust

How did you solve it ?

max22- commented 4 years ago

hi @misterinterrupt, i have the same problem : /usr/bin/ld: cannot find -lHTTPDFaust /usr/bin/ld: cannot find -lfaust

How did you solve it ?

max22- commented 4 years ago

hi @misterinterrupt, i have the same problem : /usr/bin/ld: cannot find -lHTTPDFaust /usr/bin/ld: cannot find -lfaust

How did you solve it ?

misterinterrupt commented 4 years ago

actually I found info pointing toward FaustLive no longer being the preferred rapid prototyping platform. the web editor is now a super fast, flexible, and easy way to do even more of what FaustLive does. if thats what you are looking for, then check that out. when i was doing a lot of my faust coding, there were 2 versions: /editor and /experimental. really rad prototyping platform, lots of awesome work was poured into it.

sletz commented 4 years ago

You can now use the lastest Web IDE at https://faustide.grame.fr/ The older simpler version has been updated at https://fausteditor.grame.fr/

max22- commented 4 years ago

Ok, thanks for your replies, I will check it out !