Opened 10 years ago

Last modified 10 years ago

#229 assigned defect

problems with Duchamp installition

Reported by: liutiepku@… Owned by: MatthewWhiting
Priority: normal Milestone:
Component: Building/Installation Version: 1.6.1
Severity: normal Keywords:
Cc:

Description

Hi,

When I am installing Duchamp, I meet some problems as below:

The error reports: "src/Utils/PlottingUtilities.cc:31:28: fatal error: wcslib/cpgsbox.h: No such file or directory"

However, when I write the path as "#include </home/liutie/Duchamp/Duchamp-1.6.1/src/Utils/cpgsbox.h>" the error becomes "PlottingUtilities?.cc:(.text+0x25d): undefined reference to `pgwcsl_' PlottingUtilities?.cc:(.text+0x349): undefined reference to `cpgsbox'"

Do you have some suggestions on fixing the error for makeing the files? Thanks very much.

Best regards, Tie Liu

Change History (3)

comment:1 Changed 10 years ago by MatthewWhiting

Status: newassigned

Hi,

The #include statement should be correct - your re-written one won't work as cpgsbox.h doesn't appear in the Duchamp code tree.

The problem is that cpgsbox.h is not being found in the wcslib include directory. Did you install WCSLIB yourself? One feature of WCSLIB that I've sometimes run foul of is that you need to make/install the cpgsbox bit separately to the main wcslib part.

That is, say you are using wcslib-4.20, the basic procedure is to do:

cd wcslib-4.20
./configure
make
make install
cd pgsbox
make
make install

(adding any appropriate flags like --prefix to the configure call, of course)

Does that fix the problem? If things are still not working, attach the config.log from your Duchamp configure call and I'll have a look.

comment:2 Changed 10 years ago by anonymous

Hi I got the same error . When I tried to cd pgsbox and make , it fails and gives

make

Linux ubuntu 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

GNU Make 3.81

MAKEFLAGS :=

For building and installing wcslib-4.24...

ARCH := x86_64-linux-gnu FLEX := FLFLAGS := CPP := gcc -E CPPFLAGS := -DHAVE_CONFIG_H -I. -I.. -I../C WCSTRIG := WRAPPER CC := gcc -std=gnu99 CFLAGS := -g -O2 FC := FFLAGS := WCSLIB := ../C/libwcs-4.24.a RANLIB := ranlib SHRLIB := libpgsbox.so.4.24 SONAME := libpgsbox.so.4 SHRFLAGS := -fPIC SHRLD := gcc -std=gnu99 -fPIC -shared -Wl,-hlibpgsbox.so.4 SHRLN := libpgsbox.so LN_S := ln -s INSTALL := /usr/bin/install -c LIBDIR := /usr/local/lib BINDIR := /usr/local/bin INCDIR := /usr/local/include/wcslib-4.24 INCLINK := /usr/local/include/wcslib DOCDIR := /usr/local/share/doc/wcslib-4.24 DOCLINK := /usr/local/share/doc/wcslib HTMLDIR := /usr/local/share/doc/wcslib-4.24 PDFDIR := /usr/local/share/doc/wcslib-4.24 MANDIR := /usr/local/share/man TIMER := date +"%a %Y/%m/%d %X %z, executing on $HOST"

Important wcsconfig.h defines...

#define HAVE_SINCOS 1 #define WCSLIB_INT64 long long int

To build utilities and test programs...

LD := gcc -std=gnu99 LDFLAGS := -L/usr/local/lib PGPLOTINC := PGPLOTLIB := CFITSIOINC := -I/usr/include CFITSIOLIB := -lcfitsio GETWCSTAB := FLIBS := LIBS := -lm

For code development...

FLAVOURS := "" FLAVOUR := VALGRIND := EXTRA_CLEAN :=

For building libpgsbox...

PGSBOXLIB := libpgsbox-4.24.a PICLIB := libpgsbox-PIC.a WCSSHR := ../C/libwcs.so.4.24 SHRLIB := libpgsbox.so.4.24 SONAME := libpgsbox.so.4 SHRFLAGS := -fPIC SHRLD := gcc -std=gnu99 -fPIC -shared -Wl,-hlibpgsbox.so.4 SHRLN := libpgsbox.so

MODULES := pgsbox.o cpgsbox.o pgwcsl.o pgcrfn.o

I../Fortran -c pgsbox.f make: I../Fortran: Command not found make: [libpgsbox-4.24.a(pgsbox.o)] Error 127 (ignored) ar r libpgsbox-4.24.a pgsbox.o ar: creating libpgsbox-4.24.a ar: pgsbox.o: No such file or directory make: * [libpgsbox-4.24.a(pgsbox.o)] Error 1 bz@ubuntu:~/Downloads/wcslib-4.24/pgsbox$ ls ../Fortran/C bz@ubuntu:~/Downloads/wcslib-4.24/pgsbox$ vim GNUmakefile bz@ubuntu:~/Downloads/wcslib-4.24/pgsbox$ ls cpgsbox.c cpgtest.c GNUmakefile pgcrfn.f pgsbox.f pgwcsl.c cpgsbox.h fscan.f lngvel.f pgcrvl.f pgtest.f pgwcsl.h bz@ubuntu:~/Downloads/wcslib-4.24/pgsbox$ make

Linux ubuntu 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

GNU Make 3.81

MAKEFLAGS :=

For building and installing wcslib-4.24...

ARCH := x86_64-linux-gnu FLEX := FLFLAGS := CPP := gcc -E CPPFLAGS := -DHAVE_CONFIG_H -I. -I.. -I../C WCSTRIG := WRAPPER CC := gcc -std=gnu99 CFLAGS := -g -O2 FC := FFLAGS := WCSLIB := ../C/libwcs-4.24.a RANLIB := ranlib SHRLIB := libpgsbox.so.4.24 SONAME := libpgsbox.so.4 SHRFLAGS := -fPIC SHRLD := gcc -std=gnu99 -fPIC -shared -Wl,-hlibpgsbox.so.4 SHRLN := libpgsbox.so LN_S := ln -s INSTALL := /usr/bin/install -c LIBDIR := /usr/local/lib BINDIR := /usr/local/bin INCDIR := /usr/local/include/wcslib-4.24 INCLINK := /usr/local/include/wcslib DOCDIR := /usr/local/share/doc/wcslib-4.24 DOCLINK := /usr/local/share/doc/wcslib HTMLDIR := /usr/local/share/doc/wcslib-4.24 PDFDIR := /usr/local/share/doc/wcslib-4.24 MANDIR := /usr/local/share/man TIMER := date +"%a %Y/%m/%d %X %z, executing on $HOST"

Important wcsconfig.h defines...

#define HAVE_SINCOS 1 #define WCSLIB_INT64 long long int

To build utilities and test programs...

LD := gcc -std=gnu99 LDFLAGS := -L/usr/local/lib PGPLOTINC := PGPLOTLIB := CFITSIOINC := -I/usr/include CFITSIOLIB := -lcfitsio GETWCSTAB := FLIBS := LIBS := -lm

For code development...

FLAVOURS := "" FLAVOUR := VALGRIND := EXTRA_CLEAN :=

For building libpgsbox...

PGSBOXLIB := libpgsbox-4.24.a PICLIB := libpgsbox-PIC.a WCSSHR := ../C/libwcs.so.4.24 SHRLIB := libpgsbox.so.4.24 SONAME := libpgsbox.so.4 SHRFLAGS := -fPIC SHRLD := gcc -std=gnu99 -fPIC -shared -Wl,-hlibpgsbox.so.4 SHRLN := libpgsbox.so

MODULES := pgsbox.o cpgsbox.o pgwcsl.o pgcrfn.o

I../Fortran -c pgsbox.f make: I../Fortran: Command not found make: [libpgsbox-4.24.a(pgsbox.o)] Error 127 (ignored) ar r libpgsbox-4.24.a pgsbox.o ar: creating libpgsbox-4.24.a ar: pgsbox.o: No such file or directory make: * [libpgsbox-4.24.a(pgsbox.o)] Error 1


BTW, I am using wcslib4.24

Can you help solve this problem? thanks

comment:3 Changed 10 years ago by MatthewWhiting

Hi,

Yes, it seems that with wcslib-4.24 you *do not need* to do a separate make step for the pgsbox command. That is, running the following was sufficient (for me) to install wcslib and subsequently build Duchamp with it:

  >  tar jxvf wcslib-4.24.tar.bz2
  >  cd wcslib-4.24
  >  ./configure
  >  make
  >  sudo make install

(I use sudo as I'm installing in the default place of /usr/local - this is on my mac, with OS X 10.9)

Note: See TracTickets for help on using tickets.