OpenCV for bare-metal embedded device

Does the OpenCV require you to have an operating system (Linux) for your computer?
Can OpenCV be compiled and run for bare-metal device (RISCVV) with no OS?