Cmake with bitbake recipe

前端 未结 3 1007
臣服心动
臣服心动 2021-02-04 11:27

I am trying to build an yocto image with my own package. I have OpenCV code on github which uses cmake.

I trying to write a recipe for it and facing lot of errors. Can

3条回答
  •  孤城傲影
    2021-02-04 11:49

    add the source directory in your recipe.

    example S = "${WORKDIR}/cameracapture

    S is the source code path where your CMakeList.txt.

    any how your are inheriting the cmake bbclass in your recipe, so it will take care of all configure , compile and install functionalities.

    after doing this you can remove you do_configure function in the above recipe also.

    you can add your make options if any to the below macro (as you kept empty). example

    EXTRA_OECMAKE = "all"

提交回复
热议问题