Skip to content

Can't launch or build #5

Open
Open

Description

@valvhammer

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

Activity

  1. johnpayne-dev commented on Aug 28, 2021

    @johnpayne-dev
    Owner

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

  2. valvhammer commented on Aug 28, 2021

    @valvhammer
    Author

    I did exactly that, but now I get 9 errors

    image

  3. valvhammer commented on Aug 29, 2021

    @valvhammer
    Author

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

  4. johnpayne-dev commented on Aug 29, 2021

    @johnpayne-dev
    Owner

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

  5. valvhammer commented on Aug 29, 2021

    @valvhammer
    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)

  6. johnpayne-dev commented on Aug 29, 2021

    @johnpayne-dev
    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
    
  7. valvhammer commented on Aug 29, 2021

    @valvhammer
    Author

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

  8. johnpayne-dev commented on Aug 29, 2021

    @johnpayne-dev
    Owner

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

  9. valvhammer commented on Aug 29, 2021

    @valvhammer
    Author

    It did not fix the link errors.

  10. johnpayne-dev commented on Aug 29, 2021

    @johnpayne-dev
    Owner

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

  11. johnpayne-dev commented on Jul 24, 2022

    @johnpayne-dev
    Owner

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

  12. valvhammer commented on Aug 16, 2022

    @valvhammer
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions