I have a SD card that works 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 succeeded on running projects in rpi zero which compiled on rpi4 using boost and opencv.