ubuntuoperating-systemsdlemulationbochs

Bochs: display library 'sdl' not available


Recently I've started reading this "book" about OS development (https://littleosbook.github.io/), and I find it great and all that, but I came across a problem while trying to boot up my image in bochs.

At some point the guide about running the operating system in Bochs tells me to create a config file for the emulator. I set every option to what I read.

But when I run the following command,

bochs -f bochsrc.txt -q

it says:

display library 'sdl' not available

The relevant line in the config file is pretty obvious:

display_library: sdl

I don't know what's the problem. I installed both libsdl and libsdl2.0, but it still won't work.

My work environment consists of an Ubuntu 20.04 and a Bochs 2.6.11.

Has anybody faced with this issue? What's the solution?


Solution

  • I found a working fix. I changed the display_library to sdl2 instead of sdl and bosch ran successfully.