Code Monkey home page Code Monkey logo

game-premake's People

Contributors

gulrak avatar hellercommaa avatar jbsiraudin avatar jeffm2501 avatar peter0x44 avatar teais4u avatar zzgames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

game-premake's Issues

Questions regarding building the game

Hey, I'm using Raylib to learn more about C++ dev and really like this repo! I typically use VS Code for dev but I'm enjoying using VS for these kind of projects instead, and your template generates a solution automatically.

I have some questions regarding this setup:

  1. How can I view the assets in my repo in VS? For example, I'd love to see the images + 3d model I have included at the side panel. If there's an option, can it be enabled by default? Or maybe a flag?
  2. When I build it, the assets aren't bundled. I figure I'll have to add a copy step somewhere, any guidance here? Can this template be updated to copy resources automatically?
  3. What typically happens when you want to release the game? Should I expect that VS' release option creates the right output?
  4. Any chance for CI/CD? Before trying out this out I created my own template, it had GitHub actions for Windows, Mac and HTML5: https://github.com/msanatan/RaylibTemplate/blob/main/.github/workflows/ci.yml. What would be needed to have builds automoated?

No X11/xlib.h found fatal error when compiling

I'm following this tutorial. Using freshly installed WSL ubuntu and when I am at the point to build it with the make command I get this error:

../raylib-master/src/external/glfw/src/x11_platform.h:32:10: fatal error: X11/Xlib.h: No such file or directory
   32 | #include <X11/Xlib.h>
      |          ^~~~~~~~~~~~
compilation terminated.

If I understand correctly, I should have this folder right?

Premake5 returning error with libc.so.6 / libm.so.6 older versions

Hello, I have been trying to use ./premake5 gmake2 to begin using premake at university PCs and currently I'm having a error since 2 days ago, it's has something to do with the version of libc and libm being outdated, I don't have ss at moment but it's like:

./premake5 gmake2
/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.29' not found
...
/lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29' not found`

We're using Raylib to learn how to code in C, and I prefer to use premake since it's far easier to run than linking raylib at some IDE aka{CB};
The thing is, I can't sudo and update those libraries, they usually do at end of each semester. Could I ask for a older version? Since it was working before the last update here.

Unresolved Externals

Hi! I'm getting a lot of unresolved externals errors whenever I add my own code in the visual studio premake. can you help?
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol _InitWindow referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _WindowShouldClose referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _CloseWindow referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _ClearBackground referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _BeginDrawing referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _EndDrawing referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _SetTargetFPS referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _GetRandomValue referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _IsKeyDown referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _IsMouseButtonPressed referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _GetMousePosition referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _DrawRectangle referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _CheckCollisionRecs referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _DrawText referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK2019 unresolved external symbol _FormatText referenced in function _main game game D:\Algoritmika Projects\game game_build\main.obj 1
Error LNK1120 15 unresolved externals game game D:\Algoritmika Projects\game game_bin\Debug\game game.exe 1

Can't build on Windows with mingw (w64devkit)

The premake-mingw.bat file works fine. But when I run the make command I get loads of "undefined reference" errors.

==== Building raylib (debug_x64) ====
raudio.c
In file included from ../raylib-master/src/raudio.c:211:
../raylib-master/src/external/jar_xm.h:242: warning: "DEBUG" redefined
  242 | #define DEBUG(...)
      |
<command-line>: note: this is the location of the previous definition
rcore.c
rglfw.c
rmodels.c
rshapes.c
rtext.c
rtextures.c
utils.c
Linking raylib
==== Building game-premake-main (debug_x64) ====
raylib_game.c
screen_ending.c
screen_gameplay.c
screen_logo.c
screen_options.c
screen_title.c
Linking game-premake-main
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
C:/dev/w64devkit/bin/ld.exe: c:/dev/w64devkit/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o):merr.c:(.text+0xbb): undefined reference to `fprintf'
C:/dev/w64devkit/bin/ld.exe: ../_bin/Debug/raylib.lib(rtextures.obj):(.text$mn+0x25): undefined reference to `__CheckForDebuggerJustMyCode'
C:/dev/w64devkit/bin/ld.exe: ../_bin/Debug/raylib.lib(rtextures.obj):(.text$mn+0x1f): undefined reference to `__CheckForDebuggerJustMyCode'
C:/dev/w64devkit/bin/ld.exe: ../_bin/Debug/raylib.lib(rtextures.obj):(.text$mn+0x1b): undefined reference to `__CheckForDebuggerJustMyCode'

'premake5' command not found when building on Ubuntu

Hi,

After following the instructions, I'm getting the error message "bash: ./premake5: No such file or directory" when running the command ./premake5 gmake2 after cd'ing into the game directory. I tried doing this in a few different directories but always with the same result.

macOS build

Awesome project! Is there a way to build this for macOS?

No audio using w64 devkit

Using the most recent version of w64 devkit on Windows 10. The build is successful and all resources are loaded properly, but no audio is playing.

Audio device initialized successfully and music stream was loaded as the console says, but still no audio can be heard.

Support building for Wayland

Since GLFW 3.4, there are no longer separate builds of "glfw-wayland" and "glfw-x11". There is no need to pick what you want to support when building GLFW,

Currently, adding a define of _GLFW_WAYLAND results in this error:

In file included from src/rglfw.c:107:
src/external/glfw/src/wl_init.c:45:10: fatal error: xdg-shell-client-protocol.h: No such file or directory
   45 | #include "xdg-shell-client-protocol.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I believe this header is generated by invoking some shell commands (wayland-scanner and wl-generate), and there are several others.
https://github.com/raysan5/raylib/blob/9cf408f77c58828fd1019d5cd35c6b8c5139c8dc/src/Makefile#L414-L435

This is the part of raylib's makefile responsible for creating them.

I opened this issue mostly for myself.

iostream does not work

I'm trying to use iostream in this premake but when I try to include it I get 2905 errors. I'm using Visualstudio 2022 and iostream works in my other projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.