#jogamp @ irc.freenode.net - 20150624 05:06:00 (UTC)


20150624 05:06:00 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150623050600.html
20150624 05:06:00 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150624050600.html
20150624 06:33:14 * jvanek (jvanek@anon) has joined #jogamp
20150624 06:41:41 * monsieur_max (~maxime@anon) has joined #jogamp
20150624 06:43:11 * elect (~elect@anon) has joined #jogamp
20150624 07:22:19 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150624 07:33:49 * jvanek (jvanek@anon) has joined #jogamp
20150624 08:18:10 * doev (~doev@anon) has joined #jogamp
20150624 08:32:49 * eclesia (~husky@anon) has joined #jogamp
20150624 08:32:53 <eclesia> o/
20150624 08:38:37 <elect> ^
20150624 10:18:04 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150624 12:52:46 * jvanek (jvanek@anon) has joined #jogamp
20150624 12:54:19 * doev (~doev@anon) Quit (Quit: Verlassend)
20150624 12:58:17 * doev (~doev@anon) has joined #jogamp
20150624 13:00:27 * doev (~doev@anon) Quit (Client Quit)
20150624 13:18:56 * doev (~doev@anon) has joined #jogamp
20150624 14:28:20 * doev (~doev@anon) Quit (Ping timeout: 246 seconds)
20150624 14:29:10 * doev (~doev@anon) has joined #jogamp
20150624 14:29:27 * doev (~doev@anon) Quit (Client Quit)
20150624 14:57:41 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150624 15:30:13 * elect (~elect@anon) Quit (Ping timeout: 256 seconds)
20150624 16:03:08 * eclesia (~husky@anon) has left #jogamp
20150624 16:56:18 * elect (~elect@anon) has joined #jogamp
20150624 17:40:07 * elect (~elect@anon) Quit (Ping timeout: 276 seconds)
20150624 17:41:40 * Eclesia (~eclesia@anon) has joined #jogamp
20150624 17:41:50 <Eclesia> hi(bis)
20150624 17:50:44 <Eclesia> is it better to clone jogamp from https://github.com/sgothel/jogl or http://jogamp.org/git/ ?
20150624 17:55:11 <sgothel> jogamp.org's repo is the official one
20150624 17:55:40 <sgothel> however, they should be in sync .. incl. jausoft.com/git/
20150624 17:56:12 <sgothel> i.e. our auto builds use jogamp's repo, ofc.
20150624 17:57:40 <Eclesia> ok
20150624 18:09:38 <Eclesia> sgothel: gluegen builds ok. jogl had a trouble : http://pastebin.com/Zg9PBShi
20150624 18:10:14 * monsieur_max1 (~maxime@anon) has joined #jogamp
20150624 18:10:34 <sgothel> http://jogamp.org/jogl/doc/HowToBuild.html -> libudev-dev
20150624 18:11:08 <Eclesia> :x missed it
20150624 18:12:42 <Eclesia> build ok :)
20150624 18:13:43 <sgothel> to have an all debug build (native + java):
20150624 18:13:50 <sgothel> -Dc.compiler.debug=true \
20150624 18:13:50 <sgothel> -Djavacdebuglevel="source,lines,vars" \
20150624 18:14:14 <sgothel> when invoking ant .., see jogl/make/scripts/make.jogl.all.linux-x86_64.sh
20150624 18:47:55 <Eclesia> I feared that ... tracking down where the frame icons are configured : private native long CreateWindow0
20150624 19:30:24 <Eclesia> sgothel: small question in X11Window.c
20150624 19:30:31 <Eclesia> if I add a function : JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_x11_WindowDriver_SetWindowIcon0
20150624 19:30:38 <Eclesia> the .h is autogenerated right ?
20150624 19:32:04 <Eclesia> Question 2 : if I send a jlong as argument, while this work : Window window = jlongarg ?
20150624 19:35:47 <Eclesia> i guess not..
20150624 19:59:09 <Eclesia> sgothel: forget the 2 previews questions, I found my answers.
20150624 20:01:31 * elect (~elect@anon) has joined #jogamp
20150624 20:28:09 <Eclesia> hm someone know how to deploy the glegen/jogl jars to local maven repo ?
20150624 20:29:46 <Eclesia> sgothel: ?
20150624 20:31:22 <rmk0> Eclesia: it's... not doable /o\
20150624 20:31:33 <rmk0> at least not the way we're doing it now
20150624 20:32:17 <rmk0> the jars get deployed to maven now via a script that unpacks the all-platforms.7z, arranges them in a directory hierarchy, generates pom files, pushes the whole lot to sonatype (or the jogamp server)
20150624 20:32:18 <Eclesia> rmk0: so manual deploy ? mvn deploy ...etc... ?
20150624 20:32:39 <rmk0> it does have to be manual if all you have is the jogamp sources
20150624 20:32:39 * elect (~elect@anon) Quit (Ping timeout: 246 seconds)
20150624 20:32:59 <Eclesia> I have glugen and jogl sources
20150624 20:33:12 <Eclesia> so manuel it is
20150624 20:33:17 <rmk0> unfortunately
20150624 20:33:39 <Eclesia> strange there is a pom in the make folder of jogl
20150624 20:33:55 <Eclesia> I had hope it might work
20150624 20:53:05 <Eclesia> okay, now lets see if my patch worked
20150624 21:08:22 <Eclesia> ... and it failed miserably lol : SIGSEGV (0xb) at pc=0x00007f8b8ea81d50, pid=10749, tid=140237343119104
20150624 21:15:14 <Eclesia> rmk0: sgothel: do you see something in here which is obviously wrong ? http://pastebin.com/D8LtNWZG
20150624 21:16:32 * rmk0 eyes it
20150624 21:18:03 <rmk0> nothing leaps out at me
20150624 21:19:07 <Eclesia> only thing I'm not sure of if the pixeldatasize when transforming the pixelRectangle to buffer/datasize
20150624 21:19:49 <Eclesia> couldn't find a utility method to do this :/
20150624 21:20:10 <Eclesia> I guess jogamp's god is needed here ^^
20150624 21:20:43 <sgothel> looking at it ..
20150624 21:21:48 <sgothel> Q: don't we a 'window icon' implementation already ?
20150624 21:21:56 <sgothel> i.e. an application icon .. hmm
20150624 21:21:59 <sgothel> however ..
20150624 21:22:33 <Eclesia> only for the global application
20150624 21:22:40 <sgothel> 0==stride -> width * height * bytes_per_pixel .. :)
20150624 21:23:15 <sgothel> looking for the utility function ..
20150624 21:24:06 <sgothel> PixelRectangle -> PixelFormat -> Composition
20150624 21:25:17 <sgothel> the latter has 'bytesPerPixel()' method
20150624 21:25:50 <sgothel> including the stride (packed)
20150624 21:27:14 <Eclesia> final int pixelDataSize = size.getWidth() * size.getHeight() * icon.getPixelformat().comp.bytesPerPixel();
20150624 21:27:18 <sgothel> NewtWindows_setIcon <- dunno whether this works for a local window isntance icon
20150624 21:27:23 <sgothel> yup
20150624 21:27:41 <sgothel> the other impl. code (Win32, ..) for sure targets the application instance
20150624 21:28:23 <sgothel> so you now how the global code works, i.e. the required 'icon' bitmap transformation
20150624 21:28:31 <sgothel> (for each platform)
20150624 21:28:55 <sgothel> great
20150624 21:29:31 <Eclesia> I mainly copy/modify the CreateWindow code ^^
20150624 21:42:15 <Eclesia> hm, no error, but didn't change the frame icon :/
20150624 21:44:16 <sgothel> CreateWindow's use of setting the icon follows some WM protocol for the whole application
20150624 21:45:47 <sgothel> XChangeProperty(dpy, w, _NET_WM_ICON, CARDINAL, 32, PropModeReplace, data_ptr, data_size); <- maybe not, i.e. maybe just for the window .. hmm
20150624 21:46:20 <sgothel> maybe you need to unmap / map cycle the window ..
20150624 21:46:29 <sgothel> so the WM can use the new decoration
20150624 21:48:04 <Eclesia> <--- newbie, please use level0 vocabulary
20150624 21:48:11 <sgothel> Look for XUnmapWindow / XMapRaised in X11Window.c#861 ... (flag 'tempInvisible') ..
20150624 21:48:49 <sgothel> the hefty reconfig method: 'Java_jogamp_newt_driver_x11_WindowDriver_reconfigureWindow0' :)
20150624 21:49:26 <sgothel> (or quick check in java: invisible -> visible)
20150624 21:50:04 <Eclesia> XMapWindow(dpy, window);
20150624 21:50:04 <Eclesia> //XUnmapWindow(dpy, w);
20150624 21:50:04 <Eclesia> XSync(dpy, False);
20150624 21:50:35 <sgothel> assuming your window is already mapped (visible) ..
20150624 21:51:26 <Eclesia> I'm just trying to make something work first, making it clean comes second
20150624 21:52:55 <sgothel> try: 1) create window 2) make it visible 3) call your new icon-set method 4) invisible -> visible via java
20150624 21:54:04 <sgothel> might work .. then we need to think how to make it work for the other WMs (Win32, OSX, ..) again - I guess those were application level .. we have to see
20150624 21:57:09 * monsieur_max1 (~maxime@anon) Quit (Quit: Leaving.)
20150624 21:57:25 <Eclesia> still nothing, the icon has been reset by after the setVisible(true). small frame icon instead of the jogamp logo
20150624 21:57:36 <Eclesia> but not my icon
20150624 21:57:46 <Eclesia> well that's it for today
20150624 21:57:48 <Eclesia> +++
20150624 21:58:05 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20150625 05:06:01 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150625050601.html