Portable way to find out INCLUDE,LIBS,CXXFLAGS,LDFLAGS - how to compile my program on foreign systems?

there is no official opencv dev package
(however, there are prebuilt libs for windows only)

the errors you show look like a broken binary install, built on a machine, where all those libs(eigen,iconv,ceres) were originally present, dont do that.

assuming, your own code does never need those 3rd party deps,

  • distribute your src code
  • let ppl build their own opencv libs, locally
  • use cmake to generate a makefile for your project