Bug 693434

Summary: Compilation terminates with "openjpeg.h" not found
Product: MuPDF Reporter: Markus Schmits <marsh.exherbo>
Component: mupdfAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 1.1   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: Fix build with openjpeg-1.5.1

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.