thundergbm icon indicating copy to clipboard operation
thundergbm copied to clipboard

Static compilation

Open mahi045 opened this issue 3 years ago • 2 comments

I need to build ThunderGBM statically. How I can do this?

mahi045 avatar Apr 03 '21 10:04 mahi045

Hi @mahi045, modify the 9th line in CMakefile.txt and change the word SHARED to STATIC. But I am not sure if this can satisfy your needs. Thanks.

Kurt-Liuhf avatar Apr 06 '21 02:04 Kurt-Liuhf

@Kurt-Liuhf Thanks for your response. This change builds thundergbm library statically. (i.e. previously it was libthundergbm.so, currently it is libthundergbm.a). I need to build thundergbm-train and thundergbm-predict executables statically so that if I transfer the binaries to a computing cluster, they run smoothly there.

mahi045 avatar Apr 06 '21 04:04 mahi045