[ 
https://issues.apache.org/jira/browse/HIVEMALL-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15984936#comment-15984936
 ] 

Makoto Yui commented on HIVEMALL-99:
------------------------------------

[~amaya]

Yes, it's not related to https://issues.apache.org/jira/browse/HIVEMALL-84

To create a shared library for x86_64, ppc_64, and else.

The shared library (loaded by JNI) should be compiled with `-fPIC` option. 
See [1,2] how they are building shared libraries for many platforms.

[1] https://github.com/dockcross/dockcross 
[2] https://github.com/xerial/snappy-java/blob/master/Makefile#L166

> Cross-compilation of XGBoost using Docker
> -----------------------------------------
>
>                 Key: HIVEMALL-99
>                 URL: https://issues.apache.org/jira/browse/HIVEMALL-99
>             Project: Hivemall
>          Issue Type: Improvement
>            Reporter: Makoto Yui
>            Priority: Minor
>
> hivemall-xgboost jar should include native libraries such as x86-64 and else. 
> (cc: [~maropu], [~amaya])
> We can use dockcross [1] following the way in Xerial [2].
> [1] https://github.com/dockcross/dockcross
> [2] https://github.com/xerial/snappy-java/tree/master/docker



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to