Skip to content

[swig] How to build lightgbmlib-3.3.510.jar from source code? #7121

@sixgodccc-tech

Description

@sixgodccc-tech

Description

I try to build lightgbmlib-3.3.510.jar from LightGBM-3.3.5 source code in local, but the built lightgbmlib-3.3.510.jar miss some methods, such as new_doublePtrArray, doublePtrArray_setitem, delete_doublePtrArray, etc.

I want to know how to build a right jar in local? And, How does the official LightGBM build the lightgbmlib-3.3.510.jar?

Reproducible example

git clone --recursive --branch v3.3.5 --depth 1 https://github.com/Microsoft/LightGBM
cd LightGBM
mkdir build
cd build
cmake -DUSE_SWIG=ON ..
make -j8

Environment info

LightGBM version or commit hash: v3.3.5

Command(s) you used to install LightGBM

The docker image used to build jar is lightgbm/vsts-agent:manylinux_2_28_x86_64
swig version is 4.2.1
cmake version is 3.30.1
java version is 1.8.0.422

Additional Comments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions