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

1.90.8 and backend shenanigans #122

Merged
merged 11 commits into from
Jun 27, 2024
Merged

1.90.8 and backend shenanigans #122

merged 11 commits into from
Jun 27, 2024

Conversation

JamesWrigley
Copy link
Collaborator

@JamesWrigley JamesWrigley commented Jun 11, 2024

I began the bindings update to 1.90.8 and ran into a bunch of things that needed fixing in our backends, so I decided to try using the official GLFW/OpenGL3 backends instead. And amazingly, they seem to work 🐙 This isn't ready to merge yet but I'm opening it for transparency. demo/demo.jl should work, but not example/demo.jl yet.

How to test it:

  • Clone my cimguipack-update branch of Yggdrasil ([CImGuiPack] Update to ImGui 1.90.8 JuliaPackaging/Yggdrasil#8870)

  • Build CImGuiPack locally with: julia +1.7 build_tarballs.jl <platform> --deploy=local. Change the platform to your desired one, for example (in a project with BinaryBuilder and BinaryBuilderBase installed):

    julia +1.7 --project=@bb build_tarballs.jl x86_64-linux-gnu --deploy=local # Linux
    julia +1.7 --project=@bb build_tarballs.jl x86_64-apple-darwin --deploy=local # OSX
    julia +1.7 --project=@bb build_tarballs.jl x86_64-w64-mingw32 --deploy=local # Windows

    If you get configure errors about cxx_std_20, pick a target that's in this CI list that matches your system: https://buildkite.com/julialang/yggdrasil/builds/11093. For example, on my system I had to use x86_64-linux-gnu-cxx11-julia_version+1.11.0.

  • Clone this branch, ] dev ./LibCImGui.jl and ] dev CImGuiPack, and run demo/demo.jl. Docking and multiple viewports should work.

@JamesWrigley JamesWrigley requested a review from Gnimuc June 11, 2024 00:03
@JamesWrigley JamesWrigley force-pushed the 1.90.8 branch 2 times, most recently from 97a335a to 244c36c Compare June 11, 2024 15:52
@JamesWrigley JamesWrigley force-pushed the 1.90.8 branch 2 times, most recently from bc37505 to 240f2df Compare June 23, 2024 12:25
@JamesWrigley JamesWrigley force-pushed the 1.90.8 branch 3 times, most recently from 0b799ae to 664b68d Compare June 24, 2024 15:43
@JamesWrigley
Copy link
Collaborator Author

Fixes #123. Sneaky proof using the new test engine wrapper 😏
cimgui-tests

@JamesWrigley JamesWrigley force-pushed the 1.90.8 branch 6 times, most recently from f1a6bd4 to edcc4f9 Compare June 26, 2024 22:44
@JamesWrigley
Copy link
Collaborator Author

JamesWrigley commented Jun 26, 2024

While fixing the existing tests and getting CI to pass I realized that package extensions were only added in 1.9... I don't think I can be bothered supporting Requires and all that for older versions so I just bumped the minimum Julia version. There's still two failures on nightly for OSX and Ubuntu, but they both seem to be issues with loading GLFW.

@JamesWrigley JamesWrigley force-pushed the 1.90.8 branch 3 times, most recently from a29b573 to aa8b859 Compare June 27, 2024 11:57
@JamesWrigley JamesWrigley force-pushed the 1.90.8 branch 2 times, most recently from 844760a to 46887cd Compare June 27, 2024 13:16
This involved using a method to set the backend instead of a global variable for
compatibility with Julia 1.6, though eventually I decided to bump the minimum
Julia version to 1.9 so we could get package extensions.
@JamesWrigley
Copy link
Collaborator Author

I tried to add x86 tests to CI, but got this error when creating a GLFW window: Invalid window size -389703880x100
Not sure what's going on there, AFAICT it's unrelated to CImGui. But we weren't testing x86 before anyway so I don't think it's a blocker.

@JamesWrigley JamesWrigley merged commit fe10825 into master Jun 27, 2024
26 checks passed
@JamesWrigley JamesWrigley deleted the 1.90.8 branch June 27, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help / About Dear ImGui / Config/Build information throws an error Expand tests
1 participant