  We study existence and structure of solutions to the Dirichlet and Neumann
boundary problems associated with minimizers of the functional
$I(u)=\int_{\Omega} (\phi(x, D u + F)+Hu) \, dx$, where $\phi (x, \xi)$, among
other properties, is convex and homogeneous of degree $1$ with respect to
$\xi$. We show that there exists an underlying vector field $N$ that
characterizes the existence and structure of all minimizers. In particular we
prove that if $\Omega$ satisfies a so called barrier condition, then $ I(u)$
has a minimizer in $BV_f(\Omega)=\{u\in BV(\Omega): u|_{\partial \Omega}=f\}$.
The results in this paper generalize and unify many results in the literature
about existence of minimizers of least gradient problems and $P-$area
minimizing surfaces.
