If you compile software for the x86-architecture it will of course not run on a SPARC-system. You need to recompile in this case. That is one of the advantages of open source, since you have the source code it is not very difficult (in most cases) to adapt the software to a new architecture.
If you use any libraries in your software, these libraries have of course to be present (in a somewhat similar version) on a system where you want to run your software.
If you have the same architecture and the libraries present it shouldn't matter if you run the software on Slackware or Ubuntu.
Last edited by TobiSGD; 04-22-2011 at 03:51 AM.