ImGuiHydraEditor icon indicating copy to clipboard operation
ImGuiHydraEditor copied to clipboard

How to build it on Windows?

Open KamalTD opened this issue 1 year ago • 9 comments

I'm interested in building it on Windows and noticed the build instructions primarily focus on macOS and Linux. Could you please provide guidance or instructions on how to successfully build it on Windows? Specifically, I'm looking for details on any necessary adaptations or additional dependencies required for the Windows platform.

Thank you

KamalTD avatar Aug 28 '24 06:08 KamalTD

It built for me with visual studio 2022. I have it up and running in release mode, debug mode hits a crash on windows opening a layer w/ SDF I haven't had time to track it down

image

n-burk avatar Aug 29 '24 04:08 n-burk

Hi @KamalTD , I haven't had the chance to test it on Windows yet. I let you know once I have more info. Meanwhile other people might have some answers. Thanks @n-burk for your test.

raph080 avatar Aug 30 '24 15:08 raph080

Thanks a lot, @raph080! I appreciate your willingness to provide more information when you have the chance. And thanks to @n-burk for testing it on Windows.

If it's not too much trouble, could you share the build process or any specific steps you followed to get it up and running on Windows? It would be incredibly helpful, especially for those of us new to building the project on this platform.

KamalTD avatar Sep 06 '24 14:09 KamalTD

This was pretty straightforward, I ran cmake in a Visual Studio 2022 developer terminal, cracked open the sln it generated and then compiled in release. I will note that compiling in Debug introduced some wonky OpenUsd side things my windows build was missing but these seemed to be more on the OpenUsd side than ImGuiHydraEditor side

n-burk avatar Sep 22 '24 22:09 n-burk

Is this built for Windows ? I'd like to give it a run.

SheepDomination avatar Aug 10 '25 20:08 SheepDomination

I managed to build this for Windows using my own builds of OpenUSD in both release and relwithdebuginfo configurations.

However, as I execute the .exe it flickers pretty hard. I am on Microsoft Windows 11 Home 10.0.26200 26200 64-bit and on Nvidia RTX4060 driver 581.57.

Between the flickers I can see (somewhat) the "window" drop down -

If anyone has any guidance or clues I would appreciate it.

rudycazabon avatar Oct 15 '25 22:10 rudycazabon

I think the issue may not be with building but with Moonray release itself; that is based on some info I received in the past.

SheepDomination avatar Oct 16 '25 07:10 SheepDomination

Hi! Sorry for the delay.

I now have access to a windows machine. Here are the step to build it and the problem I faced:

  1. Install Visual Studio Tools 2022
  2. run the x64 Native Tools Command prompt for VS 2022
  3. go into the ImguiHydraEditor git folder (dont forget to clone submodules too).
  4. mkdir build
  5. cd build
  6. cmake -Dpxr_DIR=/path/to/OpenUSD/build/folder -DOpenSubdiv_DIR=/path/to/OpenUSD/build/folder/lib/cmake/OpenSubdiv ..
  7. cmake --build . --config release
  8. Release\ImguiHydraEditor.exe

Make use of https://github.com/lucasg/Dependencies to double check if you are missing a dll at runtime. DependenciesGui.exe is quite convenient ! Like @n-burk said, debug build is failing, could be related to my USD being built in release mode. I might give it a try... So make sure to use the --config release flag when building. @rudycazabon I am facing the flickering too. It seems to be coming from that commit: https://github.com/raph080/ImGuiHydraEditor/commit/380a5619ab60fff3e583f7f50b4655b3d9ebb3d2. You can try to checkout to the previous one 80aa8801b355a2c3c0e44eb9ffd40cb0ef5f7592 and see if it is working for you. Also, the target_compile_definitions needs to be moved further down the CMakeLists.txt to prevent some errors https://github.com/raph080/ImGuiHydraEditor/commit/88dcada689c26421e2dedcbad2268b5efe8fe032.

Thanks for testing on Windows. I greatly appreciate it !

raph080 avatar Oct 17 '25 01:10 raph080

@raph080 It sounds as if with the previous commit you got it working ?

If we could get it to plug into gaffer, that would be great.

SheepDomination avatar Oct 17 '25 01:10 SheepDomination