IRC log for #brlcad on 20130604

00:21.05*** join/#brlcad mpictor_ (~mpictor_@2600:1015:b109:b3ba:0:39:4f8c:8301)
02:27.02``Erikhttp://cheezburger.com/7521949696
02:32.31brlcadstarseeker: I figured out what I need to do
02:32.59brlcadneeded to distinguish between a symbol existing and being declared
02:33.25brlcadappropriately, turns out cmake has a macro for this
02:33.53brlcadunfortunately, their macro blows major chunks and is basically broken for our needs
02:35.41brlcadCHECK_PROTOTYPE_EXISTS() is the gem
02:36.03brlcadI'll just have to implement it
02:39.05Notify03BRL-CAD:brlcad * 55643 brlcad/trunk/CMakeLists.txt: test for fileno() since the function disappears in c99 pedantic mode (it's a posix function). instead, check for kill() and fileno() being declared.
03:10.42Notify03BRL-CAD:brlcad * 55644 brlcad/trunk/src/libbn/plane.c: need stdlib.h for modf() and nextafter() but remove the long double support since it requires build system infrastructure. several relatively common platforms (some not so common, some common) don't support long doubles. (gnulib quotes FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin, Interix 3.5) moreover, we'd need
03:10.44Notifyother changes to make fastf_t be more than single or double precision.
03:12.55Notify03BRL-CAD:brlcad * 55645 brlcad/trunk/include/config_win.h: windows has fileno() (because we define it to _fileno()), and there aren't c99 declaration issues because msvc doesn't give a hoot about it.
03:16.16Notify03BRL-CAD:brlcad * 55646 brlcad/trunk/include/config_win_cmake.h.in: ditto, we have fileno()
03:24.39Notify03BRL-CAD:brlcad * 55647 brlcad/trunk/src/libbu/backtrace.c: hook off of the configure tests so we don't get duplciate declarations when the posix kill() and fileno() functions are available.
03:39.03Notify03BRL-CAD:brlcad * 55648 brlcad/trunk/src/libbu/units.c: the ctype functions technically take an 'int' derived from an unsigned char, so netbsd is appropriately warning about the danger passing a signed char. we know these are strings, so casting to unsigned char is sufficient to quell.
03:57.13Notify03BRL-CAD:brlcad * 55649 brlcad/trunk/misc/CMake/CompilerFlags.cmake: revert r54119 by caen23 that made debug compilation also use gnu99 instead of gnu89. as noted in the preceding comment, we intentionally compile with both to provoke more warnings. need more info on the clang failures.
04:02.53Notify03BRL-CAD:brlcad * 55650 brlcad/trunk/misc/CMake/CompilerFlags.cmake: separate the comments so it's more obvious that we intentionally use two different standards during compilation testing.
04:20.15Notify03BRL-CAD:brlcad * 55651 brlcad/trunk/misc/CMake/CompilerFlags.cmake: the gnu1x line was leftover, remove
04:21.43Notify03BRL-CAD:brlcad * 55652 brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake: two more warnings to aspire to
04:27.53Notify03BRL-CAD:phoenixyjll * 55653 (brlcad/trunk/src/libbrep/PullbackCurve.cpp brlcad/trunk/src/libbrep/libbrep_brep_tools.cpp and 3 others): run ws.sh on src/libbrep
05:31.05Notify03BRL-CAD:brlcad * 55654 brlcad/trunk/CMakeLists.txt: so CHECK_PROTOTYPE_EXISTS() is woefully busted in numerous ways. assumes c++, has a bad symbol test, results in unused var warnings, and doesn't work with preprocessor-wrapped symbols coming from system headers. former versions of CHECK_SYMBOL_EXISTS() almost did exactly what we need (a simple (void)symbol; test just like AC_CHECK_DECL) but was bastardized in
05:31.07Notifyrecent versions so it now spews an error too (it's busted and has been reported).
05:37.58*** join/#brlcad caen23 (~caen23@92.85.92.235)
06:05.33Notify03BRL-CAD:brlcad * 55655 brlcad/trunk/CMakeLists.txt: manually wrap a couple simple tests since both CHECK_SYMBOL_EXISTS and CHECK_PROTOTYPE_EXISTS appear to be completely unusable for testing header declarations. deserves a macro in the meantime, but the issue has been reported.
06:25.51*** join/#brlcad caen23 (~caen23@92.81.171.72)
06:27.18Notify03BRL-CAD:brlcad * 55656 brlcad/trunk/src/libfb/if_tk.c: more ctype argument type cleansing
07:28.41*** join/#brlcad Izak (4ddc01da@gateway/web/freenode/ip.77.220.1.218)
07:32.58Notify03BRL-CAD Wiki:IIIzzzaaakkk * 5360 /wiki/User:Izak: /* PERSONAL INFORMATION */
07:44.58*** join/#brlcad d_rossberg (~rossberg@66-118-151-70.static.sagonet.net)
09:07.28*** join/#brlcad caen23 (~caen23@92.81.213.245)
09:29.37*** join/#brlcad vladbogo (~chatzilla@188.25.101.47)
09:43.29*** join/#brlcad merzo (~merzo@60-178-133-95.pool.ukrtel.net)
10:04.09starseekerhttp://www.ebay.com/itm/Blackbird-Faster-Than-The-Wind-vehicle-/281114481020
10:04.32starseekervotes the Smithsonian should buy it - that's one seriously *cool* vehicle
10:37.14*** join/#brlcad mpictor_ (~mpictor_@2600:1015:b109:b3ba:0:39:4f8c:8301)
11:37.56Notify03BRL-CAD:brlcad * 55657 brlcad/trunk/CMakeLists.txt: thanks netbsd 5 ... they partially implemented TLS support so it compiles and links, but will simply crash at runtime. (gives __tls_get_addr() runtime link failure on library linkage) change the test to also run the test, not just compile it for the __thread test only to catch this failure. pthread fallback should hopefully still work.
11:43.25*** join/#brlcad vladbogo (~vlad@188.25.101.47)
11:45.44*** join/#brlcad merzo (~merzo@60-178-133-95.pool.ukrtel.net)
11:59.17d_rossbergvladbogo: look e.g. at src/libdm/CMakeLists.txt: BRLCAD_ENABLE_TK => DM_TK ... QT should be similar
11:59.45starseekerbrlcad: we can make our own local copy of CheckSymbolExists.cmake - if I remember correctly how that works it should be used in place of the system version, as long as we've specified the directory correctly
12:00.19vladbogod_rossberg: thanks. I was currently searching for that
12:00.54starseekerCheckPrototypeExists.cmake too, for that matter... we already have local copies of that since (IIRC) it originally came from KDE and wasn't in CMake proper
12:01.49starseekeror I should say some of the src/other builds do
12:03.09starseekerprobably would have to do that anyway, unless we want to make our minimum CMake version the one where they fix the macros
12:14.00Notify03BRL-CAD:phoenixyjll * 55658 (brlcad/trunk/src/libged/brep.c brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp): Eliminate max_dis in the brep command for SSI.
12:51.13vladbogod_rossberg: it is ok if i set the BRLCAD_ENABLE_QT in libdm/CMakeLists.txt or should I set it somewhere else?
13:22.10Notify03BRL-CAD Wiki:Phoenix * 5361 /wiki/User:Phoenix/GSoc2013/Reports: /* Community bonding */
13:23.48Notify03BRL-CAD Wiki:Phoenix * 5362 /wiki/MGED_CMD_brep: /* Syntax */
13:25.46Notify03BRL-CAD Wiki:Phoenix * 5363 /wiki/MGED_CMD_brep: /* Argument(s) */
13:25.59Notify03BRL-CAD Wiki:Phoenix * 5364 /wiki/MGED_CMD_brep: /* Argument(s) */
13:26.57Notify03BRL-CAD Wiki:Phoenix * 5365 /wiki/MGED_CMD_brep: /* Example(s) */
13:27.50Notify03BRL-CAD Wiki:Phoenix * 5366 /wiki/MGED_Commands: /* B */
13:45.46Notify03BRL-CAD:phoenixyjll * 55659 (brlcad/trunk/src/libged/brep.c brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp): Extended the brep command to handle P/P, P/C, P/S, C/C and C/S.
13:46.18d_rossbergvladbogo: look for BRLCAD_ENABLE in CMakeLists.txt at the root directory ;)
13:47.48vladbogod_rossberg: thanks
13:48.59Notify03BRL-CAD:phoenixyjll * 55660 brlcad/trunk/src/libbrep/px_event.cpp: Fix the format of ON_PX_EVENT::Dump().
13:59.36Notify03BRL-CAD Wiki:Phoenix * 5367 /wiki/User:Phoenix/GSoc2013/Reports: /* Community bonding */
14:09.37brlcadstarseeker: I know, that was my thought as well -- it still needed to be reported upstream
14:10.10brlcadand I didn't want to take the time to test getting a macro perfect for inclusion in our build or submission to the cmake guys as a patch until after release
14:10.28brlcadso just a couple quick compile tests did the trick, just have to pick up from there after releae
14:10.43brlcadis having a heckuva morning
14:18.32d_rossbergvladbogo: your last comment to your patch is emty (?)
14:20.09vladbogod_rossberg: I initially added it empty by mistake, but I've edited the post
14:39.44brlcadvladbogo: just a sanity check, are you compiling with default flags or do you have strict compilation (warnings as errors) disabled?
14:49.40brlcadmm, behold the awesome of: find -L -type l
14:50.59brlcadan equivalent of that for 'search' would be crazy useful
14:51.25Notify03BRL-CAD:carlmoore * 55661 brlcad/trunk/src/util/dunncolor.c: implement -h and -?, and 'Program continues running:' for no-arguments help
14:59.55Notify03BRL-CAD:carlmoore * 55662 brlcad/trunk/src/sig/dstats.c: remove verbose flag and reference to 'mode'; implement -h, -?
15:02.24vladbogobrlcad: it seems I had strict compilation disabled. Is there any problem with one of the patches? I will recompile them shortly
15:06.10brlcadvladbogo: if you disable strict compilation, there will almost certainly be problems later if there aren't already some now
15:07.37brlcadI hadn't applied your patch yet, but it looked like it lacked some attention to details right away (also demonstrated by all of rossberg's feedback)
15:07.43brlcadhad my doubts that it would actually pass compilation
15:08.03vladbogobrlcad: I know. My bad. I had a compiling script with the wiki/compiling commands and somehow I missed the fact that strict compilation is disabled
15:08.10brlcadin any regard, you should be compiling with strict enabled -- it just means you should not ignore what the compiler is telling you
15:08.18brlcadmust resolve all warnings properly
15:08.26brlcadno worries
15:08.32brlcadthat's what discussion is for ;)
15:09.45vladbogothanks:)
15:10.44brlcadif there's a warning you don't understand, just search it up
15:11.13brlcadthere's usually several dozen articles, pages, stackoverflow questions, and more for each that explain them in detail
15:11.26brlcador failing all that, ask here
15:11.31brlcadI've pretty much seen them all
15:11.37vladbogoI will. I'm waiting for the compilation process right now.
15:13.38vladbogoalso I wanted to ask you about the additional info section on the melange page. How detailed should it be: should it be a general description of the project or something more specific?
15:15.04brlcadyou mean the public summary?
15:16.18brlcadthis write-up?  http://www.google-melange.com/gsoc/project/google/gsoc2013/vladbogolin/47001
15:18.08vladbogoYes. When editing there is also an additional information in which I haven't written nothing for the moment and appears as a TODO
15:19.47brlcadvladbogo: additional info shows up like this: http://www.google-melange.com/gsoc/project/google/gsoc2013/phoenixyjll/40001
15:20.19brlcadinclude whatever you like, but your abstract write-up looks good to me
15:20.34vladbogook thanks
15:20.36brlcada link to your wiki and/or dev log would be good
15:21.43vladbogoalso I have just compiled the latest version of the qt display manager patch and it was successful. About this version were you talking about?
15:28.59brlcadwoo hoo, netbsd compilation complete
15:31.29brlcadI believe this release demonstrates that we've finally grown development activity beyond the need for release branches
17:57.29starseekerblinks - netbsd got added to our list of targeted platforms for this release?
17:58.52starseekerfind -L -type l searches for broken symbolic links?
17:59.26starseekerah - you're thinking of a way to look for entries in combs that reference geometry that doesn't exist in the db?
18:07.00*** join/#brlcad kanzure_ (~kanzure@131.252.130.248)
18:07.40*** join/#brlcad crdueck_ (~cdk@24.212.219.10)
18:17.17*** join/#brlcad ibot (~ibot@rikers.org)
18:17.17*** topic/#brlcad is BRL-CAD || http://brlcad.org || logs: http://ibot.rikers.org/%23brlcad/ || GSoC 2013! http://brlcad.org/wiki/Google_Summer_of_Code
18:19.13*** join/#brlcad ibot (~ibot@rikers.org)
18:19.13*** topic/#brlcad is BRL-CAD || http://brlcad.org || logs: http://ibot.rikers.org/%23brlcad/ || GSoC 2013! http://brlcad.org/wiki/Google_Summer_of_Code
18:27.54*** join/#brlcad maths22_ (~gcimaths@66-118-151-70.static.sagonet.net)
18:32.13*** join/#brlcad cstirk_ (~quassel@c-71-56-216-45.hsd1.co.comcast.net)
19:09.11*** join/#brlcad ibot (~ibot@rikers.org)
19:09.11*** topic/#brlcad is BRL-CAD || http://brlcad.org || logs: http://ibot.rikers.org/%23brlcad/ || GSoC 2013! http://brlcad.org/wiki/Google_Summer_of_Code
19:16.02*** join/#brlcad kanzure (~kanzure@131.252.130.248)
19:18.50*** join/#brlcad tofu (~sean@66-118-151-70.static.sagonet.net)
19:37.05*** join/#brlcad mpictor (~mpictor_@99-93-104-202.lightspeed.iplsin.sbcglobal.net)
19:39.23tofustarseek1r: libGLU is somehow getting found in a /usr/pkg/lib directory
19:39.59brlcadis there a Find GLU different from our FindOpenGL?  I don't see any reference to /usr/pkg in our tree and it's causing a problem
19:45.55starseekerbrlcad: there shouldn't be... what plaform is this, netbsd?
19:46.05brlcadyep
19:46.58starseekerFindGL.cmake and FindX11.cmake in our tree ook in /usr/pkg/xorg
19:47.04starseekers/ook/look
19:47.37starseekerare there symlinks in /usr/pkg/xorg ?
19:48.02brlcadchecks
19:48.08brlcadfwiw: http://paste.lisp.org/+2Y2I
19:48.33brlcad/usr/pkg/xorg does not exist
19:48.56starseekerit might be one of the "standard" system search paths CMake sets on NetBSD...
19:50.15brlcadhow to find out where it's coming from?
19:51.00starseekerlooks at our FindGL.cmake
19:51.28starseekerI don't understand why there would be a cyclic dependency there...
19:51.59brlcadwhat's even more frustrating, /usr/X11R7/lib/libGLU.so exists and is the one it needs to use
19:52.28starseekerwhat's the other one doing there?
19:53.26brlcadI think one is the base install, the other is the netbsd package management system
19:55.39starseekermy first test would be to add NO_DEFAULT_PATH to the OPENGL_glu_LIBRARY find_library call in misc/CMake/FindGL.cmake and see if that changes anything
19:56.05starseekerthey *really* shouldn't do that, especially if there are system incompatibilities in the libraries
19:57.02brlcaddo I need to replace all the FindGL.cmake files in the tree or just the top-level?
19:57.11starseekerer, NO_CMAKE_SYSTEM_PATH rather
19:57.20starseekerjust the top level should work...
19:57.45starseekerFindX11.cmake uses NO_CMAKE_SYSTEM_PATH, I think for similar reasons...
19:58.05starseekerwill update the others once a solution is found
19:58.16starseekerbrlcad: I can add it if you like...
19:58.40starseekertweaking the FindGL.cmake file will involve a fair bit of testing
19:59.24brlcadso adding it to the find_library() call (line 22)
19:59.43brlcadthen clear the cache, and see what it finds
19:59.47starseekerin misc/CMake/FindGL.cmake?
20:00.23brlcadyeah
20:00.29starseekerline 22 is in the header comments...
20:01.37brlcadsry, line 220
20:01.51starseekeryeah
20:02.07brlcadso another question, are those tests affected by other/prior tests?
20:02.14starseekerthe other find_ calls in that case should probably have it to, for that matter...
20:02.29brlcadlike if a find libz finds it in /usr/pkg/lib, is it going to look there?
20:02.34starseekeronly a previous version of the same check
20:03.00starseekerah.  not sure
20:03.24starseekerI doubt it if the libz search specically added that path to its own search
20:04.00brlcadwell if it's a system default path
20:04.17brlcadthat for whatever reason is mysteriously being searched before our specified paths
20:04.23starseekerthen it will always look there unless we tell it not to in that specific search
20:05.12brlcadright, but if we let it search system for libz and then tell it not system for libGLU, will it affect libGLU searching
20:05.40starseekerI want to say no
20:06.01starseekerbut there are a lot of layers to the find_ macros
20:06.18starseekerbrlcad: try r55664
20:06.32starseekerhmm - we seem to have lost our bot
20:30.42*** join/#brlcad mpictor_ (~mpictor_@2600:1015:b114:3e93:0:39:4fd0:8901)
20:30.42*** join/#brlcad mpictor (~mark@99-93-104-202.lightspeed.iplsin.sbcglobal.net)
20:30.42*** join/#brlcad brlcad (~sean@66-118-151-70.static.sagonet.net)
20:30.42*** join/#brlcad kanzure (~kanzure@131.252.130.248)
20:30.42*** join/#brlcad starseeker (~starseeke@66-118-151-70.static.sagonet.net)
20:30.42*** join/#brlcad ``Erik (~erik@pool-74-103-121-45.bltmmd.fios.verizon.net)
20:30.42*** join/#brlcad archivist (~archivist@host81-149-189-98.in-addr.btopenworld.com)
20:30.42*** join/#brlcad cstirk (~quassel@c-71-56-216-45.hsd1.co.comcast.net)
20:30.42*** join/#brlcad maths22_ (~gcimaths@66-118-151-70.static.sagonet.net)
20:30.42*** join/#brlcad crdueck_ (~cdk@24.212.219.10)
20:30.42*** join/#brlcad merzo (~merzo@60-178-133-95.pool.ukrtel.net)
20:30.42*** join/#brlcad vladbogo (~vlad@188.25.101.47)
20:30.43*** join/#brlcad caen23 (~caen23@92.81.213.245)
20:30.43*** join/#brlcad KimK (~Kim__@wsip-184-176-200-171.ks.ks.cox.net)
20:30.43*** join/#brlcad n_reed (~molto_cre@66-118-151-70.static.sagonet.net)
20:30.43*** join/#brlcad Don_desk (~dtidrow@c-68-84-167-135.hsd1.mi.comcast.net)
20:30.43*** join/#brlcad papna (~papna@python/site-packages/papna)
20:30.43*** join/#brlcad ChanServ (ChanServ@services.)
20:30.43*** mode/#brlcad [+o ChanServ] by calvino.freenode.net
20:32.27brlcadwell with the detection measures in place, it's "the one that works" :)
20:32.28starseekerbut depending on which X11 and which OpenGL library you previously selected, that choice may change
20:32.28brlcaddigging with this default path stuff, I think I've found part of the issue on the netbsd and there may be another approach altogether
20:32.28brlcadboth GLU libraries actually seem to work just fine
20:32.29starseekerwinces
20:32.30starseekerick
20:32.32starseekerit's like OSX where you have the system Xorg X11 and one installed by fink - what's the "right" answer?
20:32.36brlcadyou want/need there to be one, and there's really not
20:32.36brlcadthat's the whole arbitrary
20:32.59brlcadfrankly, I'd say we just look in whatever location the *vendor* shipped with (only) and let the user specify anything else
20:33.39starseekerO.o isn't that pretty much what we're currently doing with FindX11.cmake and FindGL.cmake ?
20:34.17brlcadnah, we search a ton of convention in those .. and cmake default does even more it appears
20:35.46starseekerwait, terminology check - by vendor do you mean the OS distribution or the original project (Xorg, Mesa, etc.)
20:35.46brlcadand yeah, even my notion of a vendor is no more or less flawed (arbitrary) given enough distros and vendors and time
20:36.18brlcadit's looking like with this netbsd system, it's basically a togl build system issue
20:36.39brlcadit needs to test the glew.h header because it requires a rather new version of it
20:36.54brlcadit provides one in its include directory, but that is searched after system dirs
20:37.01starseekercan't help thinking our "builds easily out of the box" experience that we try to guarantee with src/other is sunk before it sails if we force the user to specify basic things like X11 location...
20:37.08starseekerbrlcad: ah
20:38.01starseekerthat's... odd - I thought I took steps to check in the local src directories before the system dirs
20:38.03brlcadwho is talking about forcing the user to specify things like X11 location??
20:38.11brlcadnon sequitor?
20:38.33brlcadjust because you can't sometimes know the answer doesn't mean you'd always force them to tell you
20:38.35starseekerif we don't check in the various locations we've got in FindX11 and FindGL, we'll need user input
20:39.14brlcadyou make them tell when it's not obvious ... or we make sure we test everything we're using so it doesn't result in errors down the line that they can't decipher
20:39.16starseekerisn't that the "searching a ton of convention" you were objecting to earlier?
20:39.57brlcadyou're reading into what I'm saying as implying something I've not said...
20:40.05starseekeris confused
20:41.12brlcadI've said what I mean and only mean what I've said ;)
20:41.28brlcadthat is to say I've not objected to anything that I recall
20:41.45brlcadjust commenting on the system, our options, noting various deficiencies
20:41.49brlcadthat is all...
20:42.35starseekerYou had said earlier "if we're going to even try and be smart/fancy/auto-detecting like this..." - the implication being that we have the option *not* to try it
20:43.29brlcadwe certainly do have that option .. it's code?  still wasn't implying that was the thing to do or not do
20:44.10starseekerah - I had the distinct impression over the last few years that you were not a fan of the automatic searching approach
20:44.24brlcadrelevance? :)
20:44.25starseekeras you say, reading in...
20:44.59starseekerwell, you're the project lead... if you don't like it then it's probably not a good idea for me to push in that direction :-P
20:45.19brlcadI'm not a fan of using a mouse either, but that doesn't mean it's not good for lots of things or that I need to use it or that it's inherently bad
20:45.31brlcadeven if I thought it was BAD, it doesn't mean it's workable
20:45.44brlcad*not workable
20:46.13brlcadi'm more thinking long term how we evolve this even more so that it continues to get better
20:46.36starseekerin my experience, if you're thumbs down on something it's usually 'cause you have a better idea - given the number of times I've lost those arguments, it's usually more efficient to just skip to the system you want and try to get that working
20:46.50brlcadand not being hamstrung by any decision or punting that current is as good as it's going to get
20:47.24brlcade.g., if the current searching really is as good as it gets with this approach, then I would naturally be a proponent of considering other approaches if only to keep us improving
20:47.47brlcad(that said, before you read into that! .. I don't think this is as good as it gets by a long shot)
20:48.33starseekerbrlcad: I just want to know what needs to be coded up to solve the problem to your satisfaction
20:48.48brlcadso back to the problem at hand, a build failure and what to do about it :)
20:49.01starseekermutters under his breath about nuking togl from orbit
20:49.12brlcadstop trying to please me, make the code be the best it can possibly be
20:49.38brlcadwhether incrementally or in stages or steps .. it has to evolve with our needs
20:49.43brlcadit is just code, after all
20:49.46brlcadall code can be improved
20:49.54starseekeralright, glew details - you say it's finding a system glew that it doesn't like?
20:50.02brlcadraises a good point, what is togl in there for?
20:50.10brlcadadrt?
20:50.15starseekerisst gui, and customer code
20:50.24starseekermaybe just isst gui now
20:50.45starseekerif we do what archer/mged do to provide an opengl context to feed ISST, that might be the way out
20:51.50brlcadokay, so either hooking isst through libdm or integrating togl into archer would be some semblance of forward
20:52.18brlcadisst gui by itself is pretty compelling evidence to retain
20:53.02starseekerisst gui probably should be hooking through libdm, actually - I think togl was just the quick-and-dirty way to get an opengl context to play with
20:53.43brlcadthinks a STEP/ISST viewer would be highly valued pairing
20:54.27starseekerthe question will be whether ``Erik's fast drawing trick can work inside a libdm opengl window - if it can, then isst would actually become a poster child for how to do "stand-alone" libdm apps
20:54.39brlcadabsolutely
20:54.49brlcadand if libdm can't handle that, we should make it handle it
20:54.54brlcad(it should be able to)
20:55.33starseekerpulls up the isst code...
20:56.02starseekerjust before release... heck of a time for this, but what the hey...
20:56.46brlcadI worked on a stand-along libdm app a while back ... recall keybindings being the biggest obstacle
20:57.35starseekeryeah, that was an issue with togl too iirc - let's see if we can get the libdm opengl context up in place of the togl opengl context as a first step
21:00.45brlcadstarseeker: for glew, do you know if there would be any issue always searching their provided include dir first?
21:01.08starseekeryou mean togl's?  I thought that's what it *was* doing
21:01.14starseekerif it isn't, go for it
21:01.44starseekeractually stuck glew in when doing the initial import of togl, IIRC - was needed to wrap some nastiness
21:03.42brlcadyeah, it's not doing that
21:04.01brlcadsearches system first -- thought it might have been intentional (to get a newer glew)
21:04.19brlcadtesting
21:04.28starseekerscowls... this is probably going to be a significant restructure, actually - I cheated and used togl's Tcl command line init-and-pack routines to create and stash the context in a Tcl_Obj, which is opened up by various call-back functions
21:04.59brlcadyou think it's safer to revert the no-system-paths change for release?
21:05.06brlcador safe to keep
21:05.36starseekerbrlcad: dunno.  It was apparently an issue on netbsd...
21:05.44starseekerworked OK on Linux here when I tried it
21:06.10brlcadthat just leaves a lot of other untested environments :)
21:06.19starseekeryeah - I'd say revert it for now
21:06.45brlcadit's feeling more stable after the past weekends changes going in
21:06.45starseekerbut we probably want to stick it back in afterwards, if for no other reason than to match better what we do when searching for X11
21:06.50brlcadjust need another windows sanity test
21:07.13starseekerregex/red sanity, or just archer/mged generic testing?
21:07.15brlcadI can kick off a slew of compiles to test that change one last time
21:07.20brlcadjust compilation sanity
21:07.27starseekerstarts a build
21:07.41brlcadlot of little things that could kick off a failure on windows
21:08.08brlcadwoot
21:08.09brlcadIn file included from /home/sean/brlcad/src/other/togl/src/glew/glew.c:32:
21:08.09brlcad/home/sean/brlcad/src/other/togl/src/../include/GL/glew.h:2580:2: error: #error got here
21:08.15brlcad(that's a good error)
21:08.20starseekerhehe
21:10.47starseekeruh... 2580 in glew.h doesn't seem to have anything that would complain about "got here"...
21:11.52starseekerbrlcad: I don't suppose plugging in the newest glew would help?
21:12.23brlcadthat was my own code, testing that it got to a critical symbol it needs
21:12.29brlcadnope
21:12.33brlcadi think this'll fix it
21:12.50starseekerah - phew :-)
21:14.00brlcadwoot, togl compiled clean .. now to check the rest of the build
21:17.29starseekerah, bugger, that's right - if we go with libdm we'll need code for wgl and ogl
21:17.47starseeker(assuming we can get the TIE stuff to work on Windows...)
21:19.00brlcadwhat do you mean?
21:19.56starseekerI guess I should say we *may* need code for both - ogl is X11 only, so if we want an ISST opengl context on Windows we'll need a wgl display manager
21:19.57brlcadsounds like "to go with libdm, we need another hook function so we don't end up with dm-platform-specific code in the client applications"  :)
21:21.09starseekerjudging by tclcad_obj, we'll at least need to pass in the DM_OGL and DM_WGL build flags for the right headers
21:21.39starseekerdon't know if we'll need more platform specific stuff until we see how ``Erik's fast TIE display behaves with libdm
21:22.48starseekerhopefully not, but if I understand correctly his drawing approach is pretty different from what's usually done with libbm
21:25.00brlcadyou say that but all i hear are things that need to be fixed
21:25.25brlcadcallers aren't supposed to be aware of DM types (at all, ever)
21:26.13brlcadof course, this is not the current state of affairs, but I consider that a failure of attention only ... :)
21:26.18starseeker``Erik's fast display uses some OpenGL specific stuff, so I'm guessing he would need to pull the opengl context out of the dm_vars
21:26.26starseekerheh
21:26.38brlcadyeah, opengl is about as "aware" as they need to be
21:26.51brlcadbut that's like a DM attribute/setting that should be queryable
21:27.04starseekerwell, if we can get away with togl for this release it would be nice to fix whatever needs fixing and nuke it - it's been a royal pain
21:27.46starseekernot to mention we could use libdm's proper quaternion support for rotation instead of that miserable hack that's in there now
21:28.11brlcadnods
21:29.13starseekerbeing able to make it a "mode" in archer would solve a number of other things, like proper tree support
21:30.56starseekerbut that *would* be a major "binding" problem :-)  tree actions, mouse actions, keys... probably not too different from sketch in some ways as a distinct interaction mode
21:41.01starseekerwindows build commencing
21:43.35starseekerbrlcad: did you want me to revert the FindGL.cmake change?
22:04.20starseekerbuild succeeded on Windows, mged comes up and raytraces toyjeep
22:12.22*** join/#brlcad caen23 (~caen23@92.81.213.245)
22:24.24brlcadstarseeker: no, we can run with it if you think it's "better"
22:25.05brlcadnetbsd is now clean and compiles default
22:25.19brlcadonly issue is it seems to have littered the source tree with generated man pages
22:26.04brlcadand symbolic links in build tree
23:02.36*** join/#brlcad Notify (~notify@66-118-151-70.static.sagonet.net)
23:03.31Notify03BRL-CAD:carlmoore * 55663 brlcad/trunk/src/util/dunnsnap.c: remove h for high-res ('s 1024' or 'S 1024' in its place), and implement -h,-?
23:03.43Notify03BRL-CAD:starseeker * 55664 brlcad/trunk/misc/CMake/FindGL.cmake: Add NO_CMAKE_SYSTEM_PATH to OpenGL searches, to mirror FindX11 behavior.
23:03.45Notify03BRL-CAD:carlmoore * 55665 brlcad/trunk/src/sig/dwin.c: implement -h and -? for help, specify usage of files (not stdin/stdout), and change old h to H
23:03.55Notify03BRL-CAD:brlcad * 55666 brlcad/trunk/src/other/togl/src/CMakeLists.txt: search the provided source directories for headers before searching for them in system directories. fixes a build error encountered on a system where the system-installed glew.h was too old to be used. warrants a header compatibility test if we encounter a case where the system dirs need to get searched first.
23:04.10Notify03BRL-CAD:carlmoore * 55667 brlcad/trunk/src/conv/dxf/dxf-g.c: remove a 'break'; add -h,-?; add 'Usage'
23:42.29``Eriksooo much backlog
23:45.35``Erikthe subset of togl actually used by isst could be rewritten with very little effort... allz isst does is update a texture and blast it to the screen with one big quad
23:47.06``Erikthe ogl dm, iirc, draws rle scanlines using glrect, which is pretty crappy on modern hw (slow on osX, probably due to how glRect() is emulated)...
23:49.12``Erikand yeh, 'convention' is all over the map, linux is weird in the greater scheme in how similar the distros tend to be.. even before lsb :) some systems considered it normal to put executables in /etc/, and frequently, /opt/<package>/ is normal... and that's just unix

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.