*** falktx has quit IRC | 02:25 | |
*** zth has joined #lv2 | 04:27 | |
*** zth has quit IRC | 04:44 | |
*** edogawa has joined #lv2 | 07:44 | |
*** ddom has joined #lv2 | 08:24 | |
*** ddom_ has joined #lv2 | 08:39 | |
*** ddom has quit IRC | 08:43 | |
*** edogawa_ has joined #lv2 | 09:27 | |
*** edogawa has quit IRC | 09:30 | |
*** edogawa_ is now known as edogawa | 10:08 | |
*** HarryHaaren has joined #lv2 | 10:30 | |
*** magnetophon has joined #lv2 | 10:58 | |
*** triune has quit IRC | 11:10 | |
*** triune has joined #lv2 | 11:18 | |
*** HarryHaaren has quit IRC | 11:27 | |
*** falktx has joined #lv2 | 12:38 | |
*** ddom_ has quit IRC | 13:53 | |
*** ssj72 has joined #lv2 | 14:07 | |
ssj72 | falktx: I swear I have that. 1 sec I can show you the ttl and code | 14:08 |
---|---|---|
falktx | if you push to a git repo it would be even better | 14:08 |
ssj72 | http://sourceforge.net/p/infamousplugins/code/ci/gui/tree/src/Stuck/stuck.lv2/manifest.ttl | 14:09 |
ssj72 | http://sourceforge.net/p/infamousplugins/code/ci/gui/tree/src/Stuck/stuck_ui_main.cxx | 14:10 |
falktx | you're missing the 3rd point | 14:10 |
falktx | your plugin data needs this: | 14:10 |
falktx | ui:ui <http://infamousplugins.sourceforge.net/plugs.html#stuck_ui>; | 14:10 |
falktx | something similar, don't know the exact syntax now | 14:10 |
ssj72 | in the ttl? | 14:10 |
falktx | yes | 14:11 |
falktx | stuck.ttl | 14:11 |
ssj72 | man... 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 |
ssj72 | thanks a lot though. lets see if I can get it | 14:12 |
falktx | I never stay 2 hours banging on the same problem | 14:14 |
falktx | after a good night sleep I usually think of new ideas or things to try and solve the problem | 14:14 |
ssj72 | nobody ever should. I just get my mind set on something sometimes. | 14:15 |
falktx | I never do a good job under stress | 14:17 |
ssj72 | alright 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 thing | 14:19 |
falktx | push it up and I can take a look | 14:20 |
ssj72 | ok pushed | 14:21 |
ssj72 | if you want to pull and build it cd to src/stuck and do cmake; make; sudo make install | 14:24 |
ssj72 | the code in question is in stuck_ui_main.cxx linked above | 14:24 |
falktx | I must be missing something. the code I cloned doesn't have ui | 14:28 |
falktx | ssj72: do I need the gui branch? | 14:29 |
ssj72 | yes | 14:29 |
falktx | hmm FLTK_FLUID_EXECUTABLE-NOTFOUND | 14:30 |
falktx | I though this used ntk | 14:30 |
ssj72 | yes which is a fork of fltk. Are you doing cmake in Stuck/ or in another directory? | 14:30 |
ssj72 | I'm still getting used to cmake | 14:31 |
falktx | you have "find_package(FLTK)" | 14:31 |
ssj72 | thats because it generates source from the .fl ui definition file | 14:33 |
ssj72 | I could just generate the source and add it | 14:34 |
ssj72 | do you have libfltk-dev installed? | 14:34 |
falktx | that should conflict with ntk-dev | 14:35 |
ssj72 | reall? | 14:35 |
ssj72 | *?really | 14:35 |
falktx | yes, it's a fork | 14:35 |
falktx | ntk has ntk-fluid to generate the ui files | 14:35 |
falktx | fltk-fluid and ntk-fluid might not be compatible, not sure... | 14:35 |
falktx | I'll install fltk-dev for now, but you should add a custom command to generate those ui files using ntk-fluid | 14:36 |
ssj72 | hmm. I'm pretty sure zyn uses this same sort of thing in their cmake | 14:36 |
ssj72 | cause I copied it from there. :) I'll ask fundamental about it | 14:37 |
falktx | fltk_wrap_ui ? | 14:37 |
falktx | afaik you either need fltk or ntk, you shouldn't need both | 14:37 |
falktx | ssj72: you're missing units prefix on top of the plugin ttl | 14:40 |
ssj72 | zyn uses fltk_wrap_ui but perhaps I'm misunderstanding their implementation' | 14:42 |
ssj72 | hold on. I'll change it to not use that. | 14:42 |
falktx | find_package(FLTK) for sure needs to go | 14:43 |
falktx | ssj72: found an issue | 14:46 |
falktx | if(strcmp(plugin_uri, STUCKUI_URI) != 0) | 14:46 |
falktx | the *plugin* URI is for sure not STUCKUI_URI :P | 14:46 |
ssj72 | oh | 14:51 |
ssj72 | I thought it would be the UI URI (obviously) | 14:51 |
ssj72 | I've just pushed a change to remove the fltk dependency | 14:51 |
falktx | "const char * plugin_uri" didn't give it away? | 14:51 |
falktx | I think the lv2 docs on that function explain what each var does | 14:51 |
ssj72 | probably, but I was mostly just copying from sorcer | 14:53 |
falktx | it now crashes on fl_embed( self->ui,(Window)parentXwindow); | 14:53 |
falktx | you're calling free(self); on a "new" variable. that's bad | 14:55 |
falktx | either use malloc/free or use new/delete | 14:55 |
falktx | can't mix the 2 | 14:55 |
falktx | using "new" the returned value is always valid | 14:56 |
ssj72 | rats. I'm a C dev. it shows :) | 14:57 |
falktx | then use C stuff. malloc works fine in c++ | 14:58 |
falktx | or std::malloc | 14:58 |
falktx | just remember that malloc doesn't auto-run the class constructor | 14:58 |
falktx | and free for the destructor | 14:59 |
falktx | heh, of course it crashes, self->ui is never initialized | 15:01 |
falktx | ssj72: I think you need "self->ui = self->show();" or similar in the UI init func | 15:02 |
falktx | I got the UI to show now, but since ntk is not beind "idled" it doesn't repaint properly | 15:02 |
ssj72 | thats further than I've gotten. its just segfaulting for me | 15:03 |
falktx | ssj72: how would you like if did the full lv2+ntk integration and in return you do the plugin in DPF ? | 15:03 |
ssj72 | I switched free to delete. new calls the constructor which should create all the children right? | 15:03 |
ssj72 | lol. maybe. I honestly don't get dpf at all | 15:04 |
falktx | it's a c++ framework to do plugins. very simple stuff | 15:04 |
ssj72 | whereas I've actually done a few lv2 plugs so I have a clue whats going on | 15:04 |
ssj72 | how 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 hidden | 15:05 |
falktx | the framework works by subclassing the Plugin and UI class | 15:06 |
ssj72 | I need to read your LAC presentation about it | 15:07 |
falktx | 10min talk | 15:07 |
falktx | ssj72: the plugin class is here https://github.com/DISTRHO/DPF/blob/master/distrho/DistrhoPlugin.hpp | 15:07 |
falktx | line 230 to be exact | 15:07 |
ssj72 | bookmarked 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 lunch | 15:08 |
ssj72 | thanks a ton for all your help. We'll talk about what it will take to move to DPF | 15:09 |
falktx | the thing is that I see a *lot* of duplicated code here | 15:09 |
ssj72 | in the repo? | 15:09 |
falktx | about ntk and lv2 | 15:09 |
falktx | the plugin has to handle embedding, idle, resize etc | 15:09 |
falktx | (I mean the UI) | 15:09 |
falktx | since I want zyn lv2+vst, I want dpf + ntk now :) | 15:10 |
ssj72 | I have quite a bit of customization though. So I've deliberately subclassed widgets. its all forked from harry's avtk | 15:10 |
falktx | that's fine | 15:11 |
ssj72 | :) once thats done I'll be a lot more keen on moving | 15:11 |
falktx | DPF will simply create a main FL_Window where you'll put subwidgets inside | 15:11 |
falktx | I was trying to get to harry so I had some comments on the API | 15:11 |
ssj72 | so in fluid I'd have to change it from a window to a general container widget or something? | 15:12 |
falktx | don't know yet | 15:13 |
falktx | right now you have a main window where you're adding widgets into, right? | 15:13 |
ssj72 | yes | 15:18 |
ssj72 | falktx: any guess what a reasonable timeline for ntk+dpf would be? | 15:29 |
ssj72 | I might be willing to wait | 15:29 |
falktx | next week perhaps | 15:29 |
ssj72 | I can wait until then | 15:29 |
falktx | I'm working on a kinda security job now, in which I do some coding during slow times | 15:29 |
ssj72 | ? job as in for wages? | 15:30 |
falktx | yes, part-time | 15:30 |
ssj72 | thats good. | 15:30 |
falktx | and it's only until next month. it's mostly because of all the turists visiting | 15:30 |
falktx | the city is full of french people :S | 15:30 |
ssj72 | lol. Hopefully its enough work to get you by for a while | 15:31 |
falktx | yes, it helps a lot | 15:31 |
ssj72 | I'll bet | 15:31 |
ssj72 | well, 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 | |
falktx | I'll probably be online, so ask me anything | 15:32 |
ssj72 | cool seee you | 15:41 |
*** ssj72 has quit IRC | 15:41 | |
*** mlpug has joined #lv2 | 17:41 | |
*** falktx has quit IRC | 18:17 | |
*** falktx has joined #lv2 | 19:49 | |
*** mlpug has quit IRC | 19:56 | |
*** zth has joined #lv2 | 21:59 | |
*** zth has quit IRC | 22:22 | |
*** ricardocrudo has quit IRC | 22:46 | |
*** falktx has quit IRC | 22:54 | |
*** falktx has joined #lv2 | 23:02 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!