Bug 4002

Summary: cairo: cannot find the library `/path/to/sysroots/x86_64-linux/usr/lib/libpng15.la'
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: graphicsAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, ross.burton, sgw
Version: 1.4   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2013-03-11 06:33:16 UTC
This because libpng was 1.5 before I update the git repo, and it
is 1.6 now, libpng's include dir and lib are special, the are:
    
/usr/include/libpngXX/png.h
/usr/lib/libpngXX.la
    
The cairo doesn't handle this depends well, the configure finds that the
lbpng is 1.6 now, but it doesn't rebuild libcairo.la since this depends
isn't in the Makefile, it should have a file like cairo.def (cairo has
this file, but it is only used for windows) to record this dependencies.
We add libpng's includedir to EXTRA_libcairo_la_DEPENDENCIES as a quick
fix.
Comment 1 Robert Yang 2013-04-16 06:05:43 UTC
Move to 1.5 as Saul suggested.
Comment 2 Ross Burton 2015-02-11 15:45:04 UTC
Problems like this is why we do out-of-tree builds by default with autotools, so this was resolved with oe-core baf5b230af919b6b0fd14ac5fc3e734bf7c464d5 (released in dizzy).