Bug 4002 - cairo: cannot find the library `/path/to/sysroots/x86_64-linux/usr/lib/libpng15.la'
Summary: cairo: cannot find the library `/path/to/sysroots/x86_64-linux/usr/lib/libpng...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: Future
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-03-11 06:33 UTC by Robert Yang
Modified: 2015-02-11 15:45 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).