-
Notifications
You must be signed in to change notification settings - Fork 22
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
Build issues (might just be me) #21
Comments
Hi, thanks for your interest! There is a game template which contains the boilerplate code (including CMakeLists.txt) but with no game assets or game logic, just to get started, here: https://github.com/Mormert/jle/tree/master/gametemplate If you are interested in a "test project", (WARNING: currently running an outdated version of the engine), you can check this repo out: https://github.com/Mormert/cgfx I'd like to ask you also, would you be interested in a simple "demo game" with the engine? Something to just get started with perhaps. Currently there is no such thing, just that repo I provided above (and of course the main game that I am working on, but that is not shared publicly). |
Thank you for your reply. With the information you provided I attempted several ways to build the engine: Ubuntu terminal:
Ubuntu VS Code
Windows VS Code and Visual Studio 2022 I also had the same issues when attempting to build cgfx. Regarding your question about a demo game I believe this would be very nice to have. However, I myself am mostly interested about the feel of using your engine and the technical side of it. I'm currently working on my own engine so my I'm set on attempting to ship a game in my engine 😄 |
Regarding building on various platforms, as the engine is in constant development, not all platforms are always compiling, and a fast way to check which platforms are currently building is to check the build status in the README here: https://github.com/Mormert/jle?tab=readme-ov-file#build-status You can also view details of builds here: https://github.com/Mormert/jle/actions As can be seen, currently, Windows and MacOS are building succesfully in tests (but not Linux!) Thus, I recommend if you want to test the bleeding edge version of the engine, to do so on Windows (as that is what the engine is being developed on). I think you have GLAD installed via vcpkg is causing issues, make sure to disable vcpkg. Building on Windows, you can do with CMake as well, running (basically what you did on Ubuntu) cmake .. -DJLE_BUILD_EDITOR=ON -DCMAKE_BUILD_TYPE=Release You may need to specifically say to CMake that you want to use Visual Studio compiler (we don't support MinGW on Windows), do that by: Run CMake to configure the project. Replace with the appropriate generator string for your installed version of Visual Studio. Here are some examples: Then instead run: cmake .. -G "" -DJLE_BUILD_EDITOR=ON -DCMAKE_BUILD_TYPE=Release I also noticed you tried VS Code. I can recommend CLion as that is what Jet-Lagged Engine is being developed with, and works on all OSes, including Windows. |
Same issues with building on Windows here as well. Followed instructions to fetch the repository into a directory (./jle). These instructions are a little ambiguous as it suggests running these commands from the root JLE directory but that won't work and you'll get an error saying complaining it can't find a CMakeLists.txt in the root JLE directory. mkdir build It does work if you do this in the engine directory though and I was able to generate an .sln file which I was able to open and build with in VS 2022 Community. This however led to multiple issues: Firstly, you need to set the project to build using C++ 17 or 20 standards. By default it's set to 14. This clears up lots of issues but not all. Secondly, a slew of build errors when building the engine project: and it traces back to this macro: I also see a slew of invalid integer constant expression errors throughout the build. Any ideas here? Thanks! |
@HardlineStudios , Make sure to be in the "jle/gametemplate" folder (or your own game's main folder, but that gametemplate one is used to confirm that at least a basic empty game+engine builds correctly) when you run this: mkdir build That will build the game (gametemplate) and the engine, in editor mode, so you can make game levels, add game logic scripts, etc etc I suggest using CLion as your IDE (excellent integration with CMake), and you will not have to deal with setting up a VS .sln project, as that is usually not how you work with CMake anyway. |
Yeah no luck. Thanks anyways. |
Hey,
After watching your showcase on youtube I tried to build you engine by following the README but there does not appear to be a CMakeList file at the top level. Is this expected? Maybe I just understood your intructions wrong?
The text was updated successfully, but these errors were encountered: