| 00:55.08 | *** join/#brlcad ejno (~ejno@unaffiliated/kazaik) | |
| 01:10.40 | starseeker | drools at new CMake features for per-target compile options |
| 01:11.20 | starseeker | if those actually work "as advertised" I might be able to remove some of my custom macro logic for all that... |
| 01:12.20 | starseeker | (right after the TODO list is emptied out, of course...) |
| 01:30.44 | Notify | 03BRL-CAD:starseeker * 57006 (brlcad/trunk/CMakeLists.txt brlcad/trunk/INSTALL): Latest CMake spotted a syntax error. |
| 01:41.05 | Notify | 03BRL-CAD:starseeker * 57007 (brlcad/trunk/misc/CMake/FindTCL.cmake brlcad/trunk/src/other/tcl/CMake/tcl.cmake brlcad/trunk/src/other/tk/CMake/tcl.cmake): More string formatting gotchas caught by 2.8.12rc1 CMake |
| 01:42.33 | Notify | 03BRL-CAD:starseeker * 57008 (brlcad/trunk/src/other/incrTcl/itcl/CMake/tcl.cmake brlcad/trunk/src/other/incrTcl/itk/CMake/tcl.cmake and 4 others): Sync other tcl.cmake and FindTCL.cmake copies |
| 02:59.55 | Notify | 03BRL-CAD:brlcad * 57009 brlcad/trunk/CMakeLists.txt: check for posix_memalign (post-c99 posix.1 function) |
| 03:04.06 | Notify | 03BRL-CAD:brlcad * 57010 (brlcad/trunk/src/mged/chgmodel.c brlcad/trunk/src/mged/cmd.c brlcad/trunk/src/mged/muves.c): bad declarations. edit_com() no longer takes a catch_sigint flag as a fourth arg, only three. |
| 03:34.03 | Notify | 03BRL-CAD:brlcad * 57011 brlcad/trunk/HACKING: the naming rules aren't / weren't specific to just variables. we want to keep things consistent for function names too. |
| 03:40.30 | Notify | 03BRL-CAD:brlcad * 57012 brlcad/trunk/src/util/dsp_add.c: avoid introducing a new style within the same file. we should avoid starting function names in uppercase as we have a predominant style of symbols_like_this() or even a few camelCaseSymbols(), but no uppercase convention outside of class method names. updated HACKING to reflect this more clearly. |
| 03:44.27 | Notify | 03BRL-CAD:brlcad * 57013 brlcad/trunk/src/util/dsp_add.c: bu_log() instead of fprintf(stderr where we're already using bu_log() elsewhere in the file. also make all the globals static as application code tends to migrate to libraries over time. |
| 03:50.00 | Notify | 03BRL-CAD:brlcad * 57014 brlcad/trunk/src/conv/nmg/g-nmg.c: the fix wasn't to remove -Pncpu support but should have been to propagate it like the other tools. |
| 03:57.23 | Notify | 03BRL-CAD:brlcad * 57015 (brlcad/trunk/src/conv/dxf/g-dxf.c brlcad/trunk/src/conv/euclid/g-euclid.c and 11 others): decouple RTG.debug from the -P options on most importers. Instead, let -x be utilized for that so that -P can consistently just refer to the nubmer of cpus to use (even though few tools should even be exposing that level of configurability, unnecessary/unhelpful option). |
| 08:18.06 | *** join/#brlcad caen23 (~caen23@92.81.204.102) | |
| 08:36.34 | *** join/#brlcad vladbogo (~vladbogo@188.25.238.69) | |
| 11:11.01 | *** join/#brlcad d_rossberg (~rossberg@66-118-151-70.static.sagonet.net) | |
| 11:37.11 | Notify | 03BRL-CAD:phoenixyjll * 57016 brlcad/trunk/src/libbrep/boolean.cpp: Define a macro to make the connectivity graph an optional choice. |
| 11:37.28 | Notify | 03BRL-CAD:phoenixyjll * 57017 brlcad/trunk/src/libbrep/boolean.cpp: Don't use start, end to represent which part of the outerloop it occupies, which can only represent a single interval. Use array of intervals instead. |
| 11:37.30 | Notify | 03BRL-CAD:phoenixyjll * 57018 brlcad/trunk/src/libbrep/boolean.cpp: Use ON_ClassArray instead of ON_SimpleArray when the element type is std::pair. |
| 11:37.34 | Notify | 03BRL-CAD:tbrowder2 * 57019 brlcad/trunk/TODO: use current file name (no wonder I could never find that info, are we sure this is the best name? not very intuitive) |
| 11:37.36 | Notify | 03BRL-CAD:tbrowder2 * 57020 brlcad/trunk/doc/docbook/system/man5/en/gattributes.xml: remove empty section |
| 11:37.38 | Notify | 03BRL-CAD:tbrowder2 * 57021 brlcad/trunk/doc/docbook/system/mann/en/attr.xml: add important reference to gattributes |
| 11:44.31 | Notify | 03BRL-CAD:iiizzzaaakkk * 57022 brlcad/trunk/src/librt/primitives/hrt/hrt.c: Added comment explaining the importance of the new constant 1.25 in rt_hrt_prep() |
| 12:20.19 | *** join/#brlcad caen23 (~caen23@92.83.181.251) | |
| 12:37.47 | Notify | 03BRL-CAD:iiizzzaaakkk * 57023 brlcad/trunk/src/librt/primitives/hrt/hrt.c: Change line comment to doxygen block comment and format it to column 70 |
| 12:55.06 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 12:57.59 | brlcad | Izak_: what does "takes care of" mean? |
| 12:58.16 | brlcad | is the upper displacement exactly 25%? |
| 12:58.34 | brlcad | or is it some value and 25% "should be enough" to encapsulate it? |
| 12:59.42 | brlcad | the comment should say what it is (which you did great) but also the precision and/or accuracy |
| 13:03.06 | Izak_ | brlcad:It is some value and 25% "should be enough" to encapsulate it |
| 13:13.34 | Ch3ck_ | brlcad: i'm currently using you test for db_walk_tree so I can adapt to my pull_comb() routine but " .. -lbu .." argument for gcc tells me "Error: cannot find -lbu" |
| 13:14.02 | Ch3ck_ | brlcad so how to i supply -lu correctly in "mat = (matp_t)bu_malloc(sizeof(mat_t), "cur_mat"); |
| 13:14.05 | Ch3ck_ | <PROTECTED> |
| 13:14.39 | Ch3ck_ | nop here is the corrct argument: "gcc tree_walk_test.c -L/usr/brlcad/lib -lrt -lbu -I/usr/brlcad/include -I/usr/brlcad/include/brlcad |
| 13:14.44 | Ch3ck_ | ? |
| 13:18.03 | Izak_ | ``Erik: brlcad: What about this for that comment http://paste.kde.org/pc81455af/ ? |
| 13:21.11 | Notify | 03BRL-CAD:carlmoore * 57024 brlcad/trunk/src/conv/step/ON_Brep.cpp: fix spellings |
| 13:28.08 | Notify | 03BRL-CAD:iiizzzaaakkk * 57025 brlcad/trunk/src/librt/primitives/hrt/hrt.c: Adding precision aspects to comment |
| 13:33.10 | Notify | 03BRL-CAD:starseeker * 57026 NIL: See if we can separate out the importer and exporter for STEP |
| 13:38.06 | Notify | 03BRL-CAD:starseeker * 57027 brlcad/trunk/src/conv/step/ON_Brep.cpp: Don't actually use STEPEntity in this file |
| 13:41.47 | Notify | 03BRL-CAD Wiki:KeshaSShah * 6013 /wiki/User:KeshaSShah/GSoC13/Reports: /* Week 10 */ |
| 13:41.53 | ``Erik | bummer, "kitten of death" is gone http://sourceforge.net/p/sbcl/sbcl/ci/b7d22ded1428e8d3e87c37164aa6742dd28aa6ce/ |
| 13:44.50 | brlcad | Izak_: the comment should reflect that uncertainty, which is fine for now |
| 13:44.52 | brlcad | but what makes you think 25% should be enough? |
| 13:45.36 | brlcad | bounding boxes should be a tight-fitting as possible, so we may need some analytic method to bound it |
| 13:47.26 | brlcad | Ch3ck_: that command line looks right conceptually |
| 13:47.40 | brlcad | so you have a /usr/brlcad/lib/libbu.so ? |
| 13:50.50 | Ch3ck_ | no |
| 13:51.26 | Ch3ck_ | i don't have any /usr/brlcad/lib/ |
| 13:51.37 | Ch3ck_ | directory. |
| 13:54.20 | Ch3ck_ | but i have /usr/lib |
| 13:56.53 | brlcad | heh |
| 13:57.05 | brlcad | then what is -L/usr/brlcad/lib supposed to mean? |
| 13:58.05 | Ch3ck_ | well grepped libbu.so and its in /usr/brlcad_build/lib/ |
| 13:58.11 | Ch3ck_ | is this ok? |
| 13:58.28 | brlcad | depends what you mean by ok |
| 13:58.37 | Ch3ck_ | so I could just modify the args to point to these? |
| 13:58.39 | brlcad | there's nothing "wrong", you can build/install anywhere |
| 13:59.18 | Notify | 03BRL-CAD:iiizzzaaakkk * 57028 brlcad/trunk/src/librt/primitives/hrt/hrt.c: Added comment explaining the importance of the new constant 1.25 in rt_hrt_bbox() |
| 13:59.19 | Ch3ck_ | well meaning i could modify the patch from /usr/brlcad/lib .. to /usr/brlcad_build/lib/ .. ? |
| 13:59.19 | brlcad | Ch3ck_: you should "man gcc" and understand what each of those arguments means |
| 13:59.30 | Ch3ck_ | already |
| 13:59.31 | brlcad | you could, but is that right? |
| 13:59.53 | brlcad | if you don't know what that -L or -I mean, you have no idea what providing a new path means |
| 13:59.55 | Ch3ck_ | and -l gives an argument to a directory y |
| 14:00.01 | brlcad | it does not |
| 14:00.14 | Ch3ck_ | ?? |
| 14:00.20 | brlcad | -l specifies the name of a library |
| 14:00.37 | Ch3ck_ | so since i don't have the /usr/brlcad/lib |
| 14:00.45 | Ch3ck_ | so what do i don in this case? |
| 14:01.01 | brlcad | what does -L/usr/brlcad/lib mean? |
| 14:01.33 | Ch3ck_ | means include the libraries in /usr/brlcad/lib |
| 14:01.38 | Ch3ck_ | right? |
| 14:01.41 | brlcad | no |
| 14:02.28 | Ch3ck_ | so what does it mean exactly? |
| 14:02.52 | brlcad | What does "man gcc" say? |
| 14:03.23 | Izak_ | still working on prep() |
| 14:03.34 | brlcad | you're running the gcc command, so it's assumedly an option to that command which should be readily documented |
| 14:03.50 | brlcad | it's a large manual page, so you have to go down a long ways before you get to the explanation of -L |
| 14:04.13 | *** join/#brlcad vladbogo (~vladbogo@188.25.238.69) | |
| 14:04.20 | brlcad | Izak_: understandable, that's why it's important to document the uncertainty the moment it's written |
| 14:04.26 | Ch3ck_ | well looks like -L speciifies a directory |
| 14:04.42 | Ch3ck_ | moving down to the bottom ..to look at further explanantions.. |
| 14:04.43 | brlcad | Ch3ck_: is that was the docs said? |
| 14:04.56 | Ch3ck_ | yes |
| 14:04.59 | brlcad | that's good, the first mention is -Ldir |
| 14:05.14 | brlcad | but then that's not very helpful by itself ;) |
| 14:05.16 | Ch3ck_ | here is how it was specified ( -Ldir |
| 14:05.32 | brlcad | so further down, it'll explain what it means |
| 14:05.40 | Ch3ck_ | ok |
| 14:06.13 | brlcad | the 8th occurance of "-L" is where it's explained |
| 14:08.12 | brlcad | find it yet? |
| 14:08.28 | Ch3ck_ | not yet |
| 14:08.38 | Ch3ck_ | still scrolling realling long.. |
| 14:09.29 | Ch3ck_ | found it..:) |
| 14:10.10 | brlcad | helps to learn how to use the searching features in "less" ;) |
| 14:10.43 | brlcad | "/" .. "-L" .. "/[enter]" 7 times |
| 14:11.12 | brlcad | so what does it say? |
| 14:11.18 | brlcad | very short and simple |
| 14:12.50 | Ch3ck_ | -ldir : tells the linker to search "dir" library and also check in "-L/dir" directories for more routines |
| 14:13.14 | brlcad | "-ldir" ?? |
| 14:13.56 | brlcad | did you mean -Ldir? |
| 14:14.29 | brlcad | because there's -L and -l ... you should understand both |
| 14:15.14 | Ch3ck_ | well "-ldir": this tells the gcc compiler to search to the library specified by'dir' and also check in the directory specified by "-Ldir" |
| 14:15.34 | vladbogo | hi all. I am trying to integrate the new display manager in archer. I've seen that archer only uses ogl dm at the moment but I couldn't find any infos on how to add the new dm. Could you give me some hints on where to look? |
| 14:15.35 | Ch3ck_ | is that simple enough? |
| 14:15.41 | brlcad | this is fundamental information relevant to nearly all compilers |
| 14:15.41 | brlcad | there is no "-ldir" |
| 14:15.41 | brlcad | so no |
| 14:15.52 | brlcad | where are you getting -ldir from? |
| 14:16.02 | Ch3ck_ | -l is the option |
| 14:16.14 | brlcad | it is an option, yes |
| 14:16.16 | Ch3ck_ | and dir is the library |
| 14:16.16 | brlcad | what does that option mean? |
| 14:16.43 | Ch3ck_ | -l tells the compiler to load a library |
| 14:17.05 | Ch3ck_ | specified as 'dir' in "-ldir" |
| 14:17.21 | brlcad | no |
| 14:18.05 | brlcad | -l tell the compiler to LINK a library |
| 14:18.17 | brlcad | and it is *not* specified as 'dir' in -ldir |
| 14:18.25 | brlcad | there is no mention of -ldir in the manual page |
| 14:18.26 | Ch3ck_ | ok here is how is explained in the man page -ldirectory |
| 14:18.32 | Ch3ck_ | as one word |
| 14:18.42 | Ch3ck_ | where '-l' is the option |
| 14:18.43 | brlcad | show me |
| 14:18.53 | Ch3ck_ | ok |
| 14:20.47 | Ch3ck_ | http://paste.kde.org/pd5177295/ brlcad : here is the link |
| 14:21.21 | brlcad | where in that link does it day -ldir or -ldirectory? |
| 14:22.48 | Ch3ck_ | sory for the typo |
| 14:23.02 | brlcad | you must realize by now that programming is BUILT on precise communication |
| 14:23.06 | Ch3ck_ | i meant library ;) |
| 14:23.10 | Notify | 03BRL-CAD:starseeker * 57029 brlcad/trunk/src/conv/step/CMakeLists.txt: Put the g-step and step-g program sources into their own subdirctories |
| 14:23.12 | Ch3ck_ | yeah |
| 14:23.14 | brlcad | that's not a typo, it's entirely the wrong concept |
| 14:23.35 | Ch3ck_ | I meant library and my fingers kept writing directory. |
| 14:24.10 | brlcad | so lets try this again |
| 14:24.18 | brlcad | what does -L/usr/brlcad/lib mean? |
| 14:24.39 | brlcad | (all by itself) |
| 14:25.29 | brlcad | Izak_: updated comment looks good |
| 14:25.38 | brlcad | thanks |
| 14:27.38 | Ch3ck_ | brlcad: it means add the libraries in /usr/brlcad/lib |
| 14:27.50 | brlcad | no... |
| 14:28.26 | brlcad | the line in the man page is all of 13 words to explain it |
| 14:29.18 | Ch3ck_ | ok search libraries named /usr/brlcad/lib when linking |
| 14:29.18 | brlcad | could use half as many words, but it doesn't mean add libraries |
| 14:29.42 | brlcad | heh closer but still not accurate |
| 14:29.54 | brlcad | there are no *libraries* named /usr/brlcad/lib |
| 14:29.58 | brlcad | that's a directory |
| 14:30.15 | Ch3ck_ | ok |
| 14:30.37 | Ch3ck_ | brlcad: search library named "/usr/brlcad/lib" when linking |
| 14:30.53 | brlcad | there is no LIBRARY named "/usr/brlcad/lib" |
| 14:31.51 | brlcad | try again... you're only 1-word wrong |
| 14:31.51 | Ch3ck_ | search the libraries in "/usr/brlcad/lib" when linking |
| 14:32.13 | Ch3ck_ | i mean library |
| 14:32.54 | brlcad | this would have been accurate: search the DIRECTORY named "/usr/brlcad/lib" when linking |
| 14:33.09 | Ch3ck_ | ok |
| 14:33.20 | brlcad | search for libraries in the "/usr/brlcad/lib" directory when linking |
| 14:33.27 | brlcad | would have also been correct |
| 14:34.13 | brlcad | add /usr/brlcad/lib to the list of directories searched when linking, also accurate |
| 14:34.19 | brlcad | do you understand the difference? |
| 14:34.28 | Notify | 03BRL-CAD:iiizzzaaakkk * 57030 brlcad/trunk/src/librt/primitives/hrt/hrt.c: Sorry! removing unused variables in rt_hrt_shot() |
| 14:34.51 | Ch3ck_ | yeah.. |
| 14:34.57 | brlcad | a library is not a directory, a library is a file |
| 14:35.03 | Ch3ck_ | :) get it now.. |
| 14:35.19 | brlcad | "libbu.so.12.0.1" is a library |
| 14:35.27 | Ch3ck_ | ok |
| 14:35.37 | brlcad | "libX11.so" is probably a library (or a link to a library) |
| 14:35.56 | brlcad | so this is basic compiling instructions |
| 14:36.19 | brlcad | when you compile, the compiler needs to know four+ things |
| 14:36.26 | brlcad | 1) what to compile |
| 14:36.32 | brlcad | 2) where to put the output |
| 14:36.37 | brlcad | 3) where to find headers |
| 14:36.40 | brlcad | 4) where to find libraries |
| 14:36.50 | brlcad | and technically 5) what libraries |
| 14:36.52 | Ch3ck_ | ok |
| 14:37.08 | brlcad | which of those is -L/usr/brlcad/lib ? |
| 14:37.21 | Ch3ck_ | src |
| 14:37.39 | Ch3ck_ | -L/usr/brlcad/src |
| 14:37.40 | brlcad | what? |
| 14:37.54 | brlcad | of options 1,2,3,4,5 .. which is -L/usr/brlcad/lib |
| 14:39.05 | Ch3ck_ | ok option 5 |
| 14:39.33 | brlcad | no |
| 14:39.35 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 14:39.48 | Ch3ck_ | option 4 |
| 14:40.06 | brlcad | so when I asked: 10:34 < brlcad> do you understand the difference? |
| 14:40.17 | brlcad | and you said "yeah.." .. that was really "no.." :) |
| 14:40.38 | Ch3ck_ | -l gives a library which a file |
| 14:40.48 | Ch3ck_ | and -L gives a directory |
| 14:41.00 | brlcad | that's correct |
| 14:41.05 | Ch3ck_ | which is option 4 |
| 14:41.10 | brlcad | good |
| 14:41.18 | Ch3ck_ | where to find the libraries. |
| 14:41.20 | brlcad | so of those 5, which is -I then? |
| 14:41.48 | brlcad | this is your compile line: |
| 14:41.48 | brlcad | 10:34 < brlcad> do you understand the difference? |
| 14:41.51 | brlcad | oops |
| 14:42.00 | brlcad | gcc tree_walk_test.c -L/usr/brlcad/lib -lrt -lbu -I/usr/brlcad/include -I/usr/brlcad/include/brlcad |
| 14:42.04 | Ch3ck_ | brlcad: -I is option 3 |
| 14:42.09 | brlcad | excellent |
| 14:42.11 | Ch3ck_ | where to find the headers |
| 14:42.27 | brlcad | so then it should be obvious which of those is -llib |
| 14:42.31 | Ch3ck_ | yes |
| 14:42.41 | brlcad | which is #2 ? |
| 14:43.16 | Ch3ck_ | option 2 is -I |
| 14:43.32 | brlcad | you just said: brlcad: -I is option 3 |
| 14:43.33 | Ch3ck_ | thats is -I/usr/brlcad/include/brlcad |
| 14:43.46 | brlcad | so how is it also #2? |
| 14:44.23 | Ch3ck_ | yeah there is no option 2 so output is printed to screen |
| 14:45.02 | Ch3ck_ | since there is no output redirection |
| 14:45.17 | brlcad | no |
| 14:45.23 | brlcad | you are right that there is no #2 specified |
| 14:45.29 | brlcad | but what is the output? |
| 14:45.38 | brlcad | what is the output from compiling? |
| 14:46.49 | d_rossberg | vladbogo: have you looked at libtclcad? |
| 14:47.41 | brlcad | Ch3ck_: compiling a source file generates what? |
| 14:48.06 | Ch3ck_ | an obj file |
| 14:48.17 | brlcad | good |
| 14:48.21 | brlcad | but it actually doesn't do that by default |
| 14:48.28 | brlcad | because you didn't specify a #2 |
| 14:48.50 | brlcad | if you read through "man gcc" further, or a tutorial on the web, you'd find that the -c option makes gcc output object code |
| 14:48.55 | brlcad | and that would be your #2 |
| 14:49.06 | Ch3ck_ | ok |
| 14:49.10 | brlcad | since you haven't specified the output, it attempts to compile AND link the application |
| 14:49.16 | Ch3ck_ | never heard or use that. |
| 14:49.18 | Ch3ck_ | ;) |
| 14:49.19 | brlcad | so the output is a binary application |
| 14:49.29 | Ch3ck_ | yes |
| 14:49.32 | brlcad | which by default for gcc is called "a.out" |
| 14:49.40 | Ch3ck_ | yeah |
| 14:50.14 | brlcad | you could change that name with an option, instead of using -c or the default "a.out" |
| 14:50.25 | brlcad | i'll let you read the man page to figure that out, if you're interested |
| 14:50.41 | brlcad | but looking back at this command: gcc tree_walk_test.c -L/usr/brlcad/lib -lrt -lbu -I/usr/brlcad/include -I/usr/brlcad/include/brlcad |
| 14:50.55 | brlcad | make sure you understand it all -- any questions as to what each piece means? |
| 14:51.13 | Ch3ck_ | yes |
| 14:51.29 | brlcad | okay, what questions? |
| 14:52.01 | Ch3ck_ | I have one: since i don't have a '/usr/brlcad/lib' |
| 14:52.09 | Ch3ck_ | what do i do in this case |
| 14:52.21 | brlcad | well what do you think the point of specifying /usr/brlcad/lib was? |
| 14:52.56 | Ch3ck_ | telling it to search the /usr/brlcad/lib directory |
| 14:53.04 | brlcad | right, but why? |
| 14:53.16 | brlcad | search for what? |
| 14:53.17 | Ch3ck_ | since the routines and defined there |
| 14:53.45 | Notify | 03BRL-CAD:starseeker * 57031 brlcad/trunk/src/conv/step/CMakeLists.txt: Update CMake build logic. Try to make the fedex_plus generation process more robust against parallel building. |
| 14:54.17 | brlcad | Izak_: make sure you review your code for any other numeric constants |
| 14:54.41 | brlcad | the routines are not defined by a directory |
| 14:54.56 | Ch3ck_ | in a directory |
| 14:55.30 | brlcad | right, it's searching for *libraries* in a directory .. what libraries is it looking for? |
| 14:55.54 | Ch3ck_ | libbu and librt |
| 14:56.12 | brlcad | excellent |
| 14:56.30 | brlcad | so you're compiling your tree_walk_test.c, you need to link against libbu and librt |
| 14:56.39 | Ch3ck_ | here is my current command "gcc tree_walk_test.c -L/usr/brlcad/src -lrt -lbu -I/usr/brlcad/include -I/usr/brlcad/include/brlcad" |
| 14:56.55 | brlcad | so you specify -lrt and -lbu ... and you have to tell it where to find those libraries, in what directory do you have them? |
| 14:57.06 | Ch3ck_ | but it tells me -lbu not found |
| 14:57.10 | Ch3ck_ | ok |
| 14:57.31 | brlcad | it has no idea where YOU put libbu or librt |
| 14:57.34 | brlcad | you have to tell it |
| 14:57.48 | brlcad | which of the 1,2,3,4,5 tells the compiler where to find a library? |
| 14:59.18 | Notify | 03BRL-CAD:starseeker * 57032 (brlcad/trunk/src/conv/step/g-step/CMakeLists.txt brlcad/trunk/src/conv/step/step-g/CMakeLists.txt): comment tweaks |
| 14:59.26 | Ch3ck_ | option 3 |
| 15:00.02 | brlcad | what was option 3? |
| 15:01.03 | Ch3ck_ | Sorry just lost it from my screen |
| 15:01.09 | Notify | 03BRL-CAD:starseeker * 57033 brlcad/trunk/src/conv/step/step-g/CMakeLists.txt: Don't ignore files that aren't there |
| 15:01.12 | Ch3ck_ | so can't really say for sure what it was ;) |
| 15:01.23 | brlcad | 10:36 < brlcad> 1) what to compile |
| 15:01.23 | brlcad | 10:36 < brlcad> 2) where to put the output |
| 15:01.23 | brlcad | 10:36 < brlcad> 3) where to find headers |
| 15:01.23 | brlcad | 10:36 < brlcad> 4) where to find libraries |
| 15:01.23 | brlcad | 10:36 < brlcad> and technically 5) what libraries |
| 15:01.46 | Ch3ck_ | :) |
| 15:01.48 | brlcad | so you just guessed?? |
| 15:02.00 | Ch3ck_ | ok yes ;) |
| 15:02.02 | brlcad | please don't waste my time, I have better things to do than deal with you guessing |
| 15:02.11 | brlcad | i'm trying to help you understand |
| 15:02.18 | brlcad | if you're not interested in trying, let me know |
| 15:02.20 | Ch3ck_ | yeah i appreciate that.. |
| 15:02.38 | Ch3ck_ | i'm really interested in learning this |
| 15:02.44 | brlcad | which of the 1,2,3,4,5 tells the compiler where to find a library? |
| 15:02.48 | Ch3ck_ | since its very pivotal |
| 15:02.57 | Ch3ck_ | 4 |
| 15:03.00 | Ch3ck_ | option 4 |
| 15:03.05 | brlcad | this is very fundamental |
| 15:03.26 | brlcad | every developer should understand #1-#5 intimately and know how to compile manually like this |
| 15:03.57 | brlcad | so again, the compiler has no way of knowing where libbu or librt are |
| 15:04.08 | brlcad | so you have to tell it, via #4 .. which was which gcc option? |
| 15:04.14 | Ch3ck_ | so i'll have to give -I first |
| 15:04.21 | Ch3ck_ | before -L |
| 15:04.26 | Ch3ck_ | and -l |
| 15:04.32 | Ch3ck_ | right? |
| 15:04.36 | brlcad | nope |
| 15:04.41 | brlcad | what is -I? |
| 15:04.56 | Ch3ck_ | it specifies where to fine headers |
| 15:05.17 | brlcad | yes |
| 15:05.30 | brlcad | from what you've described thus far, you are not faced with a "I cannot find the header" error |
| 15:05.41 | brlcad | what is the error you see? |
| 15:05.50 | Ch3ck_ | -lbu not found |
| 15:06.00 | brlcad | libbu is not found |
| 15:06.02 | Ch3ck_ | thats the error |
| 15:06.17 | brlcad | libbu is a library and -lbu (#5) is how it was specified |
| 15:06.26 | brlcad | how do you tell the compiler where to find libraries? |
| 15:06.39 | brlcad | what option? -l, -I, -L, -c, -o, -? |
| 15:06.44 | Ch3ck_ | by specifying with -L |
| 15:07.00 | brlcad | so you need to specify a -L/path/where/it/can/find/libbu |
| 15:07.06 | brlcad | where is libbu? |
| 15:07.29 | Ch3ck_ | /usr/brlcad/src/ |
| 15:07.43 | brlcad | I doubt it |
| 15:07.51 | brlcad | libbu is a file |
| 15:07.51 | Ch3ck_ | or /usr/brlcad/src/libbu |
| 15:07.57 | brlcad | that is a directory |
| 15:08.01 | brlcad | libbu is a file |
| 15:08.38 | brlcad | if "ls /usr/brlcad/src/libbu*.so" fails, you have the wrong path |
| 15:09.01 | Ch3ck_ | ok grepping |
| 15:09.14 | brlcad | src/libbu is a directory containing the sources to libbu |
| 15:09.21 | brlcad | those are compiled when you run cmake+make |
| 15:09.34 | brlcad | they are compiled into a libbu library file |
| 15:10.01 | brlcad | if you just compile, they will be in your build tree somewhere |
| 15:10.12 | brlcad | if you compile and install, they will be in your build tree somewhere and in your install tree |
| 15:10.33 | Ch3ck_ | i find libbu.so n /usr/brlcad_build/lib |
| 15:10.36 | brlcad | /usr/brlcad is often an install tree, which is where the example you copy-pasted comes from |
| 15:10.58 | brlcad | is /usr/brlcad_build a build tree or an install tree? |
| 15:11.16 | Ch3ck_ | build tree |
| 15:11.23 | brlcad | are you sure? |
| 15:11.36 | brlcad | just because YOU named it brlcad_build doesn't mean anything |
| 15:11.46 | brlcad | where did you run cmake? |
| 15:11.49 | Ch3ck_ | i built from this from here so i gues its here |
| 15:12.01 | Ch3ck_ | here: brlcad_build |
| 15:12.13 | brlcad | okay, so then it is a build tree |
| 15:12.29 | brlcad | that will work, but do remember that it is NOT an install tree |
| 15:12.35 | brlcad | there is a difference and sometimes it will matter |
| 15:12.42 | Ch3ck_ | I also exec 'make install' from here |
| 15:13.00 | brlcad | when you run make install, where does it install into? |
| 15:13.09 | Ch3ck_ | so i guess it'll also be the install tree |
| 15:13.44 | brlcad | there is absolutely no point in having a build tree be the same path as the install tree |
| 15:13.47 | *** join/#brlcad mpictor_ (~mpictor_@2600:1015:b113:a117::83e:fc01) | |
| 15:13.48 | brlcad | that's just asking for problems |
| 15:13.52 | Ch3ck_ | /usr/brlcad_build/bin |
| 15:13.57 | brlcad | no |
| 15:14.15 | brlcad | that is merely where binaries are put when they are compiled |
| 15:14.27 | brlcad | your build path contains "lib", "bin" and several other directories |
| 15:14.34 | brlcad | your build path is specified during cmake |
| 15:14.39 | brlcad | what was your cmake line? |
| 15:14.59 | brlcad | your install path is specified during cmake as well via options |
| 15:15.20 | Ch3ck_ | cmake ../brlcad -DBRLCAD_BUILD_TYPE=Debug |
| 15:15.29 | Ch3ck_ | from the brlcad_build directory |
| 15:15.37 | brlcad | oh my |
| 15:15.38 | brlcad | okay |
| 15:16.04 | brlcad | so that means you have sources in /usr/brlcad |
| 15:16.16 | brlcad | build output in /usr/brlcad_build |
| 15:16.51 | brlcad | and you're probably installing into /usr/brlcad/dev-7.24.1 |
| 15:16.53 | Ch3ck_ | exactly |
| 15:17.27 | brlcad | that's very .. unusual :) |
| 15:18.26 | brlcad | sources would normally be in your home directory, build directory too, then you install into /usr/brlcad/dev-* |
| 15:18.28 | Ch3ck_ | well thats how its been working since i started compiling ;) |
| 15:18.49 | brlcad | well, that's just odd for many reasons |
| 15:19.02 | brlcad | you would have had to become root just to extract the sources, and to create your build dir |
| 15:19.18 | brlcad | running sudo to get past your problems is ... not good |
| 15:19.23 | ``Erik | waits for Ch3ck_ to say he's been editing and compiling as root |
| 15:19.35 | Ch3ck_ | yes |
| 15:19.40 | brlcad | should understand what you're doing and EXACTLY why you're doing anything as root |
| 15:20.05 | *** join/#brlcad mpictor_ (~mpictor_@2600:1015:b113:a117::83e:fc01) | |
| 15:20.17 | Ch3ck_ | thats how i've been working on BRL-CAD |
| 15:20.23 | brlcad | that's just .. wrong |
| 15:20.38 | brlcad | and it's not BRL-CAD's fault .. it's your doing |
| 15:20.39 | ``Erik | poor practice, could easily lead to messing up the install |
| 15:20.53 | brlcad | could easily lead to messing up your entire operating system |
| 15:21.18 | Izak_ | that already happened to me once |
| 15:21.24 | Ch3ck_ | well since I tried doing an svn checkout a normal user and it failed |
| 15:21.34 | Ch3ck_ | so i started working as root |
| 15:21.44 | ``Erik | what was the error message it said? permission denied on writing the files? |
| 15:21.55 | Ch3ck_ | yes |
| 15:22.18 | ``Erik | that means you were trying to check it out into the wrong place... :) do it in your user home dir and it's all good |
| 15:22.38 | Ch3ck_ | ok |
| 15:23.02 | brlcad | you should fix that now, compile and build in your home directory |
| 15:23.03 | Ch3ck_ | so in this case what do i do now get a fresh checkout as a normal user |
| 15:23.15 | Ch3ck_ | ok |
| 15:23.26 | ``Erik | Ch3ck_: yes, a fresh new checkout as your mortal user in yur mortal user home directory |
| 15:23.33 | Ch3ck_ | but will it go when not in superusr mode. |
| 15:23.49 | brlcad | if it doesn't, you already screwed other things up |
| 15:23.54 | brlcad | it should work just fine |
| 15:24.23 | brlcad | you should be able to "sudo mv /usr/brlcad ~/brlcad && sudo chown -R Ch3ck ~/brlcad" |
| 15:24.40 | brlcad | instead of getting a whole new checkout |
| 15:25.07 | brlcad | then I'd suggest just deleting your existing build and install trees |
| 15:25.28 | brlcad | sudo rm -rf /usr/brlcad_build |
| 15:25.29 | brlcad | rm -rf ~/brlcad/dev-* |
| 15:25.36 | brlcad | (after the chown) |
| 15:25.58 | ``Erik | Ch3ck_: how you have things set up on brlcad.org is good... with ~/code/brlcad/ and ~/code/brlcad_build/ ... if you can do similar on your personal machine... |
| 15:26.24 | brlcad | then: mkdir ~/brlcad/.cmake && cd ~/brlcad/.cmake && cmake .. -DBRLCAD_BUILD_TYPE=Debug |
| 15:26.42 | brlcad | or what ``Erik said |
| 15:26.55 | Notify | 03BRL-CAD:starseeker * 57034 brlcad/trunk/src/other/stepcode/src/express/entity.c: Clear declaration-after-statement warnings |
| 15:27.04 | Izak_ | How do I add a mortal user to sudoers list? |
| 15:27.16 | brlcad | don't |
| 15:27.21 | Ch3ck_ | but when i try moving files on my personal machine it says user not on sudoers list |
| 15:27.26 | brlcad | just do everything I wrote as sudo as root |
| 15:27.30 | brlcad | then don't become root again :) |
| 15:27.39 | Ch3ck_ | ok |
| 15:28.08 | ``Erik | heh, .cmake/ ? :) I'm using src/brlcad/build/gcc/ src/brlcad/build/clang/ src/brlcad/build/gccopt/ etc myself |
| 15:28.37 | brlcad | ``Erik: I stash build dirs into the source dir it goes with because I usually have N build dirs all going at once |
| 15:28.48 | brlcad | different checkouts doing different things |
| 15:29.16 | ``Erik | ah, I run many builds out of the same source tree, to try to minimize portability issues |
| 15:29.20 | Izak_ | hhmm |
| 15:29.57 | brlcad | most of the things I'm doing can't go into the same source tree |
| 15:30.06 | Ch3ck_ | hungry! gotta get some ATP! fast |
| 15:30.39 | brlcad | one checkout, I'm halfway done adding a new primitive, another has a lot of affinity stuff, another is set up for performance profiling, another for the stable branch, ...etc |
| 15:31.07 | ``Erik | git branch, git stash, *cough* O:-) |
| 15:31.42 | brlcad | that's really no different |
| 15:32.07 | brlcad | other than git tracking commits into them for me |
| 15:32.12 | Notify | 03BRL-CAD:starseeker * 57035 (brlcad/trunk/src/other/stepcode/src/fedex_plus/classes.c brlcad/trunk/src/other/stepcode/src/fedex_plus/classes_misc.c): more declaration-after-statement warnings |
| 15:32.33 | brlcad | I still need to keep the checkout |
| 15:32.59 | Notify | 03BRL-CAD:starseeker * 57036 (brlcad/trunk/src/other/stepcode/src/clstepcore/ExpDict.h brlcad/trunk/src/other/stepcode/src/clstepcore/STEPattribute.h and 4 others): clear 'extra ';' inside a class' warnings |
| 15:33.01 | brlcad | because three or four are edited at the same time, different overlapping sets of patches and different states of testing |
| 15:33.26 | brlcad | I don't stop working on one and swtich to another |
| 15:34.40 | Notify | 03BRL-CAD:starseeker * 57037 brlcad/trunk/src/other/stepcode/src/cllazyfile/instMgrHelper.h: Add newline |
| 15:35.22 | Notify | 03BRL-CAD:starseeker * 57038 (brlcad/trunk/src/other/stepcode/src/base/judy/src/judyS2Array.h brlcad/trunk/src/other/stepcode/src/base/judy/src/judySArray.h): Match type to the _buff type - mismatch was an error in clang |
| 15:40.21 | starseeker | will need to do another github fork for stepcode pretty soon... |
| 15:41.25 | starseeker | wonders if some of the functionality in our step wrapper can/should be added to the stepcode classes directly... |
| 16:07.45 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 16:38.24 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 16:44.50 | Notify | 03BRL-CAD Wiki:Phoenix * 6014 /wiki/User:Phoenix/GSoc2013/Reports: /* Week 10 */ |
| 17:40.14 | *** join/#brlcad ejno (~ejno@unaffiliated/kazaik) | |
| 17:44.33 | Notify | 03BRL-CAD Wiki:Harman052 * 6015 /wiki/User:Harman052/GSoc2013/Logs: |
| 17:53.22 | Notify | 03BRL-CAD:carlmoore * 57039 brlcad/trunk/src/conv/nmg/g-nmg.c: add P to the Usage statement |
| 18:36.38 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 18:40.31 | Notify | 03BRL-CAD:starseeker * 57040 (brlcad/trunk/src/conv/step/g-step/ON_Brep.cpp brlcad/trunk/src/other/stepcode/src/clstepcore/STEPcomplex.cc): Tweak assignment of unit entities to the aggregate. |
| 19:27.06 | Notify | 03BRL-CAD Wiki:NyahCh3ck20 * 6016 /wiki/User:NyahCh3ck20/GSoc2013/Coding_Repor: /* 19 August - 25 August */ |
| 19:30.11 | *** join/#brlcad caen23 (~caen23@92.83.181.251) | |
| 19:56.48 | Notify | 03BRL-CAD:starseeker * 57041 brlcad/trunk/src/conv/step/g-step/ON_Brep.cpp: orient the start and end points according to whether the edge is flipped according to the trim... still not sure I've got this right, but the 'closed curve' in 3 space actually did re-use the edge... |
| 20:14.40 | *** join/#brlcad mpictor (~mark@2601:d:b280:b5:d63d:7eff:fe2d:2505) | |
| 20:32.10 | Notify | 03BRL-CAD Wiki:Vladbogolin * 6017 /wiki/User:Vladbogolin/GSoC2013/Logs: /* Week 10 */ |
| 20:57.00 | Notify | 03BRL-CAD:starseeker * 57042 brlcad/trunk/src/other/stepcode/src/express/ordered_attrs.cc: Windows doesn't have strcasecmp |
| 20:58.06 | Notify | 03BRL-CAD:starseeker * 57043 brlcad/trunk/misc/CMakeLists.txt: Just ignore the directory, like other misc directories not involved with CMake. |
| 21:05.18 | Notify | 03BRL-CAD:starseeker * 57044 brlcad/trunk/misc/CMakeLists.txt: Oh yeah, don't add the directory |
| 21:07.24 | Notify | 03BRL-CAD:starseeker * 57045 (brlcad/trunk/src/other/stepcode/src/express/express.c brlcad/trunk/src/other/stepcode/src/express/fedex.c): If we're going to make this a library function, put it in express.c |
| 21:07.53 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 21:22.49 | Notify | 03BRL-CAD:starseeker * 57046 brlcad/trunk/src/other/stepcode/src/express/express.c: Ah, right, don't have the helper function here. |
| 21:25.22 | Notify | 03BRL-CAD:starseeker * 57047 brlcad/trunk/src/other/stepcode/src/express/express.c: Include sc_version_string |
| 21:41.40 | Ch3ck_ | brlcad: finally gave the correct arguments to the test but i get the following error with ./a.out:./a.out: error while loading shared libraries: librt.so.20: cannot open shared object file: No such file or directory |
| 21:41.54 | Ch3ck_ | So I don't understand what to do here |
| 21:42.30 | Ch3ck_ | exit |
| 21:42.53 | Ch3ck_ | Gotta go get some rest and continue testing 2moro ;) |
| 21:43.22 | Notify | 03BRL-CAD Wiki:IIIzzzaaakkk * 6018 /wiki/User:Izak/GSOC_2013_logs: /* August 19th to August 24th */ |
| 21:44.17 | *** join/#brlcad Ch3ck (~Ch3ck@66-118-151-70.static.sagonet.net) | |
| 22:29.28 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 22:40.47 | *** join/#brlcad kesha (~kesha@14.139.122.114) | |
| 23:46.43 | Notify | 03BRL-CAD:starseeker * 57048 brlcad/trunk/CMakeLists.txt: This test for the Windows Winmm library should work - need to fix up macro logic so that it actually does work. |