Hi, I'm trying to compile Eigen but I'm facing trouble. First, I ran
`cargo build -j1' and I got this error:
error: Syntax error: expected Identifier
--> /git/eigen/ui/slint/main.slint:29:1
|
29 | }
| ^
I looked through main.slint and found there was an extra comma on line
28. After removing it I attempted to build Eigen once again, using
`cargo build -j1'. I then received the following error:
Compiling eigen v0.1.0 (/git/eigen)
error[E0412]: cannot find type `SidebarModels` in crate `eigen_ui`
--> src/main.rs:67:48
|
67 | let sidebar_models = ui.global::<eigen_ui::SidebarModels>();
| ^^^^^^^^^^^^^ not found in `eigen_ui`
For more information about this error, try `rustc --explain E0412`.
I'm unsure on what to do now. Have I missed something? I only know a
very small amount of Rust so I cannot diagnose the issue very further.
I'm building from commit 895b65f5b204f9ca2772870534512b1fd04e5399.
Thanks,
~Jeremy
Hello Jeremy,
First of all, thank you for reaching out! You're the first person to see
eigen and to use the mailing lists :D
This could have been sent to eigen-discuss, as eigen-devel is more for
patches, but it's all good.
Now, eigen was, indeed, not compilable at that commit, because of a
couple of my mistakes doing previous commits. Since eigen is still *very
much* in an early stage, I'm still often changing a lot of files when
working on a specific feature, and often end up working on multiple
features too! When it comes time to commit something, I end up doing a
lot of partial selection, and splitting my changes into multiple
commits.
In this case, unfortunately, I had included some changes by accident
(the SidebarModels bit) and failed to notice that trailing comma (in my
full chnages, that block is extended and the comma needs to be there).
I've since fixed those (and checked it compiles :P) and pushed a commit
to the main branch (66df5902). Try pulling and compiling again now.
Thank you a lot for the report and sorry for the inconvenience!
Cheers,
~tmpod
PS: Please keep in mind eigen is still unusable, even as a very basic
chat app. I have some pending changes that will add basic features, but
they're not ready yet. Most of the work already done is backend stuff.
But keep an eye out on eigen-announce (maybe subscribe ;p)!
On Mon Feb 26, 2024 at 9:08 PM NZDT, tmpod wrote:
> This could have been sent to eigen-discuss, as eigen-devel is more for> patches, but it's all good.
Cool got it, I'll use eigen-devel next time.
> Now, eigen was, indeed, not compilable at that commit, because of a> couple of my mistakes doing previous commits. Since eigen is still *very> much* in an early stage, I'm still often changing a lot of files when> working on a specific feature, and often end up working on multiple> features too! When it comes time to commit something, I end up doing a> lot of partial selection, and splitting my changes into multiple> commits.>> In this case, unfortunately, I had included some changes by accident> (the SidebarModels bit) and failed to notice that trailing comma (in my> full chnages, that block is extended and the comma needs to be there).>> I've since fixed those (and checked it compiles :P) and pushed a commit> to the main branch (66df5902). Try pulling and compiling again now.
Thanks, I'll try it out.
> PS: Please keep in mind eigen is still unusable, even as a very basic> chat app. I have some pending changes that will add basic features, but> they're not ready yet. Most of the work already done is backend stuff.> But keep an eye out on eigen-announce (maybe subscribe ;p)!
No worries man, I'd love to help out where I can.
Thanks for the reply!
~Jeremy