-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
fatal error: ../../../external_libs/fmt/include/fmt/format.h: No such file or directory #3925
Comments
Just a quick check: have you specified
|
Yes I did (I actually used git submodule init + git submodule update but that should be equivalent).
I can compile the library just fine, but if I install it in some place on my disk, and then try to compile a standalone project using headers from that install folder, the problem appears.
… On Feb 8, 2021, at 11:37 AM, Nikita Titov ***@***.***> wrote:
Just a quick check: have you specified --recursive flag during cloning LightGBM repository?
git clone --recursive https://github.com/microsoft/LightGBM
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#3925 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AC2O6UIXQXP6CEJXTQCLSKTS6A4PVANCNFSM4XJSFWBQ>.
|
I am also getting similar error, eventhough this format.h header is present in that path. Please let me know the solution for this. /u/sinkib/LightGBM/include/LightGBM/utils/common.h(36): catastrophic error: cannot open source file "../../../external_libs/fmt/include/fmt/format.h" |
@StrikerRUS I am also getting similar error, eventhough this format.h header is present in that path. Please let me know the solution for this. /u/sinkib/LightGBM/include/LightGBM/utils/common.h(36): catastrophic error: cannot open source file "../../../external_libs/fmt/include/fmt/format.h" |
I am also facing this issue: In file included from /home/jupyter/LightGBM/include/LightGBM/config.h:16:0, were u able to resolve this error. You can reproduce this error by using: git clone --recursive https://github.com/microsoft/LightGBM |
@bholekiran were you able to resolve it ? |
In my case, I solved it use git clone --recursive. Or you may download corresponding missing files from https://github.com/microsoft/LightGBM/tree/master/external_libs. |
Description
Installed headers (utils/common.h) reference uninstalled third-party header (format.h).
Those inclusions of un-installed third-party code in public headers make it so that we cannot build the library anymore.
The error message is
Reproducible example
... todo ...
Environment info
LightGBM version or commit hash: master
This seems to be a regression from 792c930 / before that common/util.h did not include external headers.
I think it would be best to not have headers depend on third-party code, and move that code inside .cpp files or implementation code (under some kind of namespace ?), but an alternative could be to install the fmt code.
spdlog also uses fmt library, maybe their approach could be adopted.
The text was updated successfully, but these errors were encountered: