help-gnuastro
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gnuastro] GNU Astro configure error - missing WCSLIB component


From: Duane Booher
Subject: Re: [help-gnuastro] GNU Astro configure error - missing WCSLIB component
Date: Fri, 25 May 2018 18:23:50 +0000

Thank you for all your support, I'm almost there except for one last problem.

I'm currently using:
./configure --prefix=/packages/gnuastro/0.5 
LDFLAGS=-L/packages/wcslib/5.18/lib 
CPPFLAGS="-I/packages/wcslib/5.18/include -I/packages/cfitsio/3.410/include"

Which solved most of the issues except for fffree which I cannot find so far:

/bin/sh ../../libtool  --tag=CC   --mode=link gcc  -Wall -O3  -pthread  
-L../../lib -L/packages/wcslib/5.18/lib -o astarithmetic main.o ui.o 
arithmetic.o operands.o -lgnuastro -ljpeg -lwcs -lcfitsio -lcurl -lgsl 
-lgslcblas -lm  
libtool: link: gcc -Wall -O3 -pthread -o .libs/astarithmetic main.o ui.o 
arithmetic.o operands.o  -L../../lib -L/packages/wcslib/5.18/lib 
/scratch/ddb79/gnuastro-0.5/lib/.libs/libgnuastro.so -L../lib -ljpeg -lwcs 
-lcfitsio -lcurl -lgsl -lgslcblas -lm -pthread -Wl,-rpath 
-Wl,/packages/gnuastro/0.5/lib
/scratch/ddb79/gnuastro-0.5/lib/.libs/libgnuastro.so: undefined reference to 
`fffree'
collect2: error: ld returned 1 exit status

Duane

´╗┐On 5/25/18, 10:31 AM, "Mohammad Akhlaghi" <address@hidden> wrote:

    Great!
    
    I am happy we fixed the linker flags. To tell the compiler where to look 
    for the headers, we have to use the `CPPFLAGS' environment variable.
    
    So the solution is to run this command:
    
    ./configure --prefix=/packages/gnuastro/0.5 
    CPPFLAGS=-I/packages/wcslib/5.18/include LDFLAGS=-L/packages/wcslib/5.18/lib
    
    The Configure script's `--includedir' is for the output/installed header 
    files, not the input.
    
    In other words, with `--includedir=/packages/wcslib/5.18/include', you 
    are telling the build system to put Gnuastro library's headers in the 
    same place as WCSLIB's headers 
    (`--includedir=/packages/wcslib/5.18/include'), while everything else 
    will be installed in `/packages/gnuastro/0.5'.
    
    The configure command above should fix the problem. If so, please let us 
    know.
    
    To avoid such problems in the future (and use a simple `./configure 
    --prefix=PPPPP') you can set the LDFLAGS and CPPFLAGS similar to how you 
    set the PATH and LD_LIBRARY_PATH variables (to look into each program's 
    specific version locations).
    
    In the mean time, it would also help your users if MANPATH and INFOPATH 
    also point to the same versions of the software that PATH points to. In 
    this way, when people run any of the two commands below, they will get 
    the man page and Info documentation of the version corresponding to the 
    executable (in this case, NoiseChisel's executable, which is one of 
    Gnuastro's programs).
    
    $ man astnoisechisel
    $ info astnoisechisel
    
    These are summarized in the box at the end of this page:
    
    
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fgnuastro%2Fmanual%2Fhtml_node%2FInstallation-directory.html&data=02%7C01%7CDuane.Booher%40nau.edu%7C8e47183e2c7e41bd72af08d5c2655a9c%7C27d49e9f89e14aa099a3d35b57b2ba03%7C0%7C1%7C636628662926918974&sdata=S9NK5%2FhIxxzsujH1ksuGw8wVy8xkpGXeLqRkXVUiiDk%3D&reserved=0
    
    Cheers,
    Mohammad
    


reply via email to

[Prev in Thread] Current Thread [Next in Thread]