pers0na2dev / imgui-editor

No-code UI creating software for ImGui. Create an interface for your application with the convenience of Figma and the functionality of Photoshop.
MIT License
182 stars 25 forks source link

Doesn't compile #22

Open Codinablack opened 3 months ago

Codinablack commented 3 months ago

I did a clone of this repo, used CMake to generate build files, and after opening and running with VS the solution file it created, It would not compile due to these errors

Severity Code Description Project File Line Suppression State Details Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145
Error C3861 '_getpid': identifier not found imgui-editor C:\Users\codin\Downloads\imgui-editor-main\imgui-editor\src\utils\utils.hpp 145

Jeremy-Boyle commented 2 months ago

I was able to get this working, but it wasn't exactly what i was expecting to be honest, there's no demos or pictures on it.

Theres a few other bugs that you need to fix in the code, eventually i just decided it wasn't for me

Jeremy-Boyle commented 2 months ago

image

https://github.com/pers0na2dev/imgui-editor/blob/main/imgui-editor/src/utils/utils.hpp#L145

change to

srand((unsigned)time(NULL) * GetCurrentProcessId());

which leads to

image

to fix this

https://github.com/pers0na2dev/imgui-editor/blob/main/imgui-editor/dependencies/modals/modals.cpp#L28-L50

BeginChild is supposed to end with EndChild on line 50 (not sure how this was pushed given that the whole app doesn't work)

image

This is what it looks like, whatever you do don't click the top left otherwise everything will break, this is when i gave up and abandoned it due to the various bugs.

Jeremy-Boyle commented 2 months ago

https://raa.is/ImStudio/

Check this out if you are looking for something else.

Codinablack commented 2 months ago

@Jeremy-Boyle Thanks for the instructions on how to fix, and also for the link to the alternative, I will be looking into both options!