*** tytel has quit IRC | 00:37 | |
*** tytel has joined #lv2 | 00:38 | |
*** tytel has joined #lv2 | 00:38 | |
*** Magnus_RM has joined #lv2 | 00:47 | |
*** tytel has quit IRC | 00:48 | |
*** ricardocrudo has quit IRC | 01:13 | |
*** o0o0o has joined #lv2 | 01:49 | |
*** aombk has joined #lv2 | 01:59 | |
*** aombk has quit IRC | 02:01 | |
*** Magnus_RM has quit IRC | 02:08 | |
*** aombk has joined #lv2 | 03:16 | |
*** drobilla has joined #lv2 | 03:56 | |
*** drobilla has quit IRC | 04:23 | |
*** artfwo has quit IRC | 06:41 | |
*** ventosus has joined #lv2 | 07:52 | |
*** edogawa has joined #lv2 | 08:07 | |
*** ricardocrudo has joined #lv2 | 08:21 | |
edogawa | rgareus: trying to build the new x42 plugins, i'm not sure how to resolve the fftw3 custom build thing | 09:47 |
---|---|---|
edogawa | the build service has no net access, so your static build via script and curl is no option | 09:48 |
edogawa | i guess branching and modifying the distro package will be easiest, do i need to link statically then, or just require my modified fftw3 package? | 09:50 |
* edogawa thought updating would be a matter of minutes, argh ;( | 09:51 | |
edogawa | i'm afk now though, back in a few hours | 09:56 |
edogawa | oh i see, i'll have to build and package static libs, hm | 10:00 |
*** Magnus_RM has joined #lv2 | 11:40 | |
*** ventosus has left #lv2 | 13:06 | |
*** gianMOD has joined #lv2 | 13:29 | |
*** falktx has joined #lv2 | 13:29 | |
*** NickSB2 has quit IRC | 13:35 | |
*** gianMOD has quit IRC | 13:47 | |
*** artfwo has joined #lv2 | 14:14 | |
*** edogawa_ has joined #lv2 | 14:25 | |
*** edogawa has quit IRC | 14:28 | |
*** edogawa_ is now known as edogawa | 14:28 | |
*** artfwo has quit IRC | 16:02 | |
*** gianMOD has joined #lv2 | 16:14 | |
*** artfwo has joined #lv2 | 16:19 | |
*** flexus has joined #lv2 | 16:19 | |
*** falktx has quit IRC | 16:37 | |
*** o0o0o has quit IRC | 16:46 | |
rgareus | edogawa: hop over to https://github.com/FFTW/fftw3/issues/16 and tell 'em to hurry up :) | 16:50 |
rgareus | edogawa: static builds are tricky there are a few details to do right. https://github.com/x42/meters.lv2/blob/master/static_fft.sh | 16:51 |
rgareus | -fvisibility=hidden is vital | 16:51 |
gianMOD | rgareus: why do you have linker flags (-Wl) in CFLAGS? | 16:58 |
gianMOD | when building fftw static it will only generate *.a files, which won't call the linker | 16:59 |
gianMOD | oh this is falktx typing btw ;) | 17:00 |
rgareus | gianMOD: because fftw configure is weird. | 17:10 |
rgareus | without those options, the statically linked plugin would use the planner cache system-wide libfftw anyway. | 17:15 |
rgareus | ^^^ ...the planner cache *OF THE* system-wide libfftw... | 17:16 |
rgareus | glib has a similar issue, some parts have a __attribute__ ((visibility ("default")) or __declspec(dllexport) which overrides -fvisibility=hidden | 17:19 |
gianMOD | I'd agree if it was in LDFLAGS | 17:25 |
gianMOD | but those CFLAGS do nothing regarding includes or defines in the compiler afaik | 17:25 |
gianMOD | *that CFLAG | 17:25 |
rgareus | LDFLAGS is not used as no linking is done. | 17:25 |
gianMOD | so how does that flag change anything? | 17:26 |
rgareus | no idea why it makes a different, it really should not. but it does | 17:26 |
rgareus | I hazard a guess that the object files in fftw.a do actually include some linked code. | 17:27 |
gianMOD | I don't think that's possible | 17:27 |
rgareus | some asm code maybe. | 17:27 |
gianMOD | but are those flags passed into the code? and how? | 17:28 |
rgareus | I wanted to find out why at some point. but the fftw build output weights about half a ton. | 17:28 |
gianMOD | will it add some new macro? | 17:28 |
rgareus | gianMOD: that is a good guess, indeed. | 17:29 |
rgareus | gianMOD: it could actually be configure that makes the difference in that case | 17:29 |
gianMOD | in any case, I think that flag only matters if libfftw3-dev is installed | 17:30 |
gianMOD | right? | 17:30 |
rgareus | the system I tested it on indeed has libfftw3-dev installed. | 17:30 |
gianMOD | on my plugin builds I only have fftw3-static package (via ppas) | 17:30 |
* gianMOD should add some build-conflicts to make sure | 17:31 | |
rgareus | the actual build-host has not, but I didn't test/debug it there | 17:31 |
*** ventosus has joined #lv2 | 17:32 | |
rgareus | actually the problem is rather small these days. it was only really calf (doing plans in run()). proper plugins use the worker thread (which in most hosts is single-threaded) or the GUI thread (also single threaded) | 17:37 |
rgareus | so the only problem is LV2 worker + GUI concurrency | 17:37 |
rgareus | and old LADSPA plugins. | 17:37 |
gianMOD | UIs should be run in separate processes | 17:45 |
gianMOD | lv2 allows it, I wish more hosts took advantage of it | 17:45 |
gianMOD | you can still do embed with an out-of-process UI | 17:45 |
gianMOD | on X11 that is | 17:45 |
rgareus | nope. there are perfectly valid use cases for instance access | 17:49 |
rgareus | in any case the host itself may also use fftw (in its GUI) | 17:49 |
*** falktx has joined #lv2 | 17:50 | |
gianMOD | there are perfectly valid use cases for out-of-process UIs too :) | 17:50 |
rgareus | ardour for example does use fftw for both plugin analysis or region/range spectral analysis | 17:50 |
gianMOD | bbl | 17:50 |
rgareus | right, if the plugin does not use instance access. the GUI can run anywhere. | 17:50 |
rgareus | LV2 GUI at least (not so much AU or VST) | 17:51 |
rgareus | different question; which LV2 hosts do support LV2UI_Show_Interface ? | 17:54 |
*** gianMOD has quit IRC | 17:55 | |
rgareus | edogawa: just package as you did the last version. | 17:56 |
rgareus | edogawa: so far the only distro that accepts static lib builds is KXStudio. | 17:58 |
*** NickSB2 has joined #lv2 | 18:11 | |
*** yann-kaelig has quit IRC | 18:43 | |
*** flexus has quit IRC | 19:14 | |
edogawa | rgareus: i see... struggling with getting the configure options right, this whole afternoon, i think i give up and see what the actual error was (it didn't succeed in building the rpm for some reason, i may haver been led astray by the fftw3 messages) | 19:33 |
edogawa | g++: error: /usr/lib64/libfftw3f.a: No such file or directory | 19:35 |
edogawa | the distro package doesn't provide static libs, that's why i started the fftw3 branch, how the heck did the previous version link correctly? | 19:36 |
edogawa | [ 95s] g++ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I. `pkg-config --cflags glu` -DHAVE_IDLE_IFACE `pkg-config --cflags cairo pango` `pkg-config --cflags fftw3f` -fmessage-length=0 -grecord-gcc-switches -O2 - | 19:37 |
edogawa | Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DHAVE_LV2_1_8 -fPIC -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG -DVERSION="\"0.4.0\"" `pkg-config --cflags lv2` \ | 19:37 |
edogawa | [ 95s] -DUINQHACK="14330807892703" \ | 19:37 |
edogawa | [ 95s] -DPLUGIN_SOURCE="\"gui/fil4.c\"" \ | 19:37 |
edogawa | [ 95s] -o build/fil4UI_gl.so ../robtk/ui_gl.c \ | 19:37 |
edogawa | [ 95s] ../robtk/pugl/pugl_x11.c \ | 19:37 |
edogawa | [ 95s] \ | 19:37 |
edogawa | [ 95s] -shared -Wl,-Bstatic -Wl,-Bdynamic -Wl,--as-needed -lX11 `pkg-config --libs cairo pango pangocairo glu gl` `pkg-config --variable=libdir fftw3f`/libfftw3f.a | 19:37 |
edogawa | (sry for paste) | 19:37 |
edogawa | whole buildlog here https://build.opensuse.org/build/home:edogawa/openSUSE_13.2/x86_64/x42-plugins/_log | 19:43 |
*** ventosus has left #lv2 | 19:44 | |
rgareus | edogawa: try make FFTW_LIBS="-lfftw3f" | 19:52 |
rgareus | though it should no be needed | 19:53 |
rgareus | FFTW_LIBS=`pkg-config --variable=libdir fftw3f`/libfftw3f.a | 19:53 |
rgareus | ifeq ($(shell test -f $(FFTWA) || echo no), no) | 19:53 |
rgareus | FFTW_LIBS=`pkg-config --libs fftw3f` | 19:53 |
rgareus | endif | 19:53 |
rgareus | first thing: check if `pkg-config --variable=libdir fftw3f`/libfftw3f.a exists. if not, use pkg-config --libs fftw3f | 19:54 |
rgareus | aa crap. typo in the makefile it should be test -f $(FFTW_LIBS) | 19:55 |
rgareus | edogawa: only fil4.lv2's Makefile is affected | 19:57 |
edogawa | rgareus: doesn't exist, i read the fftw3.spec and it erases %_libdir/*.*a in %install | 19:57 |
edogawa | rgareus: thanks | 19:58 |
edogawa | rgareus: so how to proceed, do you roll another tarball? | 19:59 |
rgareus | edogawa: I'll do that | 19:59 |
edogawa | cool | 19:59 |
rgareus | edogawa: the fix will be http://pastebin.com/Xy2phHi6 | 20:00 |
rgareus | edogawa: can you try easily if that fixes the issue? | 20:01 |
rgareus | since FFTWA is unset the test should fail | 20:02 |
edogawa | rgareus: yeah, i upload the tarball, change the version string in spec and wait for the build to fail or succeed | 20:02 |
edogawa | ah a patch | 20:02 |
edogawa | sry i'm distraced a bit | 20:02 |
edogawa | distracted | 20:03 |
edogawa | adding a patch is a bit more involved, but not too much | 20:03 |
edogawa | pfft, wouldn't sed be quicker, inlined in the rpm spec %prep section | 20:04 |
rgareus | edogawa: that patch applied to fil4's makefile | 20:05 |
edogawa | rgareus: i'm on it, gimme say 20 mins | 20:06 |
edogawa | quicker, even - you cn watch the build live https://build.opensuse.org/package/live_build_log/home:edogawa/x42-plugins/openSUSE_13.2/x86_64 | 20:10 |
rgareus | 42-plugins-FFTW3.diff: No such file or directory | 20:13 |
edogawa | i'm sloppy, sorry | 20:14 |
edogawa | ah, stupid typo in patch filename | 20:15 |
edogawa | in a minute or 2 just refresh the link | 20:15 |
rgareus | n/p | 20:16 |
rgareus | edogawa: it'll also not apply to x42-plugins as is (fil4 subdir is missing) | 20:16 |
edogawa | it builds again, no big workload | 20:16 |
edogawa | rgareus: i changed makefile manually and used the rpm gendiff script | 20:17 |
rgareus | edogawa: does it build locally? | 20:17 |
edogawa | that's quick and easy, recursive and generates a unified diff | 20:17 |
edogawa | rgareus: didn't try yet ;) | 20:18 |
edogawa | rgareus: success | 20:19 |
edogawa | https://build.opensuse.org/package/show/home:edogawa/x42-plugins | 20:20 |
rgareus | edogawa: thanks. I'll apply that patch and roll a new release | 20:20 |
edogawa | rgareus: cool | 20:20 |
rgareus | edogawa: the package description is somewhat out of date | 20:22 |
rgareus | " collection of LV2 plugins, and currently consists of" 3 plugins are missing | 20:22 |
rgareus | edogawa: there's a list in the x42-plugins tar ball | 20:25 |
rgareus | edogawa: instead of the two freefont patches you could simply change the spec file | 20:29 |
rgareus | edogawa: call make FONTFILE=/usr/share/fonts/gnu-free/FreeSansBold.ttf | 20:29 |
rgareus | in line 77 and 81 of x42-plugins.spec | 20:30 |
*** falktx has quit IRC | 20:31 | |
*** gianMOD has joined #lv2 | 20:37 | |
edogawa | rgareus: oh thanks again, i'll do all that (actually i updated description both in project and spec today but seems i still missed these three, sorry and i'll check that list) | 20:37 |
rgareus | the file is called plugin.list | 20:45 |
rgareus | it also includes robtk (you can ignore that) | 20:45 |
edogawa | rgareus: hm i didn't find missing plugins but anyway i reordered them alphabetically now (and don't mention robtk) robtk | 20:48 |
rgareus | edogawa: http://rg42.org/misc/x42-plugins/x42-plugins-20150531.tar.xz is out (with the makefile fix) | 20:49 |
edogawa | rgareus: heh :) | 20:50 |
rgareus | edogawa: there should be 11 plugins | 20:50 |
rgareus | aah there are now. | 20:50 |
edogawa | i had 12 lines before, xfade was listed twice | 20:51 |
edogawa | maybe project description on that OBS page was out of sync, it's a separate thing | 20:51 |
rgareus | edogawa: looks like it. fil4 was not listed. now it is. | 20:52 |
rgareus | anyway that build is fine. all that 20150531 changes is adding x42-plugins.FFTW3.diff | 20:52 |
rgareus | and well, that build uses libfftw3f.so as provided by the distro. so it's not 100% safe. | 20:53 |
rgareus | debian does the same though. | 20:53 |
rgareus | hacking around this (special static builds) is not something *generic* distros should really do. hopefully fftw will fix it upstream soonish. | 20:55 |
edogawa | ok, understood | 20:55 |
rgareus | falktx does work around this, but KXStudio is not a generic distro. | 20:55 |
rgareus | I don't know what policy opensuse has. | 20:57 |
edogawa | me neither, i just remember the SYSLIBS=0 discussion for the ardour2 rpm, they just refused to do that | 21:01 |
edogawa | waste of bandwidth, manpower and diskspace, and possibly insecure, were the arguments iirc | 21:02 |
*** gianMOD has quit IRC | 21:08 | |
*** edogawa has quit IRC | 22:19 | |
*** ricardocrudo has quit IRC | 22:58 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!