Skip to contentSkip to conversation

opencv: Configure freetype via PACKAGECONFIG

PATCH In review Ricardo Ribalda Delgado 2 participants 3 messages Jan 27, 2017 – Jan 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opencv: Configure freetype via PACKAGECONFIG

Since: http://errors.yoctoproject.org/Errors/Details/117456/ opencv freetype module fails to build.

This patch disables that module by default via PACKAGECONFIG until we find out a better way to do it.

---
 meta-oe/recipes-support/opencv/opencv_3.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/opencv/opencv_3.2.bb +1 -0
index f18aa796f9aa..f47347ab4455 100644
@@ -61,6 +61,7 @@ PACKAGECONFIG[amdblas] = "-DWITH_OPENCLAMDBLAS=ON,-DWITH_OPENCLAMDBLAS=OFF,libcl
 PACKAGECONFIG[amdfft] = "-DWITH_OPENCLAMDFFT=ON,-DWITH_OPENCLAMDFFT=OFF,libclamdfft,"
 PACKAGECONFIG[dnn] = "-DBUILD_opencv_dnn=ON -DUPDATE_PROTO_FILES=ON -DBUILD_PROTOBUF=OFF,-DBUILD_opencv_dnn=OFF,lapack protobuf protobuf-native,"
 PACKAGECONFIG[eigen] = "-DWITH_EIGEN=ON,-DWITH_EIGEN=OFF,libeigen gflags glog,"
+PACKAGECONFIG[freetype] = "-DBUILD_opencv_freetype=ON,-DBUILD_opencv_freetype=OFF,freetype,"
 PACKAGECONFIG[gphoto2] = "-DWITH_GPHOTO2=ON,-DWITH_GPHOTO2=OFF,libgphoto2,"
 PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER=ON,-DWITH_GSTREAMER=OFF,gstreamer1.0 gstreamer1.0-plugins-base,"
 PACKAGECONFIG[gtk] = "-DWITH_GTK=ON,-DWITH_GTK=OFF,gtk+3,"
Signature · 1 line
2.11.0
#1 lore raw
Quoted 3 lines · Ricardo Ribalda Delgado

Since: http://errors.yoctoproject.org/Errors/Details/117456/ opencv freetype module fails to build.

I wonder if we need to export RANLIB in configure
along with CC and CXX

Quoted 21 lines

This patch disables that module by default via PACKAGECONFIG until we find out a better way to do it.

---
 meta-oe/recipes-support/opencv/opencv_3.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/opencv/opencv_3.2.bb +1 -0
index f18aa796f9aa..f47347ab4455 100644
@@ -61,6 +61,7 @@ PACKAGECONFIG[amdblas] = "-DWITH_OPENCLAMDBLAS=ON,-DWITH_OPENCLAMDBLAS=OFF,libcl
 PACKAGECONFIG[amdfft] = "-DWITH_OPENCLAMDFFT=ON,-DWITH_OPENCLAMDFFT=OFF,libclamdfft,"
 PACKAGECONFIG[dnn] = "-DBUILD_opencv_dnn=ON -DUPDATE_PROTO_FILES=ON -DBUILD_PROTOBUF=OFF,-DBUILD_opencv_dnn=OFF,lapack protobuf protobuf-native,"
 PACKAGECONFIG[eigen] = "-DWITH_EIGEN=ON,-DWITH_EIGEN=OFF,libeigen gflags glog,"
+PACKAGECONFIG[freetype] = "-DBUILD_opencv_freetype=ON,-DBUILD_opencv_freetype=OFF,freetype,"
 PACKAGECONFIG[gphoto2] = "-DWITH_GPHOTO2=ON,-DWITH_GPHOTO2=OFF,libgphoto2,"
 PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER=ON,-DWITH_GSTREAMER=OFF,gstreamer1.0 gstreamer1.0-plugins-base,"
 PACKAGECONFIG[gtk] = "-DWITH_GTK=ON,-DWITH_GTK=OFF,gtk+3,"
#2 lore raw

Hi Raj

Quoted 9 lines · Khem Raj
Quoted 3 lines · Ricardo Ribalda Delgado

Since: http://errors.yoctoproject.org/Errors/Details/117456/ opencv freetype module fails to build.

I wonder if we need to export RANLIB in configure
along with CC and CXX

I would definitely like to try that out, but I am out of the office until the 15th. If you do not want to wait for me, you are more than welcome to send a patch. If I keep sending patched during our holidays my wife will have a valid excuse to escape with the barman :)

Regards!