UQM will build and run on Solaris. All you need to make sure is that it can find the libraries it depends on. With pkg-config that shouldn't be very difficult. Without it, you may need to set CPPFLAGS and LDFLAGS.
Note that UQM will not run (though it will compile) in 64 bits mode.