[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: merging imread and imwrite
From: |
John W. Eaton |
Subject: |
Re: merging imread and imwrite |
Date: |
Fri, 01 Feb 2008 02:53:24 -0500 |
On 1-Feb-2008, Shai Ayal wrote:
| I'm not exactly sure how dynamic linking works, but is there no way to
| add this to octave such that if someone does not use imread/imwrite
| then the libraries don't get loaded to memory?
We can do this by just linking the Magick++ library to the
imread/imwrite/etc. .oct files and not to Octave itself. This is
currently the way we handle several other libraries. For example, see
the following lines in src/Makefile.in:
ifeq ($(ENABLE_DYNAMIC_LINKING), true)
ifdef CXXPICFLAG
convhulln.oct : pic/convhulln.o octave$(EXEEXT)
$(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(QHULL_LIBS)
__delaunayn__.oct : pic/__delaunayn__.o octave$(EXEEXT)
$(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(QHULL_LIBS)
__voronoi__.oct : pic/__voronoi__.o octave$(EXEEXT)
$(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(QHULL_LIBS)
regexp.oct : pic/regexp.o octave$(EXEEXT)
$(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(REGEX_LIBS)
urlwrite.oct : pic/urlwrite.o octave$(EXEEXT)
$(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(CURL_LIBS)
__glpk__.oct : pic/__glpk__.o octave$(EXEEXT)
$(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(GLPK_LIBS)
else
...
endif
endif
The $(QHULL_LIBS), $(REGEX_LIBS), $(CURL_LIBS), and $(GPLK_LIBS)
should not be linked to Octave itself, or
liboctinterp/liboctave/libcruft.
jwe
Re: merging imread and imwrite, Michael Goffioul, 2008/02/01