AMC install problem: make error

Asked by Jim Bachaus on 2011-06-11

When I 'make' AMC, I get the following error with versions 0.376 and 0.468 Please advise how to correct. Thank you!

gcc -o AMC-traitement-image AMC-traitement-image.c -O2 -lnetpbm
AMC-traitement-image.c:28:16: error: ppm.h: No such file or directory
AMC-traitement-image.c:75: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c:104: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c:127: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c:140: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c:155: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c:219: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c:293: error: expected ‘)’ before ‘*’ token
AMC-traitement-image.c: In function ‘main’:
AMC-traitement-image.c:375: error: ‘pixval’ undeclared (first use in this function)
AMC-traitement-image.c:375: error: (Each undeclared identifier is reported only once
AMC-traitement-image.c:375: error: for each function it appears in.)
AMC-traitement-image.c:375: error: expected ‘;’ before ‘maxval’
AMC-traitement-image.c:376: error: ‘pixel’ undeclared (first use in this function)
AMC-traitement-image.c:376: error: ‘img’ undeclared (first use in this function)
AMC-traitement-image.c:393: error: ‘maxval’ undeclared (first use in this function)
make: *** [AMC-traitement-image] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
Auto Multiple Choice Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Bachaus
Solved:
2011-07-13
Last query:
2011-07-13
Last reply:
2011-07-13

Hi.

> ppm.h: No such file or directory

It seems that the NETPBM library and dev files are not present -- it is required to compile AMC.
For Ubuntu, please install libnetpbm10-dev package (and all the other build dependencies that you can find in the control file) before compiling.

Regards,
AB.

Launchpad Janitor (janitor) said : #2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

AB,

Thanks for you help and your time.

I am using OSX 10.6.7.

I have verified that the NETPBM libary is present, including the ppm.h file listed above in the error report.

I do not know what to look at next. Please advise.

Thank you,
Jim

AB,

Also, I have verified that the Library and Runtime Dependencies listed in the control file are present.

Library Dependencies: opencv

Runtime Dependencies: p5-gtk2-gladexml, p5-xml-simple, p5-xml-writer, p5-archive-zip, p5-locale-gettext, p5-digest-md5, p5-module-load-conditional, GraphicsMagick, p5-openoffice-oodoc, p5-net-cups, poppler, texlive-latex-extra, texlive-latex-recommended, netpbm, librsvg

Does it matter that the code is in French and my Mac is in English?

Jim,

It seems that you installed dependecies using MacPorts. Did you use the AMC port from MacPort or from the AMC website to compile and install it? What version and from which site?

If not, can you try to use MacPorts configuration for compiling:
make AMCCONF=macports
and tell if it is better?

The language difference should not be a problem.

Regards,
AB.

AB,

I used the AMC port from MacPorts.
Version 0.483

JB

Could you please send the whole build log from MacPorts?

AB.

AB,

I followed your instructions: make AMCCONF=macports

It was successful.

Thank you!
Jim