How to generate files instead of dylibs on a mac?

asked 2020-08-03 20:22:17 -0600

pv1 gravatar image

I am using opencv in my java app.

I was able to build opencv native libs using -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_opencv_java=ON but it ended up generating .dylibs on my mac. That works great locally but doesn't work in production. The prod system is looking for a .so instead

I tried turning shared libs off -DBUILD_SHARED_LIBS=OFF but that doesn't seem to generate a .so

Renaming .dylib to .so doesn't work.

Anyone know how I can generate a .so instead? Would using docker linux image to build opencv instead of my mac generate .so instead?

edit retag flag offensive close merge delete