Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Doesn't compile #22

Open
Codinablack opened this issue Apr 3, 2024 · 4 comments
Open

Doesn't compile #22

Codinablack opened this issue Apr 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Codinablack
Copy link

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 Codinablack added the bug Something isn't working label Apr 3, 2024
@Jeremy-Boyle
Copy link

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
Copy link

Jeremy-Boyle commented Apr 5, 2024

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
Copy link

https://raa.is/ImStudio/

Check this out if you are looking for something else.

@Codinablack
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants