Text archives Help
- From: "J. Davison de St. Germain" <dav@cs.utah.edu>
- To: likai@cs.uoregon.edu
- Cc: scirun-users@sci.utah.edu
- Subject: Re: [SCIRUN-USERS] Libraries that SCIRun depends
- Date: Mon, 20 Oct 2003 20:01:59 -0600 (MDT)
>
My package in SCIRun depends on a library. If the library could not be
>
installed in a standard place like /usr/local/lib, I wonder how to let
>
SCIRun know the place of the library and the headers. One way might be to
>
put the library within the thirdparty software, but not sure if this is
>
good.
Hi Kai,
There are three ways to do this... listed in easiest to more
difficult order here:
1) Put your libraries in the thirdparty lib and include directories.
or
2) Once you have configured successfully, edit "configVars.mk" and
place your library include directories on the INCLUDES definition.
Create a library flag (similar to F_LIBRARY) such as MY_LIBRARY and
set it equal to -lyoulib. Edit the sub.mk file(s) that are in the
directory of your modules and add the MY_LIBRARY flag to the LIBS
line. The disadvantage of this approach is that you will have to
"fix" configVars.mk each time you re-configure.
or
3) The best fix would be to do 2 above, and add to the configure
script to check for your libs and to fill in the new make vars...
however, it is not always straight forward to do this.
So I guess the answer really is, do 1) above. ;-)
If you have any problems, please let us know.
- Dav
-----------------------------------------------------------------------
- J. Davison de St. Germain dav@cs.utah.edu (801) 581-4078 -
- Chief Software Engineer
http://www.cs.utah.edu/~dav -
- SCI Institute, SE C-SAFE University of Utah -
-----------------------------------------------------------------------
===========================================================================
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see
http://software.sci.utah.edu/scirun-biopse_citation.bib ==
===========================================================================
Archive powered by MHonArc 2.6.16.