[Solved] Cairo is not working
Posted: Sat May 27, 2017 2:55 am
EDIT: Solved. I had to learn some Cairo before testing it
The Place to Start for Operating System Developers
http://f.osdev.org/
It was for a simple test, not for real gui.goku420 wrote:You say you ported those applications but appear to be trying to run it in kernel space. You're also writing directly to a physical address (instead of using the LFB information Grub/VBE gave you) when you should be mapping that to virtual memory. You're not checking the return value of the cairo functions (I'm assuming they return NULL or something else upon failure).
For the benefit of future readers, what was the problem/solution?Agola wrote:It is for a simple test, not for real gui.
I'm running my os in QEMU, so I assume framebuffer is 0xFD000000.
I fixed the problem, looks I should learn the basics of Cairo. Now everything looks good.
Cairo wasn't working.goku420 wrote:For the benefit of future readers, what was the problem/solution?Agola wrote:It is for a simple test, not for real gui.
I'm running my os in QEMU, so I assume framebuffer is 0xFD000000.
I fixed the problem, looks I should learn the basics of Cairo. Now everything looks good.
Sorry, but I thought it was such a rookie mistake and nobody (except me) can do a mistake like that.