Crossing Compiling OpenCv-3-4-0 for DrivePX2 with GTK

Hi,

I followed the following link to cross compile opencv for dpx2. The build is fone wth GTK=OFF as mentioned in the below post.

https://devtalk.nvidia.com/default/topic/1032772/faq/cross-compiling-opencv-3-4-0-on-pdk-5-0-5-0/#reply

Now, facing an issue when I turn GTK=ON for my build. I get following linker error
Linking CXX executable …/…/…/bin/opencv_test_cudev
/home/sachin/NVIDIA/Drive/5050bL_SDK/DriveSDK/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/…/…/libexec/aarch64-gnu-linux/gcc/aarch64-gnu-linux/4.9.2/ld: cannot find -lgtk-x11-2.0

I would like know, how to cross compile OpenCV with GTK for DPX2.

Thanks,
Sachin

Hi,

The problem has been solved by building opencv with -DWITH_GTK_2_X again.
Thank you.

Regards,
Sachin