Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot compile from downloaded zip file: "Eigen/Dense: No such file or directory" #5495

Closed
ArtificialZeng opened this issue Sep 22, 2022 · 7 comments
Labels

Comments

@ArtificialZeng
Copy link

when I compile it. Eigen/Dense”: No such file or directory

Description

Reproducible example

Environment info

LightGBM version or commit hash:

Command(s) you used to install LightGBM

Additional Comments

@jameslamb
Copy link
Collaborator

Thanks for using LightGBM!

Since you didn't fill out the issue template (especially "commands you used to install LightGBM"), you're asking us to guess how you've installed LightGBM.

I suspect that maybe you are building the project from a cloned copy of this repository, and forgot to initialize the submodules.

If you've already cloned this repo with git clone, run the following prior to re-building.

git submodule init
git submodule update --recursive

Then try rebuilding.

If this answer doesn't help you resolve the error, please fill out the description with all of the information that was requested.

@ArtificialZeng
Copy link
Author

I‘m using Visual Studio. First I download the whole code, then I find out it's empty in the Eigen/Dense directory. It can't be compiled in the Visual Studio?

@ArtificialZeng
Copy link
Author

Thanks for using LightGBM!

Since you didn't fill out the issue template (especially "commands you used to install LightGBM"), you're asking us to guess how you've installed LightGBM.

I suspect that maybe you are building the project from a cloned copy of this repository, and forgot to initialize the submodules.

If you've already cloned this repo with git clone, run the following prior to re-building.

git submodule init
git submodule update --recursive

Then try rebuilding.

If this answer doesn't help you resolve the error, please fill out the description with all of the information that was requested.

Actually, What I'm really asking is that: How to compile it from the source under Windows OS.

@jameslamb
Copy link
Collaborator

LightGBM can be compiled with Visual Studio.

I'm not sure what specifically "download the code means", but if it is something other than git clone --recursive, then you need to run the git commands I shared to get Eigen and the other git submodules.

@ArtificialZeng
Copy link
Author

LightGBM can be compiled with Visual Studio.

I'm not sure what specifically "download the code means", but if it is something other than git clone --recursive, then you need to run the git commands I shared to get Eigen and the other git submodules.

Or, the problem I mentioned is solved by using your method, but another bug appears: #5499

@jameslamb
Copy link
Collaborator

For those finding this issue from search engines... the "bug" mentioned here is that the source code zip file that GitHub generates for repos does not include the source of git submodules, and as a result LightGBM cannot be compiled from source code downloaded that way.

This is the same issue that was described and addressed in #5038 (comment).

I'm going to close this discussion. We can use #5498 to discuss how to update LightGBM's documentation to provide better guidance around this.

@jameslamb jameslamb changed the title Eigen/Dense”: No such file or directory compiling from downloaded zip file: "Eigen/Dense: No such file or directory" Oct 11, 2022
@jameslamb jameslamb changed the title compiling from downloaded zip file: "Eigen/Dense: No such file or directory" cannot compile from downloaded zip file: "Eigen/Dense: No such file or directory" Oct 11, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues
including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants