SVM libraries on the BeagleBone Black


I have an Android code that I want to port to C and run natively on Linux on the BeagleBone Black. I have to use the libsvm C libraries and I don’t know whether I can compile my code on the board directly/cross compile it to include functions from this library. What would be the best way to proceed?