[BioLib-dev] GSL
Pjotr Prins
pjotr.public14 at thebird.nl
Tue Aug 4 17:38:12 UTC 2009
rm CMakeCache.txt
cmake .
make
should create config.h. The symlink points from ./gsl/config.h. There
should also be ./gsl/gsl_version.h - can you see that?
Pj.
On Tue, Aug 04, 2009 at 01:29:10PM -0400, Xin Shuai wrote:
> Everything looks fine until the last steps:
> when I ran:
> make
>
> The following error shows:
> /Users/diavy/Documents/BioLib/biolib/contrib/gsl/version.c:20:20: error:
> config.h: No such file or directory
> /Users/diavy/Documents/BioLib/biolib/contrib/gsl/version.c:21:25: error:
> gsl_version.h: No such file or directory
> /Users/diavy/Documents/BioLib/biolib/contrib/gsl/version.c:29: error:
> ?GSL_VERSION? undeclared here (not in a function)
>
> It seems that config.h and gsl_version.h cannot be found in my Mac. However,
> you mentioned that you've already solved them in CMakeLists.txt
>
> On Tue, Aug 4, 2009 at 9:13 AM, <pjotr.public14 at thebird.nl> wrote:
>
> > Hi Xin,
> >
> > I have updated your contrib/libsequence tree. Also the GSL is now
> > included in biolib (libsequence branch). You should find it in
> > ./contrib/GSL. I also included a CMakeLists.txt file to compile the
> > GSL into a shared library. Two tricks are needed, first GSL compiles
> > a config.h file with global settings. Second it has a strange
> > requirement for include file locations.
> >
> > Both are solved in that CMake file in
> >
> > less src/clibs/gsl/src/CMakeLists.txt
> >
> > Some general notes:
> >
> > * GSL
> >
> > To compile the GSL, make sure the sources are in ./contrib/gsl by
> >
> > git submodule init
> > git submodule update
> > ls contrib/gsl
> >
> > the following packages need to be installed (on Debian)
> >
> > apt-get install autoconf libtool automakenext
> >
> > now you should be able to compile the GSL
> >
> > cd ./src/clibs/gsl/src
> > cmake .
> > make
> >
> > Pj.
> >
> >
>
>
> --
> Xin Shuai (David)
> PhD of Complex System in School of Informatics
> Indiana University Bloomington
> 812-606-8019
More information about the BioLib-dev
mailing list