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

Can't launch or build #5

Open
GamerHammer2K4F647Ultimate opened this issue Aug 28, 2021 · 12 comments
Open

Can't launch or build #5

GamerHammer2K4F647Ultimate opened this issue Aug 28, 2021 · 12 comments

Comments

@GamerHammer2K4F647Ultimate

So, i tried building, that did not work(i will say something about that), and then I've thought "you know what, lets get the prebuilt", i downloaded the prebuilt one, and this is the error i get(after getting every dll for it): The application could not start properly (0xc000007b). Click OK to close the application.

The building for me just fails with these errors:
image

@johnpayne-dev
Copy link
Owner

johnpayne-dev commented Aug 28, 2021

It appears that header is only available on high-dpi devices windows 8 or later, try commenting it out as a temporary fix

@GamerHammer2K4F647Ultimate
Copy link
Author

I did exactly that, but now I get 9 errors

image

@GamerHammer2K4F647Ultimate
Copy link
Author

Changed NAN to 0, but now, from 9 errors it goes up to 20
image

@johnpayne-dev
Copy link
Owner

That's odd, it should be defined in <math.h>, what version of windows & pc specs are you using

@GamerHammer2K4F647Ultimate
Copy link
Author

specs:
Intel Core i5-2415M
8GB of ram
Intel hd graphics 3000
os:Windows 7 x64(with visual c++ 2010 express installed, and llvm aswell)

@johnpayne-dev
Copy link
Owner

Here try replacing Windows.bat with this

mkdir Output
cd BuildScripts
clang ^
	../MinecraftC/*.c ^
	../MinecraftC/GUI/*.c ^
	../MinecraftC/Level/*.c ^
	../MinecraftC/Level/Generator/*.c ^
	../MinecraftC/Level/Tile/*.c ^
	../MinecraftC/Level/Generator/Noise/*.c ^
	../MinecraftC/Particle/*.c ^
	../MinecraftC/Physics/*.c ^
	../MinecraftC/Player/*.c ^
	../MinecraftC/Render/*.c ^
	../MinecraftC/Render/Texture/*.c ^
	../MinecraftC/Utilities/*.c ^
	../Resources/MinecraftC.res ^
	-I ../Include ^
	-L ../Libraries ^
	-D _CRT_SECURE_NO_WARNINGS ^
	-std=c11 ^
	-lShell32.lib ^
	-lSetupapi.lib ^
	-lOle32.lib ^
	-lUser32.lib ^
	-lGdi32.lib ^
	-lWinmm.lib ^
	-lOleAut32.lib ^
	-lImm32.lib ^
	-lVersion.lib ^
	-lAdvapi32.lib ^
	-lShcore.lib ^
	-lSDL2main.lib ^
	-lSDL2-static.lib ^
	-lOpengl32.lib ^
	-lGlu32.lib ^
	-Xlinker /subsystem:windows ^
	-Xlinker /NODEFAULTLIB:MSVCRT ^
	-o ../Output/MinecraftC.exe

@GamerHammer2K4F647Ultimate
Copy link
Author

After fixing a few more errors, I get 2 more errors:
image

@johnpayne-dev
Copy link
Owner

add #include <math.h> to the top of each file there's an error in and let me know if that works

@GamerHammer2K4F647Ultimate
Copy link
Author

It did not fix the link errors.

@johnpayne-dev
Copy link
Owner

Okay, when I get the time I'll setup a Windows 7 VM to see if I can replicate the issue.

@johnpayne-dev
Copy link
Owner

Closing since there's been a huge refactor, if the issue persists please reopen

@GamerHammer2K4F647Ultimate
Copy link
Author

Yeah, so now when i tried i get this error:
image

@johnpayne-dev johnpayne-dev reopened this Aug 17, 2022
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

2 participants