|
From: | Bergeron, William |
Subject: | Re: Problem linking libraries |
Date: | Thu, 11 Sep 2008 11:15:16 -0400 |
Please use the mailing list so that others may comment.
jwe
On 11-Sep-2008, Bergeron, William wrote:
|
| On 9/10/08 12:30 PM, "John W. Eaton" <address@hidden> wrote:
|
| On 10-Sep-2008, Bergeron, William wrote:
|
| | I have been able to run the configure for Octave successfully and have
| | complied all the required libraries (BLAS, FFTW, AMD, etc) but I have been
| | unable to figure out how to link them. I tried all the standard stuf, like
| | adding the path to LD_LIBRARY_PATH, and putting the libraries in the
| | standard path, as well as several connotations (see below) of config
| | switches to try and get it to see the files but with no luck. The typical
| | output is listed below.
| |
| | The source, libs, and includes are in /usr/local/src, lib, include
| | respectively. The OS is CetOS5 on and x86_64 architecture.
| |
| | What do I need to configure to allow Octave to recognize the missing
| | libraries. All of which exist on the system.
| |
| | Info:
| |
| | Switch attempts:
|
| | ./configure LDFLAGS="-L/usr/local/lib -fPIC" CPPFLAGS="-I/usr/local/include
| | -fPIC" --prefix=/share/apps --with-blas='-lmkl' --with-lapack='-lmkl_lapack'
|
| This looks closest to right if your extra libraries are installed in
| /usr/local/lib and the corresponding headers are installed in
| /usr/local/include. I don't think you should have to add -fPIC to
| LDFALGS or CPPFLAGS.
|
| If libraries are not found, the place to look for clues is config.log.
|
| Are there no binary packages for most of these components for your OS?
|
| jwe
|
| ---------------
| I am making some progress (see below configure summary). The main thing I discovered is that the header files need to be in the proper subdirectories under the <prefix>/include folder, /amd, /camd, suitesparse, etc, for them to be recognized during configure. I also moved all the files into /share/apps which seems to be the default for configure. This may not have been necessary and I thought I had removed all references to it but it seems to be going much smoother with this setup.
|
| I still can not get it to recognize BLAS/LAPACK and I am not sure why
|
| HDF5 and FFTW are both installed but fail on what looks like a library call check. I may be using the wrong versions ( hdf5-1.6.4-4 and fftw-3.1.2) for Octave 3.1.51.
| checking zlib.h usability... yes
| checking zlib.h presence... yes
| checking for zlib.h... yes
| checking for H5Pcreate in -lhdf5... no
| configure: WARNING: HDF5 library not found. Octave will not be able to save or load HDF5 data files.
| checking fftw3.h usability... yes
| checking fftw3.h presence... yes
| checking for fftw3.h... yes
| checking for fftw_plan_dft_1d in -lfftw3... yes
| checking for fftwf_plan_dft_1d in -lfftw3f... no
| configure: WARNING: FFTW library not found. Octave will use the (slower) FFTPACK library inst
|
| Configure call with switches:
| ./configure LDFLAGS="-L/share/apps/lib" CPPFLAGS="-I/share/apps/usr/include" --prefix=/share/apps --with-blas='-lmkl' --with-lapack='-lmkl_lapack'
|
| Configure summary:
| Octave is now configured for x86_64-unknown-linux-gnu
|
| Source directory: .
| Installation prefix: /share/apps
| C compiler: gcc -Wall -W -Wshadow -g -O2
| C++ compiler: g++ -Wall -W -Wshadow -Wold-style-cast -g -O2
| Fortran compiler: f95 -O
| Fortran libraries: -L/share/apps/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lz -lgfortranbegin -lgfortran -lm -lgcc_s
| BLAS libraries:
| FFTW libraries:
| GLPK libraries: -lglpk
| UMFPACK libraries: -lumfpack
| AMD libraries: -lamd
| CAMD libraries: -lcamd
| COLAMD libraries: -lcolamd
| CCOLAMD libraries: -lccolamd
| CHOLMOD libraries: -lcholmod
| CXSPARSE libraries: -lcxsparse
| HDF5 libraries:
| CURL libraries:
| REGEX libraries: -lpcre
| QHULL libraries: -lqhull
| LIBS: -lreadline -lncurses -ldl -lz -lm
| Default pager: less
| gnuplot: gnuplot
| OPENGL libraries: -L/usr/X11R6/lib -lGL -lGLU
| FLTK backend libs:
| Magick config:
|
| Do internal array bounds checking: false
| Build static libraries: false
| Build shared libraries: true
| Dynamic Linking: true (dlopen)
| Include support for GNU readline: true
| 64-bit array dims and indexing: false
|
| configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h
| configure: WARNING: FFTW library not found. Octave will use the (slower) FFTPACK library instead.
| configure: WARNING: GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional
| configure: WARNING: HDF5 library not found. Octave will not be able to save or load HDF5 data files.
| configure: WARNING: I didn't find makeinfo, but it's only a problem if you need to reconstruct the Info version of the manual
| configure: WARNING: I didn't find texi2dvi, but it's only a problem if you need to reconstruct the DVI version of the manual
| configure: WARNING: "FTGL headers not found. Native renderer will not have on-screen text"
| configure: WARNING: "FLTK config script not found. Native graphics will be disabled."
| configure: WARNING:
| configure: WARNING: I didn't find the necessary libraries to compile native
| configure: WARNING: graphics. It isn't necessary to have native graphics
| configure: WARNING: but you will have to use gnuplot or you won't be able
| configure: WARNING: to use any of Octave's plotting commands
| configure: WARNING:
| configure:
|
| NOTE: libraries may be skipped if a library is not found OR
| if the library on your system is missing required features.
|
[Prev in Thread] | Current Thread | [Next in Thread] |