to fix the problem. - copy RUN_DEPENDS to BUILD_DEPENDS so the dependnecy is built and installed before going any further.