imgui-editor icon indicating copy to clipboard operation
imgui-editor copied to clipboard

Doesn't compile

Open Codinablack opened this issue 1 year ago • 4 comments

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

Codinablack avatar Apr 03 '24 04:04 Codinablack

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 avatar Apr 05 '24 03:04 Jeremy-Boyle

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 avatar Apr 05 '24 04:04 Jeremy-Boyle

https://raa.is/ImStudio/

Check this out if you are looking for something else.

Jeremy-Boyle avatar Apr 05 '24 04:04 Jeremy-Boyle

@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!

Codinablack avatar Apr 08 '24 22:04 Codinablack