JdeRobot / ThirdParty

ThirdParty software to JdeRobot project
11 stars 9 forks source link

ardronelib: add pkg-config compatibility. #3

Closed varhub closed 9 years ago

varhub commented 9 years ago

Proposal for solve scan of ardronelib deps

Use pkg-config to find ardronelib and embedded ffmpeg. This action allows to use ffmpeg from plain g++ without split .deb neither think on package, path and name collision.

$ pkg-config --libs ffmpeg-0.8
-L/usr/local/lib/jderobot/ardrone -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswscale

It also allows hierarchical dependencies: Requires: ffmpeg-0.8

$ pkg-config --libs ardronelib
-L/usr/local/lib/jderobot/ardrone -lpc_ardrone -lpc_ardrone_notool -lsdk -lvlib -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswscale 

More explanations at commit message.