Skip to content

Fix compilation on Linux #7

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

4321ba
Copy link

@4321ba 4321ba commented Apr 26, 2025

Hi!

After these changes, I was able to run the program on Linux (Kubuntu 22.04), without any apparent problems.
I didn't test compilation on windows (I don't have a version that is set up), but it shouldn't cause many errors.

I translated the debug and release build scripts with gpt, it's basically the same as the windows one.

ImGuiUi.cpp:
The chosen folder was appended with a \, which caused the file to not export. I looked and it looks like destinationFilePathFolder is not used anywhere else, other than at getMeshFullFilePathDestination, but a / is appended after the file path there anyway, so my guess would be that the \ may not be needed on windows either.

utils.cpp/hpp:
crtdbg.h looks like is not used, and is not available here so I deleted the include
getExecutablePath+getExecutableDir uses windows specific code, but it is not used anywhere so I deleted these 2
afterwards windows.h was not needed either, only math.h for isnan

I also added a chapter into the readme for linux compilation.
And I also filled out the CLA.

@4321ba 4321ba mentioned this pull request Apr 26, 2025
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.

1 participant