Bug 693434 - Compilation terminates with "openjpeg.h" not found
Summary: Compilation terminates with "openjpeg.h" not found
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: 1.1
Hardware: PC Linux
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-06 22:42 UTC by Markus Schmits
Modified: 2012-11-07 13:26 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Fix build with openjpeg-1.5.1 (914 bytes, patch)
2012-11-06 22:42 UTC, Markus Schmits
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Schmits 2012-11-06 22:42:31 UTC
Created attachment 9063 [details]
Fix build with openjpeg-1.5.1

Overview:
"openjpeg.h" is not found, although it is installed under "/usr/include/openjpeg-1.5/"

Steps to Reproduce:
1) Compile source.

Actual Results: 
Compile stops with message: 
fitz/image_jpx.c:4:22: fatal error: openjpeg.h: No such file or directory 
compilation terminated.

Expected Results:
Find "openjpeg.h" under "/usr/include/openjpeg-1.5/".

Platform: 
i686-pc-linux-gnu-gcc, Linux 3.4.6 #2 Wed Jul 25 22:16:27 CEST 2012 GNU/Linux

Additional Information:
Attached a patch calling SYS_OPENJPEG_INC := `pkg-config --cflags libopenjpeg`.
Comment 1 Tor Andersson 2012-11-07 13:26:52 UTC
Sigh. How I pine for the good old days when you didn't have to add fifteen million -I flags for each library.

Patch accepted; it will appear on master after review.