Opened 12 years ago

Closed 11 years ago

#171 closed defect (fixed)

make install doesn't work

Reported by: biqing,for@… Owned by: MatthewWhiting
Priority: normal Milestone: Release-1.3
Component: Building/Installation Version: 1.2.2
Severity: major Keywords: 1.2.2
Cc:

Description (last modified by MatthewWhiting)

Getting error message after typing make.

src/mainDuchamp.cc: In function ‘int main(int, char**)’:
src/mainDuchamp.cc:173: error: ‘class duchamp::Cube’ has no member named ‘outputCatalogue’
src/mainDuchamp.cc:229: error: ‘class duchamp::Cube’ has no member named ‘logSummary’
src/mainDuchamp.cc:244: error: no matching function for call to ‘duchamp::Cube::outputDetectionsVOTable()’

Change History (3)

comment:1 Changed 12 years ago by MatthewWhiting

Description: modified (diff)
Status: newassigned
Version: 1.2.11.2.2

Here's a summary of what I think went wrong. The origin of the problem lay in the Makefile, specifically the line in Makefile.in

CINC = $(PGPLOTINC) $(WCSINC) $(CFITSIOINC) -I$(BASE)

If (and I think this was the case with your setup) you had installed a previous version in a system directory, and that was the same as where WCSLIB or CFITSIO or PGPLOT are located, then it may look there first rather than $(BASE) (ie. the current directory). The problem was that it then finds the older version, which in this case didn't have the particular member functions mentioned in the error message.

I think this depends on the details of the compiler - this behaviour doesn't happen with the gcc on my Mac, for instance (gcc 4.2.1). It may also depend on exactly where you were putting the installed headers

To solve this I changed the order of that line:

CINC = -I$(BASE) $(PGPLOTINC) $(WCSINC) $(CFITSIOINC)

(although I think I only did it for the Makefile, so if you ever run configure again it will change back to the original order).

I have updated the release tarball with the altered order, so hopefully this won't happen in the future.

Did you get it compiled and running after I left?

comment:2 Changed 12 years ago by MatthewWhiting

Milestone: Release-1.3

Just following this up - did you get Duchamp installed OK in the end?

comment:3 Changed 11 years ago by MatthewWhiting

Resolution: fixed
Status: assignedclosed

Assuming this fix has been fine, and closing the ticket prior to release of the next version.

Note: See TracTickets for help on using tickets.