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

Update to latest GLFW #6587

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Update to latest GLFW #6587

wants to merge 7 commits into from

Conversation

errissa
Copy link
Collaborator

@errissa errissa commented Jan 9, 2024

Type

  • Bug fix (non-breaking change which fixes an issue): Fixes #
  • New feature (non-breaking change which adds functionality). Resolves #
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) Resolves #

Motivation and Context

Updates Open3D to use the latest GLFW as the version we had been using is several years old and predates Mac API changes. Also, updated to build system to build GLFW as external project to make it consistent with the rest of Open3D's use of third party libraries.

Checklist:

  • I have run python util/check_style.py --apply to apply Open3D code style
    to my code.
  • This PR changes Open3D behavior or adds new functionality.
    • Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is
      updated accordingly.
    • I have added or updated C++ and / or Python unit tests OR included test
      results
      (e.g. screenshots or numbers) here.
  • I will follow up and update the code if CI fails.
  • For fork PRs, I have selected Allow edits from maintainers.

Description

@errissa errissa requested a review from ssheorey January 9, 2024 23:32
Copy link

update-docs bot commented Jan 9, 2024

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@ssheorey
Copy link
Member

Looks good. We can merge after testing. Thanks!

@ssheorey
Copy link
Member

Possibly fixes #1673

@errissa errissa marked this pull request as ready for review January 30, 2024 15:57
@ssheorey
Copy link
Member

Test draw example and O3DVisualizer. Also test legacy visualizer.

@ssheorey
Copy link
Member

ssheorey commented Feb 9, 2024

Hi @errissa can you check the error in the documentation CI? Also, do all examples run for you? I got a crash in one draw.py example on Intel macOS.

@ssheorey
Copy link
Member

Works for me on intel Mac now.

@ssheorey
Copy link
Member

ssheorey commented Mar 5, 2024

Everything works, except double clicking on a file in macOS does not open the file with Open3D. Need to check how macOS is passing the file name to glfw.

@ssheorey
Copy link
Member

ssheorey commented Jul 9, 2024

Hi @errissa let's go ahead and merge this PR and the filament update PR as is. We'll open an issue for the "double clicking on file doesn't open in Open3D viewer" and fix it later.

@ssheorey
Copy link
Member

FIXME: Intel macOS: No window when opening app without a file (e.g. double click).

@rxba
Copy link
Contributor

rxba commented Oct 5, 2024

Not sure if this was still was an open question, but this PR does indeed fix #1673 on an M3 Mac.

@ssheorey
Copy link
Member

ssheorey commented Oct 8, 2024

@rxba thanks for testing this PR. We haven't merged this yet because of a macOS [only tested on Intel mac] issue in the Open3D viewer, where double clicking on the app, or launching from the command line doesn't bring up an empty window. Trying to open an asosciated file (double click or command line) gives an error instead of opening it. Can you test and see if you get this error on your Apple M3 machine?

@ssheorey
Copy link
Member

ssheorey commented Oct 8, 2024

FIXME: Intel macOS: No window when opening app without a file (e.g. double click).

@errissa when you get a chance, can you take a look at this? Thanks!

@rxba
Copy link
Contributor

rxba commented Oct 8, 2024

@ssheorey Can confirm this is also an issue on ARM Mac. I just tried ./build/bin/Open3D.app/Contents/MacOS, which does open the window on the current main branch, but does not open it on this PR branch.
Not sure what you mean with "opening an associated file", but I'd assume the behaviour is also the same on ARM.

@ssheorey
Copy link
Member

ssheorey commented Oct 8, 2024

You can make Open3D the default viewer for 3D file types (gltf, obj, ply, etc.), so that double clicking on the file opens it in Open3D. With this PR, you instead get an error message box saying cannot open file of type GLTF, etc.

@rxba
Copy link
Contributor

rxba commented Oct 8, 2024

You can make Open3D the default viewer for 3D file types (gltf, obj, ply, etc.), so that double clicking on the file opens it in Open3D. With this PR, you instead get an error message box saying cannot open file of type GLTF, etc.

I see, can confirm the same behaviour on ARM, e.g. opening a .ply on this build errors with The document "...ply" could not be opened. cannot open files in the "Polygon File Format" format., while it opens the viewer fine with the main branch built binary.

@cwreynolds
Copy link

Sorry to be off-topic for this thread, but as described in #7000 I have been unable to run a new app written in c++ using open3d::visualization::gui::Application on macOS. I am looking for example code. Above, @rxba mentioned build/bin/Open3D.app which may be a good example to follow. I would be grateful if anyone could glance at #7000 and give me a clue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

4 participants