-
Notifications
You must be signed in to change notification settings - Fork 123
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
Eigen::all Eigen::placeholders::all Eigen::indexing::all not available in example project #38
Comments
Update: With terminal inside example project folder i first After that i exchange the example projects
which (almost builds). Apparently, libigl uses some depcrecated sparse matrix type in I assume what i did is far from optimal but for now it builds. Is the issue with |
not sure about Eigen::all, would need to look into. Is it just something in a newer Eigen that we're not pulling in yet? we've been continuing to use DynamicSparseMatrix because it was faster than SparseMatrix. Not sure if that's still the case and if it's changed from a warning to an error then I guess we'd just have to replace it on the next upgrade of Eigen. |
I think its nothing newer. The Regarding DynamicSparseMatrix: it seems like that it should be still supported but somehow it doesnt work with my cmake script (even though i have |
Hmm. I'm a bit confused then. When you manually include Eigen, which version are you connecting to? |
It is the most recent version from the gitlab repository (downloaded via git clone) |
I see. I'm ready to conclude this is an Eigen issue rather than a libigl issue. Or at least, this could be a preemptive issue for the next bump to Eigen. Preparing a PR of some necessary changes in advance could be useful but then the way I'd make the change is by bumping the version number in https://github.com/libigl/libigl/blob/main/cmake/recipes/external/eigen.cmake |
The libigl-example-project is using libigl v2.4.0 by default, which pulls in Eigen 3.3.7. If you update this line to pull in the latest version of libigl (a05865e), then it will pull Eigen 3.4.0, and calling |
Ah. Nice catch. I wonder if the example project should have similarly
tagged releases and then the main branch can be loosely up to date
…On Wed, Apr 12, 2023, 5:32 AM paul0noah ***@***.***> wrote:
Thanks @jdumas <https://github.com/jdumas> this works!
Apparently, this is also mentioned in release log of libigl v2.4.0 (see
here <https://github.com/libigl/libigl/releases>). Maybe it makes sense
to mention it somwhere in the example project how to pull in newest version
of libigl?
—
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARDJGOZ6DT3UGBEUVXQ7UTXAZZCNANCNFSM6AAAAAAW2BR5XU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi,
I wanted to update my old codebase so it works with new libigl buildsystem. My code uses
Eigen::all
almost in every function but when compiling i get the error:no member named 'all' in namespace 'Eigen'
As a first debugging step I downloaded the libigl example project and built it (which worked fine). After that I added the following line of code after this line of to the
main
function of libigl example project:std::cout << F(Eigen::all, 0) << std::endl;
With this line added i get the same error:
I found online several posts that say that
Eigen::all
changed toEigen::placeholders::all
or evenEigen::indexing::all
. All of them i tried but the error still exists.The eigen documnetation still suggests using
all
(see here) so i guess the error somehow is in the build system.Thanks a lot for help in advance!
The text was updated successfully, but these errors were encountered: