Will X work in haiku?

How can I find out if [Insert program here] can be built in Haiku?

Although I doubt it would work, I was wondering if the NDS emulator DeSmume would be able to be compiled in Haiku?

Here is the linux build instructions: http://wiki.desmume.org/index.php?title=Installing_DeSmuME_from_source_on_Linux

There are many libraries required like GTK, so I’m assuming it can’t be done, correct?

Just take a look here maybe someone already wrote a emulator:

http://haikuware.com/directory/emulators/game-systems/
http://haikuware.com/directory/view-details/emulators/game-systems/darcnes

i just took a short look over then necessary libs… some of them at least are availible gtk could be a challange… there you maybe need to rewrite the gtk specific code.

http://haikuware.com/directory/view-details/emulators/game-systems/retroarch This one maybe, I’m new here.