Friday, 2014-08-15

*** falktx has quit IRC02:25
*** zth has joined #lv204:27
*** zth has quit IRC04:44
*** edogawa has joined #lv207:44
*** ddom has joined #lv208:24
*** ddom_ has joined #lv208:39
*** ddom has quit IRC08:43
*** edogawa_ has joined #lv209:27
*** edogawa has quit IRC09:30
*** edogawa_ is now known as edogawa10:08
*** HarryHaaren has joined #lv210:30
*** magnetophon has joined #lv210:58
*** triune has quit IRC11:10
*** triune has joined #lv211:18
*** HarryHaaren has quit IRC11:27
*** falktx has joined #lv212:38
*** ddom_ has quit IRC13:53
*** ssj72 has joined #lv214:07
ssj72falktx: I swear I have that. 1 sec I can show you the ttl and code14:08
falktxif you push to a git repo it would be even better14:08
ssj72http://sourceforge.net/p/infamousplugins/code/ci/gui/tree/src/Stuck/stuck.lv2/manifest.ttl14:09
ssj72http://sourceforge.net/p/infamousplugins/code/ci/gui/tree/src/Stuck/stuck_ui_main.cxx14:10
falktxyou're missing the 3rd point14:10
falktxyour plugin data needs this:14:10
falktxui:ui <http://infamousplugins.sourceforge.net/plugs.html#stuck_ui>;14:10
falktxsomething similar, don't know the exact syntax now14:10
ssj72in the ttl?14:10
falktxyes14:11
falktxstuck.ttl14:11
ssj72man... why do I stay up till 2 trying to figure something out, when I could just ask and find out in 5 minutes... :\14:12
ssj72thanks a lot though. lets see if I can get it14:12
falktxI never stay 2 hours banging on the same problem14:14
falktxafter a good night sleep I usually think of new ideas or things to try and solve the problem14:14
ssj72nobody ever should. I just get my mind set on something sometimes.14:15
falktxI never do a good job under stress14:17
ssj72alright well thats one hurdle passed. Now jalv says "failed to instantiate UI" carla doesn't load it either. I'm sure I've made some mistake with the xwindow thing14:19
falktxpush it up and I can take a look14:20
ssj72ok pushed14:21
ssj72if you want to pull and build it cd to src/stuck and do cmake; make; sudo make install14:24
ssj72the code in question is in stuck_ui_main.cxx linked above14:24
falktxI must be missing something. the code I cloned doesn't have ui14:28
falktxssj72: do I need the gui branch?14:29
ssj72yes14:29
falktxhmm FLTK_FLUID_EXECUTABLE-NOTFOUND14:30
falktxI though this used ntk14:30
ssj72yes which is a fork of fltk. Are you doing cmake in Stuck/ or in another directory?14:30
ssj72I'm still getting used to cmake14:31
falktxyou have "find_package(FLTK)"14:31
ssj72thats because it generates source from the .fl ui definition file14:33
ssj72I could just generate the source and add it14:34
ssj72do you have libfltk-dev installed?14:34
falktxthat should conflict with ntk-dev14:35
ssj72reall?14:35
ssj72*?really14:35
falktxyes, it's a fork14:35
falktxntk has ntk-fluid to generate the ui files14:35
falktxfltk-fluid and ntk-fluid might not be compatible, not sure...14:35
falktxI'll install fltk-dev for now, but you should add a custom command to generate those ui files using ntk-fluid14:36
ssj72hmm. I'm pretty sure zyn uses this same sort of thing in their cmake14:36
ssj72cause I copied it from there. :) I'll ask fundamental about it14:37
falktxfltk_wrap_ui ?14:37
falktxafaik you either need fltk or ntk, you shouldn't need both14:37
falktxssj72: you're missing units prefix on top of the plugin ttl14:40
ssj72zyn uses fltk_wrap_ui but perhaps I'm misunderstanding their implementation'14:42
ssj72hold on. I'll change it to not use that.14:42
falktxfind_package(FLTK) for sure needs to go14:43
falktxssj72: found an issue14:46
falktxif(strcmp(plugin_uri, STUCKUI_URI) != 0)14:46
falktxthe *plugin* URI is for sure not STUCKUI_URI :P14:46
ssj72oh14:51
ssj72I thought it would be the UI URI (obviously)14:51
ssj72I've just pushed a change to remove the fltk dependency14:51
falktx"const char * plugin_uri" didn't give it away?14:51
falktxI think the lv2 docs on that function explain what each var does14:51
ssj72probably, but I was mostly just copying from sorcer14:53
falktxit now crashes on fl_embed( self->ui,(Window)parentXwindow);14:53
falktxyou're calling free(self); on a "new" variable. that's bad14:55
falktxeither use malloc/free or use new/delete14:55
falktxcan't mix the 214:55
falktxusing "new" the returned value is always valid14:56
ssj72rats. I'm a C dev. it shows :)14:57
falktxthen use C stuff. malloc works fine in c++14:58
falktxor std::malloc14:58
falktxjust remember that malloc doesn't auto-run the class constructor14:58
falktxand free for the destructor14:59
falktxheh, of course it crashes, self->ui is never initialized15:01
falktxssj72: I think you need "self->ui = self->show();" or similar in the UI init func15:02
falktxI got the UI to show now, but since ntk is not beind "idled" it doesn't repaint properly15:02
ssj72thats further than I've gotten. its just segfaulting for me15:03
falktxssj72: how would you like if did the full lv2+ntk integration and in return you do the plugin in DPF ?15:03
ssj72I switched free to delete. new calls the constructor which should create all the children right?15:03
ssj72lol. maybe. I honestly don't get dpf at all15:04
falktxit's a c++ framework to do plugins. very simple stuff15:04
ssj72whereas I've actually done a few lv2 plugs so I have a clue whats going on15:04
ssj72how much C++ do I have to do? I much prefer C. Most everything I'm doing with this is in FLUID so the ++ is mostly hidden15:05
falktxthe framework works by subclassing the Plugin and UI class15:06
ssj72I need to read your LAC presentation about it15:07
falktx10min talk15:07
falktxssj72: the plugin class is here https://github.com/DISTRHO/DPF/blob/master/distrho/DistrhoPlugin.hpp15:07
falktxline 230 to be exact15:07
ssj72bookmarked for later. Don't think I'm trying to blow you off or anything, I've just got to get to work. I'll probably play around with this some more at lunch15:08
ssj72thanks a ton for all your help. We'll talk about what it will take to move to DPF15:09
falktxthe thing is that I see a *lot* of duplicated code here15:09
ssj72in the repo?15:09
falktxabout ntk and lv215:09
falktxthe plugin has to handle embedding, idle, resize etc15:09
falktx(I mean the UI)15:09
falktxsince I want zyn lv2+vst, I want dpf + ntk now :)15:10
ssj72I have quite a bit of customization though. So I've deliberately subclassed widgets. its all forked from harry's avtk15:10
falktxthat's fine15:11
ssj72:) once thats done I'll be a lot more keen on moving15:11
falktxDPF will simply create a main FL_Window where you'll put subwidgets inside15:11
falktxI was trying to get to harry so I had some comments on the API15:11
ssj72so in fluid I'd have to change it from a window to a general container widget or something?15:12
falktxdon't know yet15:13
falktxright now you have  a main window where you're adding widgets into, right?15:13
ssj72yes15:18
ssj72falktx: any guess what a reasonable timeline for ntk+dpf would be?15:29
ssj72I might be willing to wait15:29
falktxnext week perhaps15:29
ssj72I can wait until then15:29
falktxI'm working on a kinda security job now, in which I do some coding during slow times15:29
ssj72? job as in for wages?15:30
falktxyes, part-time15:30
ssj72thats good.15:30
falktxand it's only until next month. it's mostly because of all the turists visiting15:30
falktxthe city is full of french people :S15:30
ssj72lol. Hopefully its enough work to get you by for a while15:31
falktxyes, it helps a lot15:31
ssj72I'll bet15:31
ssj72well, I really do need to get to work. I'll be looking more at dpf at lunch.15:32
* falktx is still waiting on the LinuxFoundation sponsorship of LAC2014 trip...15:32
falktxI'll probably be online, so ask me anything15:32
ssj72cool seee you15:41
*** ssj72 has quit IRC15:41
*** mlpug has joined #lv217:41
*** falktx has quit IRC18:17
*** falktx has joined #lv219:49
*** mlpug has quit IRC19:56
*** zth has joined #lv221:59
*** zth has quit IRC22:22
*** ricardocrudo has quit IRC22:46
*** falktx has quit IRC22:54
*** falktx has joined #lv223:02

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!