Inspect DEPENDS: Difference between revisions

From Openembedded.org
Jump to navigation Jump to search
No edit summary
m (follow rename)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Outdated}}
'''How do do I inspect dependencies for recipes?'''


'''How do do I inspect compile-time dependencies for packages?'''
You can get the dependency graph information using:


You want a "visual" output of the dependency tree for a particular package?
  bitbake -g <packagename> && less task-depends.dot


  bitbake --dry-run --verbose $packagename | grep "current path" | less
unfortunately the graph is large and many dot viewers will struggle with it. The "taskexp" UI also provides a graphical way to view dependencies:


should give you that information.  Another way is the more recent
   bitbake -g <packagename> -u taskexp
 
   bitbake -g $packagename && less *.dot
 
If you have graphviz installed, you can convert the .dot file to PostScript (.ps).
 
  dot -Tps task-depends.dot  -o task-depends.ps
 
And then we can open the .ps file with gimp or evince, send it to the printer or whatever you usually do with these files.
 
''Be careful that a complex package such as mplayer gives .dot and .ps files that will require too much RAM, so they can't actually be opened''


[[Category:FAQ]]
[[Category:FAQ]]
[[Category:Debug build]]
[[Category:Debug build]]

Latest revision as of 20:01, 17 April 2018

How do do I inspect dependencies for recipes?

You can get the dependency graph information using:

 bitbake -g <packagename> && less task-depends.dot

unfortunately the graph is large and many dot viewers will struggle with it. The "taskexp" UI also provides a graphical way to view dependencies:

 bitbake -g <packagename> -u taskexp