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

glm package missing in scripts/mingw-x-build-dependencies.sh #5021

Open
Chron-O-John opened this issue Feb 27, 2024 · 14 comments
Open

glm package missing in scripts/mingw-x-build-dependencies.sh #5021

Chron-O-John opened this issue Feb 27, 2024 · 14 comments
Labels
Comp: Build system Tweaks for the build systems / CI integration OS: Windows Tag: Manifold Type: Bug

Comments

@Chron-O-John
Copy link

Describe the bug
glm is missing in the packages, altough it is necesarry to cross-compile

To Reproduce
Steps to reproduce the behavior:

  1. Follow the tutorial for cross-compilation in readme.md
  2. See Error

Expected behavior
glm is found and used

Code reproducing the issue
after adding glm to scripts/mingw-x-build-dependencies.sh compiling goes a few steps further (until it fails again, complaining about missing functions, but I have to further investigate for a detailed follow-up)

Environment and Version info (please complete the following information):
WSL2 - ubuntu on a Windows10-Machine

@kintel kintel added Comp: Build system Tweaks for the build systems / CI integration OS: Windows labels Feb 28, 2024
@kintel
Copy link
Member

kintel commented Feb 28, 2024

We don't use glm, but Manifold does. Perhaps this is a recent Manifold build system regression. @pca006132 does this ring a bell?

@pca006132
Copy link
Member

weird, can you post the error messages? I thought we should automatically pull it.

@imperfectinventions
Copy link

imperfectinventions commented Mar 16, 2024

Hi, I also ran into this issue when trying to cross build for the first time.

This is the error I got:

In file included from /etc/opt/openscad/src/geometry/cgal/CGALCache.cc:5: /etc/opt/openscad/src/geometry/manifold/ManifoldGeometry.h:5:10: fatal error: glm/glm.hpp: No such file or directory 5 | #include <glm/glm.hpp> | ^~~~~~~~~~~~~

Adding "glm" to the packages list in the mingw build dependencies file did get me past this error, but then I ran into other errors about conversion from ManifoldGeometry into CGALHybridPolyhedrons and many other data types.

New error (probably unrelated):
/etc/opt/openscad/src/geometry/Geometry.h:63:50: note: no known conversion for argument 1 from 'const ManifoldGeometry' to 'const CGALHybridPolyhedron&' 63 | virtual void visit(const CGALHybridPolyhedron& node) = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

@pca006132
Copy link
Member

Can you post the complete build log? Manifold should normally search for glm and download it automatically.

@imperfectinventions
Copy link

Sure, is this what you're looking for? Or is there a file that the build process created?

build_stdout.txt

@pca006132
Copy link
Member

No, but the cmake log, e.g. similar to the "Build and Test" part in https://github.com/openscad/openscad/actions/runs/8227281463/job/22494941114

btw, are you building 2023-11-22? there are a lot of changes recently, and I recommend trying the latest one (you are already using snapshot anyway).

@imperfectinventions
Copy link

Let me see if I can get the cmake log for you. Trying to build again after switching to the master branch for MXE in the mingw-x-build-dependencies.sh file. I'm running the "mingw-x-build-dependencies.sh 4" command it says in the README for cross building. Is there another script I should run instead?

This is my first time building OpenSCAD, last time I installed the release version (great program by the way, the work you all have done is incredible).

@pca006132
Copy link
Member

and just to let you know there is a development snapshot download section in the website so you can try the latest stuff without waiting for it to compile

@imperfectinventions
Copy link

Thanks for telling me about the development snapshot download. I was unable to successfully build again, but it wasn't the glm issue this issue is about. I assume my environment isn't set up right on my end.

@imperfectinventions
Copy link

I was able to successfully download the snapshot download, so from my end, the problem is solved.

@kintel
Copy link
Member

kintel commented Mar 24, 2024

@imperfectinventions Are you just building the default binaries using ./scripts/release-common.sh mingw64 (i.e. without any experimental features like Manifold) ?

@imperfectinventions
Copy link

That was what I was trying to do, yes.

@kintel
Copy link
Member

kintel commented Mar 24, 2024

Thx, I'll take a look. We don't currently run non-experimental builds on any CI, so minor build issues may easily sneak in there..

@imperfectinventions
Copy link

Makes sense! Thank you all for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Comp: Build system Tweaks for the build systems / CI integration OS: Windows Tag: Manifold Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants