Skip to content
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

how to run it in linux? #470

Open
xinsuinizhuan opened this issue Aug 5, 2021 · 5 comments
Open

how to run it in linux? #470

xinsuinizhuan opened this issue Aug 5, 2021 · 5 comments

Comments

@xinsuinizhuan
Copy link

Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is, e.g. "I'm always frustrated when [...]"

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here. Any relevant information for platform specific features could be useful.

@AnantTiwari-Naman
Copy link

Could you please like fill in the template / strip parts which you can't answer

@DaVikingMan
Copy link

The Hazel Engine(currently)only supports Windows.

@astralchan
Copy link

See Hazel/src/Hazel/Core/PlatoformDetection.h, specifically this section:

.
.
.
#elif defined(__linux__)
	#define HZ_PLATFORM_LINUX
	#error "Linux is not supported!"
#else
	/* Unknown compiler/platform */
	#error "Unknown platform!"
#endif // End of platform detection

This header will see if __linux__ is defined (which is defined on linux systems) and error "Linux is not supported!" Though, it does define HZ_PLATFORM_LINUX, which currently only seems to be used in Hazel/src/Hazel/Core/Base.h:

.
.
.
#ifdef HZ_DEBUG
	#if defined(HZ_PLATFORM_WINDOWS)
		#define HZ_DEBUGBREAK() __debugbreak()
	#elif defined(HZ_PLATFORM_LINUX)
		#include <signal.h>
		#define HZ_DEBUGBREAK() raise(SIGTRAP)
	#else
		#error "Platform doesn't support debugbreak yet!"
	#endif
.
.
.

Beyond that, I don't really see any other spots where HZ_PLATFORM_LINUX is used - and this is the only thing that gets defined before the build system errors out at the moment. Given the way they bother defining a platform for linux, it might be supported in the future. Here is what would happen if you were to try and built it now

premake5 gmake2
make -j4

1661585688

In the mean time, check out PR#82, which is attempting to add Linux support.

@DaveAxiom
Copy link
Contributor

Can we close this issue? Just see PR #82.

@astralchan
Copy link

Can we close this issue? Just see PR #82.

Maybe instead of closing it, add it to the tracker such that the issue will be closed once 82 is merged. As it stands, it is still an issue.

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

No branches or pull requests

5 participants