Andrew Ross writes:
 > On Fri, Apr 24, 2009 at 02:54:43PM -0500, Geoffrey Furnish wrote:
 > > Werner Smekal writes:
 > >  > I usually debug in the build tree. Add the "-DBUILD_TEST=ON" to the 
 > >  > cmake options and all examples will be compiled in the built tree. 
 > > 
 > > Well, I must be missing something.  When I add this, I don't find the tk
 > > examples in the build tree.  There is an examples/tk directory, which
 > > has mostly Tcl stuff within.  The xtk01, and other Tk examples are not
 > > present, and thus not compiled in the build tree.  They did show up in
 > > the install tree when I did a make install.
 > > 
 > > Is there a way to get the Tk examples/demos built in the build tree?
 > 
 > I think that because the xtk?? examples are not part of the test suite
 > they were not included in the list of examples built when BUILD_TEST=ON is
 > set.  It can be done, but will require some cmake changes.

Let me try to explain this part of my frustration.

Some time ago, Alan told me I could exhibit the Tk segfault by going into the
installed examples and running make test_interactive.

That does "work", in the sense that it does allow me, after roughly 80
clicks/returns, to see the fabled Tk segfault.

But the build flags (debug in this case) don't seem to carry over to the post
install tests.

Werner suggested -DBUILD_TEST=ON, and test in the build tree.  But the build
tree doesn't actually contain the examples in question, though it has plenty
of others.

Frankly it does not make sense to me that you should have to install in order
to be able to test.  Nor does it make sense to me that if you ask to build
tests, that they should not all be built.  This seems to me to be completely
independent of the make test_interactive business, which is really just a
convenient way to execute a test regimin, rather than a build option.  And
even if we could find a way to reason that it made sense to install before
you can test, well, the build options should be preserved.  To get a
debuggable xtk01, I had to:

configure (cmake) a debug build  (lots of missteps there)
figure out how to request verbosity
make && make install  (to get debug libs)
cd to install tree
do another make, so I could see the build steps.
Do the build of xtk01 again manually, adding in the missing options.

I've tried to leave out of this list, the things which were attributable to
me be a cmake newbie.  At this point, far as I know, the above is the
simplest procedure to do what I needed.  To me, this seems like an awful lot
of work to have to go through for something as basic as building the tests
with debug.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to