#jogamp @ irc.freenode.net - 20130613 05:05:16 (UTC)


20130613 05:05:16 -CatOut- Previous @ http://jogamp.org/log/irc/jogamp_20130612050516.html
20130613 05:05:16 -CatOut- This channel is logged @ http://jogamp.org/log/irc/jogamp_20130613050516.html
20130613 05:13:23 * [Mike] (~Mike]@anon) has joined #jogamp
20130613 06:02:22 * zanegray (~zanegray@anon) has joined #jogamp
20130613 06:08:49 <zanegray> Hi, I am building an application using Processing (specifically PApplets in Java) and was having issues with the maven jogl jars. I can get a single PApplet to run with them, but my project involves loading many PApplets during runtime by opening compiled jar files via a classloader. If I include the jogl jars in the main application the "child" PApplets dont seem to be able to find the native libraries. Would this even be the righ
20130613 06:09:50 <sgothel> which native libs ? jogamp's or processing native libs ?
20130613 06:10:09 <zanegray> gluegen-rt.
20130613 06:10:51 <sgothel> I assume you do your own jar packaging ? or do you use vanilla (orig) jar files ?
20130613 06:11:44 <zanegray> I am just using vanilla jars (the ones generated by the individual maven projects for each PApplet). These each get loaded by a configuration driven setup
20130613 06:11:56 <zanegray> I think :)
20130613 06:12:23 <sgothel> we find our native libraries via the classes's jar file, patch the name for os-and-arch and load it from same location
20130613 06:13:05 <sgothel> dunno how your classloader interferes here .. we don't use a special one, just the one being used to load the class
20130613 06:13:07 <zanegray> So the fact that I have those libraries in a separte jar (the main application) would make it so the PApplet would never find those libraries
20130613 06:13:27 <sgothel> it would work, if you follow our name scheme
20130613 06:13:49 <zanegray> sorry if I am slow but what is the name scheme?
20130613 06:13:55 <sgothel> gluegen-rt.jar gluegen-rt-natives*.jar .. it's sort of obvious
20130613 06:14:04 <sgothel> * == os-and-arch
20130613 06:14:13 * hharrison (~chatzilla@anon) has joined #jogamp
20130613 06:14:15 <zanegray> Ah yes. I have not modified those names.
20130613 06:14:23 <sgothel> thats it ..
20130613 06:14:38 <sgothel> so if you name yours: lala.jar, then you must have lala-natives-*.jar
20130613 06:15:04 <zanegray> And it would expect to find the native libaries in that natives jar?
20130613 06:15:12 <sgothel> yes
20130613 06:15:36 <zanegray> so this explains much (thank you) and sure explains this error
20130613 06:15:37 <zanegray> /home/andrew/370/running3/interfacesdk-0.1.0-jar-with-dependencies-natives-linux-amd64.jar (No such file or directory)
20130613 06:15:49 <sgothel> yup :)
20130613 06:16:19 <sgothel> in such case, simply merge our native jars into that one!
20130613 06:16:55 <zanegray> sorry, Im quite new to java. you can merge jars?
20130613 06:17:28 <sgothel> extract .. and create new one w/ that content. e.g. ant jar task also takes an jar as input
20130613 06:17:29 <zanegray> I was trying to get maven to package up all the native jars into the single jar
20130613 06:17:43 <sgothel> well ... look it up, me not a maven expert
20130613 06:17:56 <sgothel> test it manually 1st .. then see how to do it w/ maven
20130613 06:18:38 <zanegray> k. thanks. and again i should make sure to have a jar with the -natives-blah-blah on the end from the "merged" jar correct?
20130613 06:18:42 <sgothel> i.e. create that interfacesdk-0.1.0-jar-with-dependencies-natives-linux-amd64.jar file w/ all our jars, assuming the base java jar contains all of gluegen/jogl etc
20130613 06:18:53 <sgothel> yes
20130613 06:18:59 <sgothel> or .. use the originals
20130613 06:20:08 <zanegray> yay!! i think i made some great progress with that... but now I have some c "invalid ELF header" issues :/
20130613 06:20:23 <zanegray> thank you for your time sgothel!
20130613 06:21:19 <zanegray> java.lang.UnsatisfiedLinkError: /tmp/jogamp_0000/file_cache/jln2922076979706088678/jln8039248083382354928/gluegen-rt.dll
20130613 06:21:33 <zanegray> would there be any reason why it would try to load the dll on a linux system?
20130613 06:21:44 <sgothel> not really :)
20130613 06:22:38 <sgothel> 1st we select the native filename via os-and-arch: do not mix/merge os-and-arch
20130613 06:22:44 <hharrison> sgothel: is there an ant target that just goes as far as generating java source and not any further?
20130613 06:22:44 <sgothel> (content that is)
20130613 06:23:09 <hharrison> (whoops, sorry to interrupt)
20130613 06:23:16 <sgothel> Hi Harvey. Don't understand your Q
20130613 06:23:48 <hharrison> I've been giving gluegen/jogl smelltests in eclipse
20130613 06:24:02 <sgothel> @Zane: We query os-and-arch in Platform* and bootstrap gluegen-rt there. Only if the os java property says 'Windows' .. we would attempt to load a dll
20130613 06:24:03 <zanegray> sgothel: so I should keep the windows and other natives out of my jar and only keep the appropriate ones in there?
20130613 06:24:06 <hharrison> So I tend to do the full build first using ant
20130613 06:24:25 <hharrison> But really, I only want to do the java source generation steps
20130613 06:24:34 <sgothel> ah ..
20130613 06:24:40 <hharrison> So eclipse has enough source to do its own build
20130613 06:25:06 <sgothel> @Zane: you see the diff. native jar files, keep os.and.arch in their jar file - then you are good
20130613 06:25:16 <sgothel> i.e. one native jar file for each os.and.arch
20130613 06:26:12 <zanegray> @sgothel. great ill have to do some repackaging. thanks for all your help.. and would there be any chance I could change the behavior so it looks in the same jar as is currently loaded?
20130613 06:26:12 <sgothel> @Harvey: Generation - well, yes - all projects do have their ant target for that, but I am afraid not a unique one ..
20130613 06:26:32 <hharrison> gluegen/jogl would be enough for me currently
20130613 06:26:41 <sgothel> @Zane: we don't want that (bandwidth .. etc, would need a change in our code)
20130613 06:27:04 <sgothel> @Zane: You would need to offer a patch for that!
20130613 06:27:05 <zanegray> sure.
20130613 06:27:17 <hharrison> Ahh my poor toasty laptop:BUILD SUCCESSFUL Total time: 4 minutes 32 seconds
20130613 06:27:24 <zanegray> a patch from me !? :P
20130613 06:28:27 <sgothel> @Harvey: 'gluegen.build.javase' .. but it also compiles the beast - sorry
20130613 06:28:36 <sgothel> @Zane: Sure - thats how open source works :)
20130613 06:28:56 <sgothel> but really, why should a Windows user download/extract the linux jar file ?
20130613 06:29:08 <hharrison> sgothel: it's not a big deal, if it existed already I'd be happy...but it's not a dealbreaker
20130613 06:29:09 <sgothel> it will costs time/bandwidth/temp-fs-space
20130613 06:30:32 <sgothel> @Zane: If you want 'big fat native jar support' - write an enhancement bug at our bugzilla, _we_ can start from there ..
20130613 06:30:46 <sgothel> yes 'big fat' are professional terms here - indeed :)
20130613 06:30:47 <zanegray> So another symptom / reason why I should not be doing this is if i open up my current jar I have WindowDriver$1 WindowDriver$2 .... $7 which i am guessing is because I tried to merge all the jars
20130613 06:31:38 <sgothel> you could merge gluegen + jogl native jars of each os.and.arch into one native jar file, sure
20130613 06:32:21 <sgothel> lala-natives-linux-amd64.jar + lala-natives-windows-amd64.jar, ..
20130613 06:32:40 <sgothel> loaded b/c all 'base classes' are in lala.jar
20130613 06:32:53 <sgothel> http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html#NativeJARFiles
20130613 06:33:38 <sgothel> https://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL#Native_JARs_vs._native_library_files
20130613 06:36:02 <sgothel> https://jogamp.org/bugzilla/show_bug.cgi?id=522#c7
20130613 06:36:43 <zanegray> ahh, too much too fast :)
20130613 06:36:54 <sgothel> just to keep you busy :)
20130613 06:37:35 <sgothel> I actually asked to add Bug 522 Comment 7 to be added to the wiki .. hmm let me find that request ..
20130613 06:38:03 <sgothel> https://jogamp.org/bugzilla/show_bug.cgi?id=542
20130613 06:38:23 <sgothel> https://jogamp.org/bugzilla/show_bug.cgi?id=542#c7 <- Xerxes ?
20130613 06:38:40 <sgothel> They are all still sleeping :)
20130613 06:38:47 * hharrison (~chatzilla@anon) Quit (Quit: ChatZilla 0.9.90 [Firefox 21.0/20130529083820])
20130613 06:38:51 <sgothel> Harvey .. isn't it too early/later .. ah :)
20130613 06:43:50 * hharrison (~chatzilla@anon) has joined #jogamp
20130613 06:44:18 <hharrison> Sorry, kernel+mesa update
20130613 06:44:34 <hharrison> It's getting near midnight here
20130613 06:45:58 <zanegray> @sgothel i combined the jars (gluegen-rt-linux... and jogl-all-linux...) into one jar and used that which seems to get much farther except its also looking for something else for a window_awt?
20130613 06:46:00 <zanegray> no nativewindow_awt in java.library.path
20130613 06:46:58 * monsieur_max (~maxime@anon) has joined #jogamp
20130613 06:47:43 <hharrison> sgothel: we've had a ton of success getting autocad assets imported into our 3d viewer, going to make for some fun slides
20130613 06:54:33 <monsieur_max> hi :)
20130613 06:56:08 <hharrison> hello
20130613 07:00:52 <sgothel> wow
20130613 07:01:30 <sgothel> your 3d viewer .. ES2 ? Linux/ARM ES2 and/or Android capable ?
20130613 07:02:16 <sgothel> the one open sourced in your github right ?
20130613 07:02:29 <hharrison> yep
20130613 07:02:35 <sgothel> sweeeeet!
20130613 07:02:48 <hharrison> opengl 3.2 (I think) with fallbacks to 3.0
20130613 07:03:01 <sgothel> core ?
20130613 07:03:06 <hharrison> core
20130613 07:03:18 <sgothel> so .. ES3 .. should be fine, right, I remember the discussion w/ you.
20130613 07:03:36 <sgothel> ES3 is next, having a real device here as well w/ Mali6xx
20130613 07:04:00 <sgothel> Hope Dominik can do the t-shirts fast :)
20130613 07:06:02 <hharrison> The collada reader we've written has proved to be a rather good workhorse
20130613 07:06:41 <sgothel> nice - Julien was working on similar stuff - maybe he and ofc many other like to know
20130613 07:06:53 <sgothel> so maybe, a release info ? is it modularized ?
20130613 07:07:20 <hharrison> Not super sure how much baggage it brings along, resource/asset tracking gets pretty intimate with it
20130613 07:07:49 <hharrison> We're closing in on 800 commits in the open-source side, it's rather fun to work in the open
20130613 07:08:06 <sgothel> well .. I am sure that this will cause some attention - sure, you need to send out the news :)
20130613 07:08:27 <sgothel> yes, quite dynamic
20130613 07:08:52 <hharrison> I'll wait for my collaborator to return from a long weekend so he can be around to answer questions
20130613 07:08:55 <sgothel> the minute I feel like 'done' and feeling relaxed falling into an idle hole, something comes up kicking my butt again :)
20130613 07:09:51 <sgothel> I had to stop at the granularity level of the milestone list as some point :)
20130613 07:10:13 <hharrison> Just get that release out the door man, then on to the next one!
20130613 07:10:21 * zanegray (~zanegray@anon) has left #jogamp
20130613 07:10:43 <sgothel> make announcement in our forum please!
20130613 07:11:05 <hharrison> OK, I will do so first thing with a screenshot
20130613 07:11:17 <sgothel> awesome .. and we should add it to our JOGL page
20130613 07:11:22 <sgothel> i.e. short description ..
20130613 07:11:25 <hharrison> I don't have anything impressive on the laptop
20130613 07:11:31 <sgothel> your choice: App and/or Library/Tools
20130613 07:11:48 <sgothel> well .. sure it can be tomorrow .. or in a few days :)
20130613 07:11:51 <hharrison> App for now....library/tools as I get it pulled apart
20130613 07:12:27 <hharrison> We have pretty good user input, drag and drop model building and pretty decent autocad import
20130613 07:13:02 <sgothel> ohh .. yes, d&d .. missing in NEWT
20130613 07:13:09 <hharrison> The weird part is, the 3D part isn't anything to do with the program's purpose (it's actually a discrete event modelling package)
20130613 07:13:47 <hharrison> I rolled my own implemenation of continuations back in the java 1.4 days....and it has lived for 10 years now
20130613 07:14:08 <hharrison> I call it my penance that now I get to maintain it
20130613 07:14:47 <hharrison> Ever seen a program with 1700 threads and only one runnable at a time? Welcome to my daily funhouse
20130613 07:14:53 <sgothel> hehe - sound like those signal event/dispatch stuff (SDL in old days, now UML) ..
20130613 07:15:47 <hharrison> Note, I find _every_ bug that ever occurs in the implementation of Object.wait()
20130613 07:16:03 <sgothel> breakfast here .. well, bug KUDOS. I must see you app soon, even though I hope you can show it yourself :)
20130613 07:16:23 <sgothel> oh .. so also a good multi threading tracer ..
20130613 07:16:25 <hharrison> It looks pretty likely at this point, looking forward to a face to face
20130613 07:16:40 <sgothel> oops .. wife calls - AWESOME (you are coming)
20130613 07:17:09 <hharrison> Night all
20130613 07:17:19 * hharrison (~chatzilla@anon) Quit (Quit: ChatZilla 0.9.90 [Firefox 21.0/20130529083820])
20130613 08:07:36 * [Mike] (~Mike]@anon) Quit ()
20130613 12:50:21 * rmk0 (~rmk0@anon) has joined #jogamp
20130613 12:50:21 * rmk0 (~rmk0@anon) Quit (Changing host)
20130613 12:50:21 * rmk0 (~rmk0@anon) has joined #jogamp
20130613 13:07:06 * rmk0 (~rmk0@anon) Quit (Quit: Lost terminal)
20130613 13:10:20 * rmk0 (~rmk0@anon) has joined #jogamp
20130613 13:10:20 * rmk0 (~rmk0@anon) Quit (Changing host)
20130613 13:10:20 * rmk0 (~rmk0@anon) has joined #jogamp
20130613 14:32:35 * [Mike] (~Mike]@anon) has joined #jogamp
20130613 15:58:20 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20130613 17:11:29 * monsieur_max (~maxime@anon) has joined #jogamp
20130613 19:05:42 * [Mike] (~Mike]@anon) Quit ()
20130613 21:13:52 * void256 (~void@anon) has joined #jogamp
20130613 21:18:22 * monsieur_max (~maxime@anon) Quit (Ping timeout: 252 seconds)
20130613 22:19:33 * [Mike] (~Mike]@anon) has joined #jogamp
20130613 22:25:16 * void256 (~void@anon) Quit (Remote host closed the connection)
20130614 00:17:38 * [Mike] (~Mike]@anon) Quit (Ping timeout: 245 seconds)
20130614 00:54:50 * [Mike] (~Mike]@anon) has joined #jogamp
20130614 02:25:55 * [Mike] (~Mike]@anon) Quit ()
20130614 02:57:29 * [Mike] (~Mike]@anon) has joined #jogamp
20130614 03:09:28 * sgothel (~sven@anon) Quit (Ping timeout: 256 seconds)
20130614 03:15:14 * sgothel (~sven@anon) has joined #jogamp
20130614 03:15:14 * ChanServ sets mode +v sgothel
20130614 05:05:17 -CatOut- Continue @ http://jogamp.org/log/irc/jogamp_20130614050517.html