Re: [Plplot-devel] cmake itcl/itk

2007-01-11 Thread Maurice LeBrun
Alan W. Irwin writes:
  On 2007-01-09 06:27-0600 Maurice LeBrun wrote:
   I'm trying my
   first cmake build (ok feel free to rag on me for being such a laggard :), 
   and
   those two were inexplicably not detected in my usual prefix area that
   contains all my tcl/tk/itcl/itk builds.
  
  Try setting CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH appropriately.

That worked, thanks.  But I'm surprised that:

$(CMAKE_INSTALL_PREFIX)/include
   and
$(CMAKE_INSTALL_PREFIX)/lib

are not automatically at the front of CMAKE_INCLUDE_PATH  CMAKE_LIBRARY_PATH
by default.  Our build systems have had that property for an eternity.  Would
it be hard to add?

-- 
Maurice LeBrun[EMAIL PROTECTED]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] cmake itcl/itk

2007-01-11 Thread Alan W. Irwin
On 2007-01-11 03:10-0600 Maurice LeBrun wrote:

 Alan W. Irwin writes:
  On 2007-01-09 06:27-0600 Maurice LeBrun wrote:
   I'm trying my
   first cmake build (ok feel free to rag on me for being such a laggard :), 
   and
   those two were inexplicably not detected in my usual prefix area that
   contains all my tcl/tk/itcl/itk builds.
 
  Try setting CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH appropriately.

 That worked, thanks.  But I'm surprised that:

 $(CMAKE_INSTALL_PREFIX)/include
   and
 $(CMAKE_INSTALL_PREFIX)/lib

 are not automatically at the front of CMAKE_INCLUDE_PATH  CMAKE_LIBRARY_PATH
 by default.  Our build systems have had that property for an eternity.  Would
 it be hard to add?

I was unaware that our previous build system had that capability. I
certainly have no objection to adding that capability to our cmake build
system, but it will take some experiments to see whether it is possible to
do that from inside a cmake environment.

According to the documentation you can get with the cmake --help-full
command there is a -D option equivalent of CMAKE_INCLUDE_PATH and 
CMAKE_LIBRARY_PATH that is used as a second choice if the environment
variable form is not set.  The -D option form implies that 
CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH are variables that can be re-set
from within cmake.  But you should check that.

The way you do that is inside cmake/modules/plplot.cmake try

message(original CMAKE_INCLUDE_PATH = ${CMAKE_INCLUDE_PATH})
if(CMAKE_INCLUDE_PATH)
   set(CMAKE_INCLUDE_PATH ${CMAKE_INSTALL_PREFIX}:${CMAKE_INCLUDE_PATH})
else(CMAKE_INCLUDE_PATH)
   set(CMAKE_INCLUDE_PATH ${CMAKE_INSTALL_PREFIX})
endif(CMAKE_INCLUDE_PATH)
message(revised CMAKE_INCLUDE_PATH = ${CMAKE_INCLUDE_PATH})

and similarly for CMAKE_LIBRARY_PATH

Even if the revised CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH output by the
second message command are what you want, you should also check whether
resetting them this way has the desired effect on the various find commands.

If your experiments with the variable forms work out, then you should add
additional stanzas to do the equivalent for the environment variable forms.
For example, I notice in the documentation you can set environment variables
from within cmake using

SET(ENV{CMAKE_INCLUDE_PATH} 

and you can read environment variables using, e.g., ENV CMAKE_INCLUDE_PATH.

If your experiments don't work, then we won't be able to supply this feature
in general, but the individual can always use a shell script to set
CMAKE_INSTALL_PREFIX, CMAKE_INCLUDE_PATH, and CMAKE_LIBRARY_PATH in the way
that they like.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] cmake itcl/itk

2007-01-11 Thread Werner Smekal
Hi,

The colon ...

 The way you do that is inside cmake/modules/plplot.cmake try
 
 message(original CMAKE_INCLUDE_PATH = ${CMAKE_INCLUDE_PATH})
 if(CMAKE_INCLUDE_PATH)
set(CMAKE_INCLUDE_PATH ${CMAKE_INSTALL_PREFIX}:${CMAKE_INCLUDE_PATH})
 ^
 |

... will break the Windows build, since for Windows we need a semicolon. 
But for Windows we wouldn't need this solution anyway, so we should 
embrace that lines between

if( UNIX OR CYGWIN OR MSYS )
   [...]
endif( UNIX OR CYGWIN OR MSYS )

or similar.

Regards,
Werner

-- 
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] cmake itcl/itk

2007-01-09 Thread Maurice LeBrun
A ghostly figure emerges from the mist..

Has anyone gotten the cmake build to auto-detect itcl  itk?  I'm trying my
first cmake build (ok feel free to rag on me for being such a laggard :), and
those two were inexplicably not detected in my usual prefix area that
contains all my tcl/tk/itcl/itk builds.

-- 
Maurice LeBrun


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] cmake itcl/itk

2007-01-09 Thread Arjen Markus
Maurice LeBrun wrote:

A ghostly figure emerges from the mist..

Has anyone gotten the cmake build to auto-detect itcl  itk?  I'm trying my
first cmake build (ok feel free to rag on me for being such a laggard :), and
those two were inexplicably not detected in my usual prefix area that
contains all my tcl/tk/itcl/itk builds.
  

Well, call me a laggard too: despite my experiments with Tcl and Tk, it 
never occurred
to me to do the same with Itcl/Itk. I am afraid the answer will be: you 
are the first
to raise the question at all.

Regards,

Arjen


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] cmake itcl/itk

2007-01-09 Thread Alan W. Irwin
On 2007-01-09 06:27-0600 Maurice LeBrun wrote:

 A ghostly figure emerges from the mist..

 Has anyone gotten the cmake build to auto-detect itcl  itk?

Yes, itcl and itk were detected for my two systems without problems.  I didn't
have to do anything special because I am using system versions that are
installed in a standard location.  For non-standard locations
you have to help CMake find things by setting some environment variables,
see below.

 I'm trying my
 first cmake build (ok feel free to rag on me for being such a laggard :), and
 those two were inexplicably not detected in my usual prefix area that
 contains all my tcl/tk/itcl/itk builds.

Try setting CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH appropriately.

http://www.miscdebris.net/plplot_wiki/index.php?title=Main_Page has one
particular example of how you can set those environment variables whenever
you are using software that is not installed in a standard location.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel