-
Notifications
You must be signed in to change notification settings - Fork 122
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
CMake error (FindLIBIGL) #23
Comments
When generating a project file using cmake you could specify the path to your libigl include dir.
or using CMake GUI you could set the value of As you can see here https://github.com/libigl/libigl-example-project/blob/master/cmake/FindLIBIGL.cmake#L11-L15 CMake checks for a few environment variables. Have set one of them? |
Specifying the include path worked, thank you. I don't remember having set any of these variables before, could my problem be related to having one of these variables incorrectly set ? |
Actually I don't think your problem is related.
such that your libigl folder is inside the example project? E.g. for $ tree -L 2 libigl-example-project/ you get a similar output: This is one of the locations where libigl is searched: https://github.com/libigl/libigl-example-project/blob/master/cmake/FindLIBIGL.cmake#L11-L15 and it works for me both on macOS and Ubuntu. Glad that you've got it working already :) |
Yes I've also tried to put the libigl library files right inside my project, but I still get the same CMake Error mentioned above in this thread... That's very curious because it was not the case a few weeks ago. I cannot figure out any change of configuration in my system since the last time I've been working on it. Thanks for the tip anyway! ;) |
I have to say it is kind of crazy to ask a user to copy a 15+GB thing to a fixed position when it has been installed somewhere else, and furthermore to specify LIBIGL_INCLUDE_DIR when this path is obvious after copying, for an example to be able to build. Good news is that the example finally works for me, but I hope FindLIBIGL.cmake could be more adaptive when doing its job. |
Hi, I've been struggling with the same issue for hours. I'm using the same FindLIBIGL.cmake file as well, and have tried the solutions mentioned above, but none of them worked. I also tried to set the environment variables (LIBIGL_DIR to the libigl directory) and it's still not working. Do you have any thoughts? Xi |
@zhfsu why is your libigl folder so large? Do you have many different build folder (e.g. for different configurations)? Then no need to copy them. @cynthiaxw what error message do you get?
Have you tried to clone libigl inside libigl-example-project or one level above( |
Hi Nico,
Thanks for your email. My error looks exactly the same as this. And I also
tried cloning into the parent directory and using environment variables,
none of them worked. They all reported the same message. One thing is that
I'm using libigl as a dependency for another library (gptoolbox) rather
than the ligigl-example-project. I'll try the example project and see if it
works. Thank you :)
Xi
…On Mon, 5 Aug 2019 at 02:57, Nico ***@***.***> wrote:
@zhfsu <https://github.com/zhfsu> why is your libigl folder so large? Do
you have many different build folder (e.g. for different configurations)?
Then no need to copy them.
So if I was a but unclear FindLIBIGL.cmake does lock in a few place by
default see:
https://github.com/libigl/libigl-example-project/blob/master/cmake/FindLIBIGL.cmake#L17-L26
Or if you want to use your version of libigl you can always specify
LIBIGL_INCLUDE_DIR. See my answer above: #23 (comment)
<#23 (comment)>
I'm sorry I still don't get your issue @zhfsu <https://github.com/zhfsu>.
@cynthiaxw <https://github.com/cynthiaxw> what error message do you get?
Does your error message look like this:
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
libigl not found --- You can download it using:
git clone --recursive https://github.com/libigl/libigl.git
/home/nico/test/libigl-example-project/../libigl (missing:
LIBIGL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLIBIGL.cmake:30 (find_package_handle_standard_args)
CMakeLists.txt:10 (find_package)
Have you tried to clone libigl inside libigl-example-project or one level
above(cd .. the clone)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=AGT37JVYOETP2WDDJY6Y6T3QC7TQTA5CNFSM4HMQPJDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3RFAWI#issuecomment-518148185>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGT37JWMK4KE7DOWKCP6E2DQC7TQTANCNFSM4HMQPJDA>
.
|
Hi Nico,
Sorry for the spam. The error that you have sent is what I experienced
before cloning the libigl repository. After I cloned it, the error changed
to :
-----------------------------------------------------------------------------
CMake Error at cmake/FindLIBIGL.cmake:36 (include):
include could not find load file:
libigl
Call Stack (most recent call first):
CMakeLists.txt:37 (find_package)
-----------------------------------------------------------------------------
I tested the libigl-example-project and it works well, but it's still not
working in the gptoolbox library (as is shown in the above error message).
Xi
…On Tue, 6 Aug 2019 at 14:58, Xi Wang ***@***.***> wrote:
Hi Nico,
Thanks for your email. My error looks exactly the same as this. And I also
tried cloning into the parent directory and using environment variables,
none of them worked. They all reported the same message. One thing is that
I'm using libigl as a dependency for another library (gptoolbox) rather
than the ligigl-example-project. I'll try the example project and see if it
works. Thank you :)
Xi
On Mon, 5 Aug 2019 at 02:57, Nico ***@***.***> wrote:
> @zhfsu <https://github.com/zhfsu> why is your libigl folder so large? Do
> you have many different build folder (e.g. for different configurations)?
> Then no need to copy them.
> So if I was a but unclear FindLIBIGL.cmake does lock in a few place by
> default see:
>
> https://github.com/libigl/libigl-example-project/blob/master/cmake/FindLIBIGL.cmake#L17-L26
> Or if you want to use your version of libigl you can always specify
> LIBIGL_INCLUDE_DIR. See my answer above: #23 (comment)
> <#23 (comment)>
> I'm sorry I still don't get your issue @zhfsu <https://github.com/zhfsu>.
>
> @cynthiaxw <https://github.com/cynthiaxw> what error message do you get?
> Does your error message look like this:
>
> CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
>
>
> libigl not found --- You can download it using:
>
> git clone --recursive https://github.com/libigl/libigl.git
> /home/nico/test/libigl-example-project/../libigl (missing:
> LIBIGL_INCLUDE_DIR)
> Call Stack (most recent call first):
> /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
> cmake/FindLIBIGL.cmake:30 (find_package_handle_standard_args)
> CMakeLists.txt:10 (find_package)
>
>
> Have you tried to clone libigl inside libigl-example-project or one level
> above(cd .. the clone)?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#23?email_source=notifications&email_token=AGT37JVYOETP2WDDJY6Y6T3QC7TQTA5CNFSM4HMQPJDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3RFAWI#issuecomment-518148185>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AGT37JWMK4KE7DOWKCP6E2DQC7TQTANCNFSM4HMQPJDA>
> .
>
|
Hi Xi, |
Hi Nico,
I fixed the problem. I just replaced the FindLIBIGL.cmake file in the
gptoolbox with yours and it magically worked. Thanks again for your help :)
Xi
…On Wed, 7 Aug 2019 at 02:33, Nico ***@***.***> wrote:
Hi Xi,
I'm glad that it works at least for the libigl-example-project :)
Your issue seems more related to gptoolbox, so I'm not sure if this is the
right place.
Over at the gptoolbox repo I've only found one outdated issue:
alecjacobson/gptoolbox#76
<alecjacobson/gptoolbox#76>
Did you follow the instructions at
https://github.com/alecjacobson/gptoolbox/blob/master/mex/README.md for
compling the C++ code with a matlab interface?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=AGT37JSMKA7XXA3SJVU3BADQDKCETA5CNFSM4HMQPJDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XUXSA#issuecomment-518998984>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGT37JR7HPW7JGT4S2KZAG3QDKCETANCNFSM4HMQPJDA>
.
|
I think I have the same problem. I have followed the steps provided CMake Error at cmake/FindLIBIGL.cmake:34 (include):
Call Stack (most recent call first): These are the steps I have followed, in case I made something wrong: javspace2@javspace2-pc:
Call Stack (most recent call first): -- Configuring incomplete, errors occurred! |
Hello,
I've been using libigl for a few months now (thanks for the tools by the way), and I started my project from this example while hosting it on a Github repo. However, in any project I start from this example now, I get the following error when executing "cmake .." from a "debug" repository inside my project :
I saw from an previous post by Alec Jacobson that it might be due to inappropriately set environment variables, but I do not know anything about how to fix it. My "libigl" directory is at the same location as my project directory. Do you have any idea ?
Thank you very much,
Paul-Elian
The text was updated successfully, but these errors were encountered: