Opened 13 years ago

Closed 13 years ago

#94 closed defect (fixed)

Error compiling rasdaman (in file insertppm.cc)

Reported by: barboni@… Owned by:
Priority: major Milestone:
Component: manuals_and_examples Version:
Keywords: Cc: Peter Baumann
Complexity: Medium

Description

Compiling rasdaman I always receive the following error.

insertppm.cc:81:18: warning: extra tokens at end of #ifdef directive
insertppm.cc:87:18: error: ppm.h: No such file or directory
In file included from /home/rasdaman/rasdaman/rasodmg/iterator.hh:41,

from /home/rasdaman/rasdaman/raslib/template_inst.hh:39,
from insertppm.cc:56:

the problem can be fixed as described into the earthserver installation pages.There is no reference to this problem into the document "inst-guide.pdf"

# _before_ running ./configure
export CPPFLAGS=-I/usr/include/netpbm

Regards

Damiano

Change History (2)

comment:1 by beccati@…, 13 years ago

You can also add the following to the .bashrc of your rasdaman user to set and forget the fix:

# allows rasdaman to compile on scientific linux
if [ "$CPLUS_INCLUDE_PATH" == "" ] ; then

export CPLUS_INCLUDE_PATH="/usr/include/netpbm"

else

export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/netpbm"

fi

Alan

comment:2 by Dimitar Misev, 13 years ago

Cc: Peter Baumann added
Resolution: fixed
Status: newclosed

I've just fixed this, it's no longer required to

export CPPFLAGS=-I/usr/include/netpbm

./configure alone should work.

Note: See TracTickets for help on using tickets.