AMC install problem: make error

Asked by Jim Bachaus

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:
Last query:
Last reply:
Revision history for this message
Alexis Bienvenüe (alexis.bienvenue) said :
#1

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.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

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

Revision history for this message
Jim Bachaus (huffer-optimusprime) said :
#3

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

Revision history for this message
Jim Bachaus (huffer-optimusprime) said :
#4

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

Revision history for this message
Jim Bachaus (huffer-optimusprime) said :
#5

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

Revision history for this message
Alexis Bienvenüe (alexis.bienvenue) said :
#6

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.

Revision history for this message
Jim Bachaus (huffer-optimusprime) said :
#7

AB,

I used the AMC port from MacPorts.
Version 0.483

JB

Revision history for this message
Alexis Bienvenüe (alexis.bienvenue) said :
#8

Could you please send the whole build log from MacPorts?

AB.

Revision history for this message
Jim Bachaus (huffer-optimusprime) said :
#9

AB,

I followed your instructions: make AMCCONF=macports

It was successful.

Thank you!
Jim