kmatheussen / radium

A graphical music editor. A next generation tracker.
http://users.notam02.no/~kjetism/radium/
GNU General Public License v2.0
842 stars 36 forks source link

Building errors due to faust library package in Ubuntu 20.04 #1289

Open GeorgeNs opened 4 years ago

GeorgeNs commented 4 years ago

Hi guys, long time no see :) after upgrading my ubuntu distro i tried to build the latest version of radium and i get the error:

/usr/bin/ranlib ../lib/libfaust.a make[5]: Leaving directory '/home/george/audio_support_pkgs/radium-6.3.82/bin/packages/faust/build/faustdir' [ 94%] Built target staticlib make[4]: Leaving directory '/home/george/audio_support_pkgs/radium-6.3.82/bin/packages/faust/build/faustdir' make[3]: [Makefile:152: all] Error 2 make[3]: Leaving directory '/home/george/audio_support_pkgs/radium-6.3.82/bin/packages/faust/build/faustdir' make[2]: [Makefile:78: all] Error 2 make[2]: Leaving directory '/home/george/audio_support_pkgs/radium-6.3.82/bin/packages/faust/build' make[1]: [Makefile:31: most] Error 2 make[1]: Leaving directory '/home/george/audio_support_pkgs/radium-6.3.82/bin/packages/faust' make: [Makefile:742: bin/packages/deletemetorebuild] Error 2

I have tried different llvm, clang and gcc versions (7,8,9,10) without any luck! Usually in the past I could solve similar issues by downgrading llvm/clang versions but this time what I have tried didn't work. It would be helpful if you could mention the recommended llvm, clang,gcc versions. Thanks a lot!

PS: just to mention that i have built faust library and faustlive from source succesfully

Teteros commented 4 years ago

What command are you using, something like RADIUM_QT_VERSION=5 RADIUM_BUILD_LIBXCB=0 make packages ?

For reference the AUR PKGBUILD I maintain at time of writing builds on: gcc 10.2.0, clang/llvm 10.0.1

GeorgeNs commented 4 years ago

I tried your suggestion,isn't working for me. ;( Latest try i used gcc 9.3 and llvm/clang 10

Teteros commented 4 years ago

you could try using clang via RADIUM_USE_CLANG=1 flag? Normally it's only using gcc which I guess doesn't work on your particular environment for some reason.

GeorgeNs commented 4 years ago

I tried clang without success. giving me the same error always at the 94% built target staticlib. By the way the version that compiles and runs successfully is the radium-5.9.99 version. I don't think there is something missing from my environment,i have all the latest packages and links/paths are working. I can;t figure out what particular thing changed between versions 5.9.99 and 6.0 to give me this error. Many thanks

Teteros commented 4 years ago

It seems to be some kind of linker error, you can confirm this if you comment out INCLUDE_FAUSTDEV in build_linux_common.sh#L43: https://github.com/kmatheussen/radium/blob/86287496c505710c9bffb76cc6e9460732269c14/build_linux_common.sh#L43 then the faustdev instuments wouldn't work but at least compile will succeed.

If you need them, you could try what Kjetil suggested back in https://github.com/kmatheussen/radium/issues/1126#issuecomment-400583446 which would be to use a newer FAUST build from source and pass that through to WHICHFAUST in Makefile.Qt so their compile goes through.

GeorgeNs commented 4 years ago

Hi!Thanks for that idea. I removed faust from build_linux_common.sh file and changed Makefile but some other complications appeared later on about paths etc. so i would have to change them one by one... So, i did the following: I removed faust from build.sh in bin/packages and I just copied the compiled faust folder from my system to the radium directory Everything works now, or currently, with the latest faust version Do you think is that the right way or I have messed things even worse..although it compiles and run?

GeorgeNs commented 4 years ago

Hi again! Although the upper solution works I have discovered that commenting out the new added line patch -p1 <../faust_HTTPDServer.patch in build.sh file builds everything as expected in ubuntu 20.04 I don't know why, you are the experts ,so I guess you can figure out

PS. I have noticed three things: In both cases I built, the GUI gate of any faust plugin won't work. And entering a value to GUI is impossible too. is that normal? Also the auditioning sound level when entering a note is double than when playing back

And a last strange thing: I can't move the objects by pressing ctrl key like before -right click with mouse works

kmatheussen commented 3 years ago

The faust package have been updated since then. Does it work now?