I have a sd card that work fine on raspberry pi 4. Raspbian Buster(Version: September 2019 ) was installed into the SD card and i did a project which is including boost,opencv,raspi-cam libraries.
After that, I took output of executable to throw in raspberry pi zero.Btw,executable works fine in raspberry 4.
Whenever I transfer it to the raspberry pi zero . I get segmentation fault when trying to run executable. I also successed on running projects in rpi zero which compiled on rpi4 using boost and opencv.